That didn't do the trick. If I log off or shut down I lose the drive mappings. Curious thing is I have printers assigned in a similar way with the same script and they remain. Am I missing something?
Here is the entire script:
'$$$$ Version 2005-07-27 $$$$
'12:32 PM 1/20/2005: ADD: WriteLog()...
Sub DriveMapper(sDrive, sShare)
For i = 0 to objDrives.Count -1 Step 2
if LCase(sDrive) = LCase(objDrives.Item(i)) then
if not LCase(sShare) = LCase(objDrives.Item(i+1)) then
objNetwork.RemoveNetworkDrive sDrive, true, true
Else
if bolWriteLog then objLogFile.WriteLine(Now() & "...
I have an existing logonscript that worked, but I would like to enhance it by making the drive mapping persistent.
If I add ",True" to the following lines I get a to many param error.
DriveMapper "h:", "\\fileserver\users\" & strUser ' Connect to users Home share
on fileserver
DriveMapper...
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.