Re: can't run scripts! grrr
From: KTFCU ITDept (itdept_at_ktfcu.org)
Date: 08/27/04
- Next message: Darren Mar-Elia: "Re: Local Group Policy versus OU (Time Service)"
- Previous message: Jerry: "Re: Local Group Policy versus OU (Time Service)"
- Maybe in reply to: Jeff: "can't run scripts! grrr"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 27 Aug 2004 14:27:08 -0400
You may have already looked at this, but does the script attempt to run
or is there no sign of the script running? It may be that the path to
the script is something like
C:\WINDIR\SCRIPTS\addprinter.vbs
when it needs a UNC path like
\\domain_name\sysvol\domain_name\policies\group_policy_guid\user\scripts\logon.
Like I said you may have already addressed this, but this sort of thing
has had me racking my brain at times. Hope it helps.
Shane
Jeff wrote:
> I have this saved this (see Below) as "addprinter.vbs" and it works if I
> just run it on my
> desktop but will not if I put it in a logon script and apply it to a user
> policy.
>
> What in a user policy would block a simple script like the one below from
> running on an XP machine with SP1
> Its not a rights issue, I have given a test user domain admin rights and it
> still fails everytime.
>
> Something in the user policy that I have turned on is blocking scripts from
> running, even if I put it in the all users startup.
>
>
>
> Set WshNetwork = CreateObject("WScript.Network")
> WshNetwork.AddWindowsPrinterConnection "\\dt00xxxx\dt10xxx"
> WshNetwork.SetDefaultPrinter "\\dt00xxxx\dt10xxx"
>
> Thanks
> Jeff
>
>
> I have this saved this (see Below) as "addprinter.vbs" and it works if I
> just run it on my
> desktop but will not if I put it in a logon script and apply it to a user
> policy.
>
> What in a user policy would block a simple script like the one below from
> running on an XP machine with SP1
> Its not a rights issue, I have given a test user domain admin rights and it
> still fails everytime.
>
> Something in the user policy that I have turned on is blocking scripts from
> running, even if I put it in the all users startup.
>
>
>
> Set WshNetwork = CreateObject("WScript.Network")
> WshNetwork.AddWindowsPrinterConnection "\\dt00xxxx\dt10xxx"
> WshNetwork.SetDefaultPrinter "\\dt00xxxx\dt10xxx"
>
> Thanks
> Jeff
>
>
- Next message: Darren Mar-Elia: "Re: Local Group Policy versus OU (Time Service)"
- Previous message: Jerry: "Re: Local Group Policy versus OU (Time Service)"
- Maybe in reply to: Jeff: "can't run scripts! grrr"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|