View Single Post
  #1 (permalink)  
Old May 15th, 2009, 06:20 AM
adley adley is offline
Registered User
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Assigning Logon Scripts via VBS

Peace all,

Is there any way to assign a logon script using vbs (instead of via the Profile tab or GPO)?

Let's say I already have a script that looks something like this:
Code:
Set WSHPrinters = WSHNetwork.EnumPrinterConnections
For LOOP_COUNTER = 0 To WSHPrinters.Count - 1 Step 2
'Find local printers
    If Left(WSHPrinters.Item(LOOP_COUNTER +1),2) <> "\\" Then
      WSHNetwork.SetDefaultPrinter _              
              (WSHPrinters.Item(LOOP_COUNTER +1))
    End If
Next
If setting up manually (using Profile tab or GPO), it works fine.
I just want to know whether vbs can also be used to assign logon script to a specific user account.

Thanks,
=adley=
Reply With Quote