-
Notifications
You must be signed in to change notification settings - Fork 0
/
wmi_DCOM.vbs
19 lines (19 loc) · 974 Bytes
/
wmi_DCOM.vbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
On Error Resume Next
strComputer = "paweb1"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_DCOMApplicationSetting",,48)
For Each objItem in colItems
Wscript.Echo "AppID: " & objItem.AppID
Wscript.Echo "AuthenticationLevel: " & objItem.AuthenticationLevel
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CustomSurrogate: " & objItem.CustomSurrogate
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "EnableAtStorageActivation: " & objItem.EnableAtStorageActivation
Wscript.Echo "LocalService: " & objItem.LocalService
Wscript.Echo "RemoteServerName: " & objItem.RemoteServerName
Wscript.Echo "RunAsUser: " & objItem.RunAsUser
Wscript.Echo "ServiceParameters: " & objItem.ServiceParameters
Wscript.Echo "SettingID: " & objItem.SettingID
Wscript.Echo "UseSurrogate: " & objItem.UseSurrogate
Wscript.Echo CrLf
Next