0
votes
3answers
153 views

Get administrative right in windows command line [duplicate]

I am not trying to do cheeky things, but my need is just to have two scripts for adding or removing IP routes using the following command in batch scripts: Add route: @echo off route add -p ...
0
votes
1answer
106 views

How to run a batch script which is on a server, but it should be run on a PC remotely

There are many batch scripts on one of our servers that are shared to everyone. These are scripts like Robocopying, portable apps, etc. I am in tech support, and when someone asks me (for example) "I ...
4
votes
2answers
250 views

Why is the “Run as Administrator” checkbox disabled?

I have a .bat file that cannot allow me to set it to run as admin as required by going to the Properties box and check for Privilege checkbox. But mine is disabled as below snapshot. What can I do ...
2
votes
0answers
239 views

Run shutdown script as Administrator on Windows XP

I've written a script using Ninite Pro to update the installed Applications on the Windows XP pro Client. Unfortunately it has no administrator privileges, is there a way to run a shutdown script as ...
1
vote
2answers
840 views

Running Batch File As An Administrator…

I successfully created a batch file to flush my DNS. I have added a pause, I noticed in the title bar of the console window… It's not running as administrator. I've already tried a couple of ...
1
vote
3answers
4k views

Batch files to install Windows Service as Administrator

I'm trying to automate the install of a Windows Service for when I'm testing it locally. It is built in .NET... I'd usually open the Visual Studio Command Prompt as Administrator and then type the ...
2
votes
3answers
3k views

Why is “run this program as an administrator” disabled?

I need to stop some services so I made a cmd file but it doesn't work because it needs to run as admin. When I right click on the file and choose Properties, I see that "run this program as an ...
1
vote
2answers
2k views

Batch file - start program with admin rights

I have a .bat file in my startup folder: d: cd\ cd TrueCrypt truecrypt /ll /p "" /q /v d:\MYO Is there a way to start TrueCrypt with admin right?
4
votes
2answers
9k views

Batch script: how to check for admin rights

How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs.
1
vote
3answers
1k views

How do I set up a desktop shortcut to a batch file which will run as administrator

I want the batch file to run and launch some programs, all of which need to be at administrator level.