Need logon script help
Hi all, I have the folliwing script saved as test_script.vbs. I have it assigned to an admin user and when i log into to different servers over the wan login works but no mapping. Goal is when in Ohio connect and map to Akron-FS1, when in South use South-FS1, etc. Nothing blows up and I get no error. When I put WScript.Echo objADSysInfo.SiteName after the set objADSysInfo line I get a popup saying defaultsitename. Set objADSysInfo = CreateObject("ADSystemInfo") Select Case objADSysInfo.SiteName Case "Akron-FS1" Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "n:" , "\\akron-fs1\sys" Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "r:" , "\\akron-fs1\vol1" Case "Michigan-FS1" Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "n:" , "\\michigan-fs1\sys" Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "r:" , "\\michigan-fs1\vol1" Case "South-FS1" Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "n:" , "\\south-fs1\sys" Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "r:" , "\\south-fs1\vol1" end select
May 23rd, 2012 3:25pm

Hi, Thanks for posting in Microsoft TechNet forums. Regarding such script issue, I suggest that we post it at our script forum. There you can get more effective suggestions by other experts who familiar with this topic. Your understanding is appreciated. http://social.technet.microsoft.com/Forums/en-US/ITCG/ Regards KevinTechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2012 9:47pm

Hi, Thanks for posting in Microsoft TechNet forums. Regarding such script issue, I suggest that we post it at our script forum. There you can get more effective suggestions by other experts who familiar with this topic. Your understanding is appreciated. http://social.technet.microsoft.com/Forums/en-US/ITCG/ Regards KevinTechNet Community Support
May 23rd, 2012 9:53pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics