- Individual Applications
Protect
Filter
Perform
Connect
Add-Ons
- Software Packages
- Complete Appliances
|
|
#11 (permalink) |
|
Untangler
Join Date: Nov 2010
Posts: 65
![]() |
So I changed the code to echo more information....
Code:
'Handle or Ignore all errors
Dim objWMI: Set objWMI = GetObject("winmgmts://./root/cimv2")
Set colProcess = objWMI.ExecQuery ("Select * from Win32_Process Where Name='cscript.exe'")
WScript.sleep(2000)
On Error Resume Next
'Time in milliseconds to sleep between request 60000=1min
SLEEP_PERIOD = 60000
URL_PREFIX = "http"
If WScript.Arguments.Count = 1 Then
ServerName = WScript.Arguments.Item(0)
Else
ServerName = "firewall.company.com"
End If
WScript.Echo WScript.Arguments.Count
WScript.Echo "ServerName is:"
WScript.Echo ServerName
1 Server Name : <THIS IS TOTALLY BLANK> ad_logon_user.vbs (1) So for some reason, when the program is executed via a Logon Group Policy it is setting the WScript.Argument.Count to 1 which, dumps blank data into the ServerName variable?? (2) I thought Hard Coding the path would fix the issue, but unfortunately, if I continuously hit refresh on the Directory Connector screen, I will see some IP's switch to workstation name and then quickly back to the login name???, so it's still not working 100%. |
|
|
![]() |
| Thread Tools | |
|
|