Re: Running Batch file from Netlogon Share

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thank you Paul. Yes, I checked and the script has replicated. However, if I
run it as an administrator on the local PC the script runs okay, otherwise I
get a system error 5 has occurred Access Denied Error. How can I run the
batch file on the local PC with admin rights?

Here's the command I'm trying to run from the batch file:
@ECHO OFF

net localgroup "Power Users" "Desktop PowerUser" /add

Thanks again.

"Paul Bergson" wrote:

> Has it replicated? Does the user have the proper credentials?
>
> try running \\domain name\netlogon\script name
>
> --
>
> Paul Bergson MCT, MCSE, MCSA, CNE, CNA, CCA
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
> "AvMed Inc" <AvMedInc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:3FEFFC3A-D566-4951-84E6-69F31A10E0F5@xxxxxxxxxxxxxxxx
> > I'm trying to run a batch file which add a Global Group to a Local Group
> on
> > the end-users workstation. When I run the batch file locally is works
> fine,
> > however, I would like for the batch file to run for any user which logs on
> to
> > Active Directory.
> >
> > I copied the batch file to the Netlogon share, but it does not appear to
> > run. The Server is a Windows 2003 and client are running 2000 & XP. I've
> > check the event logs, but have not seen anything related to my problem.
> >
> > Any ideas are welcomed. Thanks
>
>
>
.



Relevant Pages

  • Re: Problem with the ethernet
    ... the fact that a given batch file or project entry sets the ... Paul T. ... "SteM" wrote: ... I will try with a debug image to check the debug messages.... ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Please help. Run batch file on server from asp.net page
    ... > Hi Paul, ... >> run a batch file on the server. ... >> The batch file unzips a file which is located in the working directory ... However when I execute the code from the asp.net page ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I multiple word documents in date order?
    ... In the time it would take you to create, configure and test the batch file, you could have done these one at a time. ... Paul wrote: ... could drag and drop each file on the printer Icon, you could write a batch file file that listed each file in the order it is to print. ... But you can't just select a group and send to printer as the "sort order" is a visual thing, and doesn't affect the order in which the files are located and passed to the print queue. ...
    (microsoft.public.office.misc)
  • Re: Rather large MSIE-hole
    ... will this bug run an executable from a web page? ... Paul D. Campbell wrote: ... >>I apologise if someone has already addressed this. ... >to place the batch file on the target machine. ...
    (Vuln-Dev)
  • Re: Login Script group membership
    ... Would it be more managable to write this as a vbs instead of a batch file? ... script, as not all o/s's can run a .vbs file directly as a logon script. ... - you'd need to write a wrapper function to invoke ifmember and return the ... In the general case a user can be a member of any number of ...
    (microsoft.public.windows.server.scripting)