"Steffen Brandsborg" <no-> wrote in message
news:ulDt%...
> 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"
>
The script looks fine (although you can skip the first "Set wshNetwork"
statement). I suspect the logon script is not running. See #8 in this link
for the method I use to configure logon scripts in Group Policy:
http://www.rlmueller.net/LogonScriptFAQ.htm
In particular, I like to paste the script into the "Show Files" dialog. To
check if your script is running, perhaps add a statement to the script to
map a drive letter to a shared folder (which the user has access to).
--
Richard Mueller
MVP Directory Services
Hilltop Lab -
http://www.rlmueller.net
--