Click here to Skip to main content
16,004,969 members
Home / Discussions / System Admin
   

System Admin

 
QuestionDevices connected to USB ports Pin
David Crow19-Nov-08 8:37
David Crow19-Nov-08 8:37 
AnswerRe: Devices connected to USB ports Pin
Jörgen Andersson19-Nov-08 11:32
professionalJörgen Andersson19-Nov-08 11:32 
GeneralRe: Devices connected to USB ports Pin
David Crow21-Nov-08 18:52
David Crow21-Nov-08 18:52 
GeneralRe: Devices connected to USB ports Pin
Jörgen Andersson21-Nov-08 23:25
professionalJörgen Andersson21-Nov-08 23:25 
GeneralRe: Devices connected to USB ports Pin
David Crow22-Nov-08 3:47
David Crow22-Nov-08 3:47 
QuestionWMI query Pin
Le centriste19-Nov-08 5:50
Le centriste19-Nov-08 5:50 
AnswerRe: WMI query Pin
Uros Calakovic19-Nov-08 6:52
Uros Calakovic19-Nov-08 6:52 
GeneralRe: WMI query Pin
Le centriste19-Nov-08 7:34
Le centriste19-Nov-08 7:34 
There you go:

Option Explicit

Sub CreateHost (HostName, HostType, NTGroupName, AuthTrusted)
   On Error Resume Next

   Dim objLocator, objService, objHostSetting, objHS, objBTSHost

   ' Connects to local server WMI Provider BizTalk namespace
   Set objLocator = Createobject ("wbemScripting.SWbemLocator")
   Set objService = objLocator.ConnectServer(".", "root/MicrosoftBizTalkServer")
   
   if err <> 0 then
        wscript.echo "Error Point 1: " & Err.Description
   end if
   
   set objBTSHost = objService.ExecQuery("select * from MSBTS_Host where Name = " & HostName)

   if err <> 0 then
        wscript.echo "Error Point 2: " & Err.Description
   end if

   
   wscript.echo objBTSHost.Count
   
   if err <> 0 then
        wscript.echo "Error Point 3: " & Err.Description
   end if

  ' More code after this
  ' ....
   
end Sub

On Error Resume Next

' Create a host, an instance of it, and associate.
CreateHost "MyHost", 1, "BizTalk Application Users", false


This produces the following output:

Error Point 3: Invalid query.

Thanks.
GeneralRe: WMI query Pin
Uros Calakovic19-Nov-08 8:08
Uros Calakovic19-Nov-08 8:08 
QuestionVista Problem Pin
scorp_scorp19-Nov-08 1:45
scorp_scorp19-Nov-08 1:45 
QuestionRe: Vista Problem Pin
David Crow19-Nov-08 8:39
David Crow19-Nov-08 8:39 
QuestionRe: Vista Problem Pin
scorp_scorp20-Nov-08 1:06
scorp_scorp20-Nov-08 1:06 
AnswerRe: Vista Problem Pin
Randor 20-Nov-08 4:14
professional Randor 20-Nov-08 4:14 
QuestionDNS Forward Lookup and Windows 2008 Server DataCenter Pin
Ponzano Paolo18-Nov-08 23:13
Ponzano Paolo18-Nov-08 23:13 
QuestionService rights issue Pin
teopau18-Nov-08 16:32
teopau18-Nov-08 16:32 
QuestionHow can I set 1680*1050 resolution without DDC informations Pin
Figu.Lin17-Nov-08 22:28
Figu.Lin17-Nov-08 22:28 
AnswerRe: How can I set 1680*1050 resolution without DDC informations Pin
Dave Kreskowiak18-Nov-08 2:08
mveDave Kreskowiak18-Nov-08 2:08 
GeneralRe: How can I set 1680*1050 resolution without DDC informations Pin
Figu.Lin19-Nov-08 13:34
Figu.Lin19-Nov-08 13:34 
JokeRe: How can I set 1680*1050 resolution without DDC informations Pin
Paul Conrad2-Dec-08 10:59
professionalPaul Conrad2-Dec-08 10:59 
GeneralRe: How can I set 1680*1050 resolution without DDC informations Pin
Dave Kreskowiak2-Dec-08 11:35
mveDave Kreskowiak2-Dec-08 11:35 
JokeRe: How can I set 1680*1050 resolution without DDC informations Pin
Paul Conrad2-Dec-08 11:37
professionalPaul Conrad2-Dec-08 11:37 
GeneralRe: How can I set 1680*1050 resolution without DDC informations Pin
Figu.Lin28-Dec-08 19:21
Figu.Lin28-Dec-08 19:21 
Questionrar files on the mac Pin
sajjy17-Nov-08 10:26
sajjy17-Nov-08 10:26 
AnswerRe: rar files on the mac Pin
User 171649217-Nov-08 11:33
professionalUser 171649217-Nov-08 11:33 
JokeRe: rar files on the mac Pin
Jörgen Andersson18-Nov-08 4:39
professionalJörgen Andersson18-Nov-08 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.