How can I get a batch file to prompt for UAC on Windows Vista to Windows 8 to run with Administrator rights - that is - other than right clicking on the batch file and hitting "Run as Administrator"?
123185
Can I get UAC prompt for user from batch file?  For example I need put some keys to registry under CurrentControlSet from batch file by     reg import path\to\my.reg   PS. runas is not a solution as my customers uses different Windows localisation and I can not guess which name used for Administrator account (this can be Администратор)...  And script don't know administrator password.  And UAC dialog box does not require password entering...
25561
On Linux, we can use  sudo bash   to run a shell as the superuser.  On Windows 7, we can use     Start menu -> (in search box, type) cmd -> Right click on search result and choose Run as Administrator   to run a command prompt as an administrator. Is there also a command prompt line that is like Linux's sudo or su so as to start a shell as an administrator?
49449
My user account on Windows 7 is part of the Administrators group which has a full control permissions on C:\inetpub\wwwroot:    However, when I try to create a folder in it, I get the "access denied" error. This is fixed by adding my specific user account to the list but that shouldn't be necessary should it?
120038
Possible Duplicate:          The title says it all.  I need to create batch files and run and test them. I dont have any Windows machine. If there was any cmd.exe emulator in Ubuntu I would have worked on it.   So do you know emulator that can run .bat/.cmd files?  I know I can use vmware, virtualbox-ose. But to use it I need existing Windows which I dont have.
43027
How can I get a command prompt as the SYSTEM user on Windows&nbsp;7?  Context: I'm testing a computer startup script, and I need to figure out the behavior of a command when run as SYSTEM rather than my user account.  I've seen ways to do this with at and psexec, but those methods only appear to work on Windows&nbsp;XP or Windows&nbsp;Vista.  I'm using Windows&nbsp;7 Pro SP1.
10370
To designate a user as an administrator from the GUI, you can simply open-up that user's properties and select the Account type as the "Administrator" option.    If the user already exists, what effect does selecting this account type have at the system level?  (added to sudo group, modification to /etc/passwd or /etc/sudoers...etc)  And how would I accomplish this (designating a user as an "Administrator") from the command line?
278
How can I permanently change the contents of the command prompt under Windows 7? I know about the prompt command, and the , but I'm not sure where to save the custom prompt so that it's used every time. Old web pages say autoexec.bat, but that seems to be an uneditable dummy file under 7.
7565
If my account is already a member of the administrator group why do some functions on Windows 7 require me to run them as administator? I kind of thought that was implied?
53468
I have a program that requires administrative privileges to run (i.e. the UAC prompts when it starts)  Can i have this program run at start-up?  its in the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run  but fails to start when i log in.  How do i fix this?
40026
I'm trying to run a batch file on Windows 7 from the Task Scheduler.  I can run the batch file fine if I run it from the command prompt.   If I run it from the Task Scheduler to only run when the user is logged in, the task will run without any issues. However, when it runs when the user is not logged in, the Task Scheduler looks like it's running the file but nothing happens.    I've tried changing the batch file to nothing but the following line to ensure it's not because of what's in the batch file:  echo "success" &gt;&gt; c:\temp\test.log   and that does not work.  Any ideas?  I have it being run with the highest privileges and with an admin account that has full permissions to the batch file and the folder where the file is being written.
116014
I'm making some batch files to personalise my windows installations faster, but I need my batch to take a road depending on which Windows version it's running on.  If i could get the windows version into a variable i could build a conditional to take the right path.  I've been looking for an answer on google and even here but... the answers i've got dont meet what i need.  could someone help me please?...
11030
I have a Virtual Machine in Virtual PC 2007.  To start it from the desktop, I have the following command in a batch file:  "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc "MY-PC" -launch   But that leaves a dos prompt on the host machine until the virtual machine shuts down, and I exit out of the Virtual PC console.  That's annoying.  So I changed my command to use the START command, instead:  start "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc MY-PC -launch   But it chokes on the parameters passed into Virtual PC.  START /? indicates that parameters do indeed go in that location.  Has anyone used START to launch a program with multiple command-line arguments?
91643
Is there a "noop"-esque exe somewhere as part of the Windows installation? I'm preparing some batch jobs and scheduled tasks, and for a couple reasons I'd like to reference an executable that does nothing -- i.e. launches with no visible window, and quits immediately.  Does such an executable exist in the usual Windows installation anywhere? or how can I come close? I do not want to have to depend on anything not already included in Windows.
53790
How do I run as a different user on a shortcut in Windows 7?   On Windows XP, I had the ability to mark a shortcut as being run by a different user, so that every time I ran it it would prompt me for a username/password. This let me have two shortcuts for things like , one for my normal account and one for my domain administrator account which has access to production servers.  I can get to the 'Run as different user' option with Shift + right-click, but I can't see an option anywhere that would let me mark the shortcut as doing this every time.
50750
How can I enable non-admin users to run a certain application (in my case, a script) with admin permissions on Windows XP?  This would be similar to the setuid bit on *nix.
78377
On Windows&nbsp;XP, can I run a batch (.bat or .cmd) file, via a shortcut, without a "black window"?
77276
I have installed a program on Windows 7 that needs Admin rights to run properly. When running on Windows XP; I used the runas command with the savecred switch to create a shortcut that opened the application and run as Administrator without prompting for a password.  I have tried the most options found on the internet with the properties dialogue of the shortcut and messed around with the Scheduled Tasks option, but to no avail.I am running Windows 7 Home Premium, 32-bit.   I have programs installed on my computer that have a Administrator Icon Overlay and seam to run as Admin without prompting for credentials. How can I achieve the same manually?