running batch file as local admin

Hewlett-packard / NA
January 2, 2009 at 07:39:26
Specs: Windows XP, Celeron D 1gb
Ive written a batch file that will copy a file from a server to a bunch of user's computers and then set the permissions on that file.

Ive gotten that to work, however the batch file must be run as admin on these user's computers. Im not sure if it must be run as admin because its a .bat file or because it sets permissions. Is a .bat like an .exe? Is that why the users can't run it, or is it because the .bat sets permissions on a file?

Either way, I need to find a way around this. If the problem is the setting of permissions, I guess I could make another batch file to run the first batch file as admin. Or is there a better way?

How do people usually run .bat files as admin?

thanks for your help!!!




See More: running batch file as local admin

Report •


#1
January 3, 2009 at 14:20:15
How do people usually run .bat files as admin?
Depends on the environment. If you have AD, you'd push it out that way, for instance.

Is that why the users can't run it, or is it because the .bat sets permissions on a file?
It would depend on what permissions are betting set on which file, but I'm going with the latter.


Report •

#2
January 28, 2009 at 09:59:39
Would it be possible for you to share the batch file you are using. I have a similar need.

Thank you,

Joe


Report •

Related Solutions


Ask Question