This is the beginning of our network printer push vbs script. The script is located in a scripts folder called scripts off the root of the c drive. There is also a copy in the netlogon folder. I would like to know how this script is executed? I don't see anything in the AD group policy nor the local windows 2008 server group policy under scripts or login. Does simply placing the vbs script on the server execute the script? Or is there an application I'm unaware off that I need to look for that executes MapPrint.vbs scripts.
Set objShell = Wscript.CreateObject("Wscript.Shell")
Set objNet = CreateObject("WScript.NetWork")
set objUser = GetObject("WinNT://" & objNet.UserDomain & "/" & objNet.UserName)
objShell.LogEvent 0, "User " + objNet.UserName + " Has logged on."
Rem **** Check if User is in an AD Group