Can I run a command file as admin without UAC prompts?

Posted: 02-20-2007, 05:47 PM

So...

I have my "unattend.xml" file setup for sysprep. This file makes a new
account called "dummy".

I want to be able to automatically log into my adminstrative "setup"
account and have "dummy" automatically deleted.

In XP, I make a batch file ("setup.bat") that calls itself and contains

net user dummy /delete
del setup.bat

and then the batch file is deleted after the account is deleted.


So, in Vista, I can make a .cmd file that has the same command in it.

But I have to right-click on it to "run as administrator" and click the
UAC authorization to do this.

Which I'd like to automate so there's no need for user intervention
here.


Is there a way to do this?


(Alternately, if I was to turn UAC *off*, so I could have this file run
automatically, can UAC be turned on with a command-line command?)

- Steve
Reply With Quote

Responses to "Can I run a command file as admin without UAC prompts?"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prompts, prompts, and more prompts...jeez alex Windows Vista Administration 115 04-14-2008 07:28 PM
Running as an Admin with prompts vs Standard? Grant Windows Vista Administration 2 07-16-2006 10:22 PM
Where can I find a detailed explanation of the functions,applications and parameters of all of the available XP command line prompts? barebear Windows XP Help & Support 1 12-24-2003 11:01 PM
the functions,applications and parameters of all of the available XP command line prompts? barebear Windows XP New Users 3 12-24-2003 04:04 AM
command prompts Sid Windows XP Basics 0 07-20-2003 05:22 PM