3
votes
2answers
52 views

How to start a de-elevated cmd from admin command prompt

I have an administrator command prompt. I'd like to load another command prompt from here without administrator priveledges. I'm pretty sure its some usage of 'runas' but I can't find the ...
2
votes
0answers
80 views

Start/stop services from command prompt under non Administrator user, but belonging to administrators group

I have a WIN7 computer with user which is in Administrator group. Let's call it MyUser. UAC turned ON. I have several services launched under local system. When I'm trying to start or stop these ...
2
votes
1answer
382 views

Run as administrator from command line on Windows 8

I am trying to run Notepad as admin so I can edit my hosts file from the command line. I have tried runas /user:(myusername)\administrator "notepad c:\windows\system32\drivers\etc\hosts" I then input ...
9
votes
2answers
261 views

using “runas” with “Administrator” account versus other admin accounts

On my computer, I have two admin accounts. The default admin account named "Administrator", and a new admin account named "testadmin." If I run the following commands: runas /user:testadmin cmd.exe ...
1
vote
1answer
514 views

Run cmd.exe always as administrator

I have configured ansicon to display ANSI colors in cmd.exe, but it only works when cmd is run in administrator privileges. I'm also using Launchy to start cmd.exe (not only cmd). Problem is that if I ...
0
votes
1answer
561 views

su Command Prompt [duplicate]

Possible Duplicate: Is there any 'sudo' command for Windows? Commands su & sudo could be used to turn whole current terminal session as super user with administration ...
2
votes
2answers
948 views

Is it possible run CMD.exe as Admin -AND- Start In a different partition?

There are many questions on running CMD.exe as admin on Windows 7, however none of them appear to include a different "Start In" directory / partition. I can start a command prompt in a different ...
4
votes
2answers
3k views

Start elevated command prompt in %UserProfile% directory by default?

When I start an elevated Command Prompt in Windows 7 or Windows Vista, the initial directory is the %SystemRoot%\system32 directory. This is the default Windows behavior, and is not a problem ...
3
votes
2answers
3k views

Windows 7: how can I elevate a running cmd window?

How can I elevate a open cmd window such that it has administrator rights as it would have if i would start it with "run as administrator"?
2
votes
2answers
4k views

Powershell Access to the path denied

I'm sure this has been asked a million times, but I can't figure out why I can't run this simple command in powershell: PS> new-item -path c:\users\me\desktop\testfolder -name (get-date).txt ...
6
votes
3answers
2k views

Making CMD run as administrator mode automatically

I like to do a Win+R+ CMD + Enter but it doesn't run the command prompt in "administrator mode". I am aware that I can "right-click" run as admin, however I was wondering is there anyway to make the ...
5
votes
2answers
915 views

How to make a cmd 'runnable as administrator' under windows 7?

I have written as small .cmd file to be executed as an administrator. I am trying to set its options as 'Run as Administrator' but the check box is not accessible. Why? How to solve this issue? I ...
0
votes
1answer
64 views

Windows 7 manage accounts

I have two different computers running windows 7 ultimate. Each computer has its own user accounts (both Administrators on the local computer). I try to figure how can I give an administrator ...
1
vote
2answers
531 views

Using Command Prompt arguments to run a file (with arguments) as an administrator?

I am making the menu items called Lock for Microsoft's BitLocker. I've got it all right up to one point: locking HDD partitions requires administrator privileges. How do I use process paths or CMD or ...
9
votes
4answers
7k views

What is the equivalent of sudo in Windows 7? [duplicate]

Possible Duplicate: is there any 'Sudo' command for windows ? Is there a command line equivalent to sudo in Windows 7? Or do you just have to open a command prompt that is being ...
4
votes
2answers
7k views

Batch script: how to check for admin rights

How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs.
2
votes
2answers
305 views

Can I use a command (such as “tree”) without installing it system wide?

I'm connected to a Linux box through SSH on which I don't have administrative privileges. The command I wish to use is called tree, but it isn't installed. Is there any way I can load the tree ...
2
votes
1answer
937 views

how to remove the text “Administrator:” from the cmd window?

Although a near identical question was asked, the answer won't work (for me at least) with my Vista system. I am using an elevated prompt to run a batch file. Since the batch file takes awhile to run ...
2
votes
4answers
20k views

How to edit the hosts in Windows 7?

I would like to add an address to the hosts file. I am running Windows 7 (Hebrew edition), and I am the system administrator. I have tried the command notepad C:\Windows\System32\drivers\etc\hosts to ...
5
votes
7answers
2k views

Easiest way to get right-click “Open command window here” with admin priveleges in Windows 7

I don't want to install PowerToys, I'd rather a simpler solution for this specific problem. I've tried Ctrl+Shift+Right-Click. I've tried adding a registry script, but I get the following error: ...
1
vote
1answer
917 views

When I start command prompt w/ administrative rights, the “Start in” location is igored. Any way to avoid this? [duplicate]

Possible Duplicate: Windows 7 Administrator Command Prompt “Start in” Path I have it set to c:\myfolder. If i click Start->Command Prompt it opens a console window started at ...
20
votes
8answers
10k views

On Windows 7, is there a command prompt line that can start cmd as an administrator?

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 ...
0
votes
1answer
3k views

Enable compatibility mode for command prompt in windows 7

I wanted to do something as simple as creating a link to run command promt as an administrator. So I created the link, but when I right-click>Properties>Compatibility all options are grayed out, and I ...
0
votes
3answers
2k views

Diskpart Access Denied

I just can't resize my partition in Windows Vista. I've tried the partion managar, but I get an error: Logical Disk Manager, Access Denied. So I used diskpart.exe, but when I tried to shrink my ...