sudo equivalent in windows

Problems? Post here...
Post Reply
reparto
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 288
Joined: 27 May 2013, 11:30
10

sudo equivalent in windows

Post by reparto »

Is it possible to elevate priveliges within the command prompt without click start->cmd->start as admin, its a pain to have to then us cd to get to the working directory

I was wondering if there was a sudo equivalent, e.g. I type a command and then it gives a UAC prompt or something
Selling invisible pets:
Dogs - 0.5 Bitcoins
Cats - 0.7 Bitcoins
Unicorns - 10 Bitcoins
Chimpanzee - 2 Bitcoins

PM me if you are interested, will ship via priority airmail, will accept escrow services

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: sudo equivalent in windows

Post by bad_brain »

yeup, you can do that with runas:

Code: Select all

runas /user:Administrator <command>
:wink:
Image

reparto
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 288
Joined: 27 May 2013, 11:30
10

Re: sudo equivalent in windows

Post by reparto »

Hmmmm, apparently I don't have an administrator account ???
It doesn't seem to accept administrator as an username, or I don't what the admin password is...
Its strange because my account type is an admin but I can't get admin rights...
Selling invisible pets:
Dogs - 0.5 Bitcoins
Cats - 0.7 Bitcoins
Unicorns - 10 Bitcoins
Chimpanzee - 2 Bitcoins

PM me if you are interested, will ship via priority airmail, will accept escrow services

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: sudo equivalent in windows

Post by bad_brain »

hm, seems you explicitly have to specify the domain or computer name too, have a look here:
http://technet.microsoft.com/en-us/libr ... 71525.aspx" onclick="window.open(this.href);return false;
Image

Post Reply