Hi all
Not too hot on the VB - found this page to help me out:
http://blog.eqinox.net/jed/archive/2006/12/05/1270.aspx
Basically, UAC runs scripts in admin mode before explorer loads, then explorer's loaded in interactive mode. This means that drive mappings don't show up, so a script was provided by MS to schedule a task to launch once Explorer's loaded.
This doesn't work in XP/2003 era kit, so I need a way of detecting whether it's Vista or not and choosing what to do - which is what the script linked to does. Unfortunately, it doesn't work. Line 21:
"WMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & computer & "\root\cimv2")"
Throws up an 'Object doesn't support this property of Method: WMIService'. Anyone know why?
Thanks!
Not too hot on the VB - found this page to help me out:
http://blog.eqinox.net/jed/archive/2006/12/05/1270.aspx
Basically, UAC runs scripts in admin mode before explorer loads, then explorer's loaded in interactive mode. This means that drive mappings don't show up, so a script was provided by MS to schedule a task to launch once Explorer's loaded.
This doesn't work in XP/2003 era kit, so I need a way of detecting whether it's Vista or not and choosing what to do - which is what the script linked to does. Unfortunately, it doesn't work. Line 21:
"WMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & computer & "\root\cimv2")"
Throws up an 'Object doesn't support this property of Method: WMIService'. Anyone know why?
Thanks!