is there any 'Sudo' command for windows ?
I was wondering how to switch to having administrative privileges in a command line window of Windows? Is there any way similar to "su" or "sudo" under Linux?
For example, I was stuck here:
Q:>fsutil fsinfo drives
The FSUTIL utility requires that you have administrative privileges.
Thanks and regards!
I am not sure what is wrong:
C:\D>runas /user:Tim "fsutil fsinfo drives" Enter the password for Tim: Attempting to start fsutil fsinfo drives as user
C:\D>runas /user:Tim "dir" Enter the password for Tim: Attempting to start dir as user "TIM-THINK\Tim" ... RUNAS ERROR: Unable to run - dir 2: The system cannot find the file specified.
if without the quote for the command in the end, the first example will output the help document for runas, and the second example will output the same as with quote.
- I was also wondering if I can switch to having administrative privileges once for all in the current session of the command line window, just as "su" in Linux?