Steffen Brandsborg
2010-02-22 08:30:06 UTC
Hi all,
Im trying to map a network shared printer to a LPT port using a logon script
in group policy.
The script works just fine when i launch the script directly from a logged
in user, but fails when i use group policy.
my script:
Set wshNetwork = WScript.CreateObject("WScript.Network")
Set wshNetwork = CreateObject("WScript.Network")
wshNetwork.AddPrinterConnection "LPT2", "\\SERVER\Printer"
Im trying to map a network shared printer to a LPT port using a logon script
in group policy.
The script works just fine when i launch the script directly from a logged
in user, but fails when i use group policy.
my script:
Set wshNetwork = WScript.CreateObject("WScript.Network")
Set wshNetwork = CreateObject("WScript.Network")
wshNetwork.AddPrinterConnection "LPT2", "\\SERVER\Printer"