Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Running a batch file

Reply
 
Old 09-25-2009   #1 (permalink)
Timbo


 
 

Running a batch file

Please, please can some one help me...

I am trying to run a batch file in vista as an administrator. I know I can
use the RUNAS command, but this prompts me for a password. (and what
password is a mystery to me as it's a non domain machine and there isn't a
user called administrator, but that's besides the point). What I am
looking to do is to replicate the behaviour of Right Clicking on the batch
file and clicking 'Run as administrator', then the security box comes up -
this is fine, that is EXACTLY what I want to happen. The user already has
adminitrator privilages and I understand that I'll never get around the
security box coming up - I don't mind this, but I can't seem to find a way
of replicating this.

Any ideas will be greatfully received.

Thanks

Tim



My System SpecsSystem Spec
Old 09-25-2009   #2 (permalink)
Peter Foldes


 
 

Re: Running a batch file

Timbo

You are using OE to post here. Is that the machine in question or is it a Vista Home
which cannot accomplish what you are asking

--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

"Timbo" <me@newsgroup> wrote in message news:OUTluRfPKHA.1232@newsgroup
Quote:

> Please, please can some one help me...
>
> I am trying to run a batch file in vista as an administrator. I know I can use
> the RUNAS command, but this prompts me for a password. (and what password is a
> mystery to me as it's a non domain machine and there isn't a user called
> administrator, but that's besides the point). What I am looking to do is to
> replicate the behaviour of Right Clicking on the batch file and clicking 'Run as
> administrator', then the security box comes up - this is fine, that is EXACTLY
> what I want to happen. The user already has adminitrator privilages and I
> understand that I'll never get around the security box coming up - I don't mind
> this, but I can't seem to find a way of replicating this.
>
> Any ideas will be greatfully received.
>
> Thanks
>
> Tim
>
My System SpecsSystem Spec
Old 09-25-2009   #3 (permalink)
Dave-UK


 
 

Re: Running a batch file


"Timbo" <me@newsgroup> wrote in message news:OUTluRfPKHA.1232@newsgroup
Quote:

> Please, please can some one help me...
>
> I am trying to run a batch file in vista as an administrator. I know I can
> use the RUNAS command, but this prompts me for a password. (and what
> password is a mystery to me as it's a non domain machine and there isn't a
> user called administrator, but that's besides the point). What I am
> looking to do is to replicate the behaviour of Right Clicking on the batch
> file and clicking 'Run as administrator', then the security box comes up -
> this is fine, that is EXACTLY what I want to happen. The user already has
> adminitrator privilages and I understand that I'll never get around the
> security box coming up - I don't mind this, but I can't seem to find a way
> of replicating this.
>
> Any ideas will be greatfully received.
>
> Thanks
>
> Tim
>
>
Try creating a shortcut to the batch file.
Right-click the shortcut and select Properties.
On the Shortcut tab select Advanced.
Tick 'Run as Administrator' , Ok and Apply.
Run the shortcut.



My System SpecsSystem Spec
Old 09-25-2009   #4 (permalink)
Bob


 
 

Re: Running a batch file

http://www.msfn.org/board/lofiversio...hp/t97318.html


"Timbo" <me@newsgroup> wrote in message
news:OUTluRfPKHA.1232@newsgroup
Quote:

> Please, please can some one help me...
>
> I am trying to run a batch file in vista as an administrator. I know I
> can use the RUNAS command, but this prompts me for a password. (and what
> password is a mystery to me as it's a non domain machine and there isn't a
> user called administrator, but that's besides the point). What I am
> looking to do is to replicate the behaviour of Right Clicking on the batch
> file and clicking 'Run as administrator', then the security box comes up -
> this is fine, that is EXACTLY what I want to happen. The user already has
> adminitrator privilages and I understand that I'll never get around the
> security box coming up - I don't mind this, but I can't seem to find a way
> of replicating this.
>
> Any ideas will be greatfully received.
>
> Thanks
>
> Tim
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Running a batch file Vista security
Running a batch file with scheduler Vista General
How to determine a batch file is running as administrator General Discussion
Will computer sleep while batch file is running? Vista General
Running batch file from Powershell script PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46