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=