Re: File Permissions

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Fri, 23 Sep 2005 07:07:01 -0700, Alex Kuhl <Alex Kuhl@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>I have a logon script that must copy an .exe from one of our servers. The
>script runs wonderfully for someone who has administrator rights. However,
>normal users get an error box about permissions being denied. I do not want
>to give them permissions to edit the file so that my script works. Is there
>a way I can impersonate Administrator or something similar in the script to
>be able to do this? The script is a WSH file written in VBScript. Note that
>I have already tried using a GPO to assign it as a logon script on both a by
>computer and by user basis only to have it fail through those methods also.
>Thanks!

See tip 7258 » CPAU freeware is a RunAs replacement that lets you specify the password on the command-line.
in the 'Tips & Tricks' at http://www.jsifaq.com

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
.



Relevant Pages

  • Re: Deny rules...
    ... services client I have not implemented it. ... Tony Su ... >The Script makes sure the ip to be blocked is not itīs ... >I have few outside servers to connect from to my servers ...
    (microsoft.public.isa)
  • Re: Software configuration management tool required
    ... If it automates ... and 100-ish servers, it's just not going to happen. ... you test it by running the rc?.d script that init will ... > because Oracle or some vendor tells them to do so. ...
    (comp.unix.admin)
  • Re: trouble with a script
    ... Your snippet of code doesn't look like sh on FreeBSD. ... Basically, I want my script to prompt me for two inputs, then append to ... The user input would be "domain.com", ... is how we set up a client's site on our servers. ...
    (comp.unix.shell)
  • Re: trouble with a script
    ... Your snippet of code doesn't look like sh on FreeBSD. ... Basically, I want my script to prompt me for two inputs, then append to ... The user input would be "domain.com", ... is how we set up a client's site on our servers. ...
    (comp.unix.shell)
  • Re: login script failing?
    ... Well if all DCs are in same site/local lan, and only some mappings ... If you manually run that script after user logs on does the mapping occur? ... How do you know whch servers are the users logging on? ... relevant servers but no matter what I put in the login script, ...
    (microsoft.public.windows.server.active_directory)