i had this issue myself when using WMI queries on our servers. check these things:
1. is the server your contacting on? you might need a ping function to check. i know your thinking "GEEZ it's a server of course it's on." well you never know until you check.
2. does the server have the...
you are too fast dm! =)
Set objComputer = CreateObject("Shell.LocalMachine")
strComputer = objComputer.MachineName '<--- NETBIOS name
strAdmin = "Administrator"
strNewName = "jose" & UCase(strComputer) '<--- Append to name (jose)
Set objComp = GetObject("WinNT://" & strComputer)
Set objUser...
hi dm, i didn't know you could use Where Logfile='Security' Where EventCode='672'
"Select * from Win32_NTLogEvent Where Logfile = 'Security' And EventCode='672' And User Like '_gmagerr%'"
i thought you could only have one Where condition, and have to use the Ands. that's really neat!
first you would need to create a .prf (Profile file) that contains your exchange information and preference selections. then just use vbs something like:
objShell.run "outlook.exe /importprf User.prf"
heres how to create a .prf:
http://www.outlook-tips.net/howto/prf.htm
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.