Tech Support Guy banner
  • Please post in our Community Feedback thread for help with the new forum software! If you are having trouble logging in, please Contact Us for assistance.
Status
Not open for further replies.
1 - 3 of 3 Posts

·
Registered
Joined
·
526 Posts
Discussion Starter · #1 ·
Hi i am trying to create a VB logon script so that on connect if the users are in the certain groups it will connect to the specified folders and also i am trying to add printers to each user automatically. can anyone tell me what is wrong with this code please?

If InGroup("Year 00")
USE S: \\rossmeresrv\joint\00
EndIf
If InGroup("Year 01")
USE S: \\rossmeresrv\joint\01
EndIf
If InGroup("Year 02")
USE S: \\rossmeresrv\joint\02
EndIf
If InGroup("Year 03")
USE S: \\rossmeresrv\joint\03
EndIf
If InGroup("Year 96")
USE S: \\rossmeresrv\joint\96
EndIf
If InGroup("Year 97")
USE S: \\rossmeresrv\joint\97
EndIf
If InGroup("Year 98")
USE S: \\rossmeresrv\joint\98
EndIf
If InGroup("Year 99")
USE S: \\rossmeresrv\joint\99
EndIf

addPrinterConnection (\\sx3200247\Printers\HP 1315-Colour)
addPrinterConnection (\\rossmeresrv\T612)
SetDefaultPrinter(\\rossmeresrv\T612)
addPrinterConnection (wirelessdt04\Mini.Suite.Main)

Thanx

Mick
 
1 - 3 of 3 Posts
Status
Not open for further replies.
Top