Re: can't run scripts! grrr

From: KTFCU ITDept (itdept_at_ktfcu.org)
Date: 08/27/04


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
>
>



Relevant Pages

  • Re: MS Acces application problem
    ... Do you know exactly what part of the script is failing? ... User policy for terminal server using whitepaper locking down win2003 trm srv ... users on files and registry and still no effect. ...
    (microsoft.public.windows.terminal_services)
  • cant run scripts! grrr
    ... What in a user policy would block a simple script like the one below from ... I have given a test user domain admin rights and it ... Something in the user policy that I have turned on is blocking scripts from ... even if I put it in the all users startup. ...
    (microsoft.public.windows.group_policy)
  • Re: MS Acces application problem
    ... The script connects to an oracle database through odbc and queries the ... terminal server to determine the more advanced events for locating the ... User policy for terminal server using whitepaper locking down win2003 ...
    (microsoft.public.windows.terminal_services)
  • Re: MS Acces application problem
    ... Is it cmd, vbs, js, sql etc script? ... Do both the ms access app and the ms access database runs on the same machine? ... terminal server to determine the more advanced events for locating the ... > User policy for terminal server using whitepaper locking down win2003> trm ...
    (microsoft.public.windows.terminal_services)
  • Re: cant run scripts! grrr
    ... You may have already looked at this, but does the script attempt to run ... Jeff wrote: ... > Its not a rights issue, I have given a test user domain admin rights and it ... > Something in the user policy that I have turned on is blocking scripts from ...
    (microsoft.public.windows.group_policy)

Loading