Go Back   TechArena Community > Technical Support > Computer Help > Windows Vista > Vista Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links


How do I bring up the Administrator Command Prompt?

Vista Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 31-10-2006
Member
 
Join Date: Jan 2004
Posts: 40
How do I bring up the Administrator Command Prompt?

Sponsored Links
I recently upgraded one of my Windows XP running computer to Windows Vista 64bit RC1. Upgradation process went fine without any issue but when I try to adapt my XP defrag script to this new OS it gives me some problem. Exactly, when I try to execute the defrag command, it ends up with an error message saying:

“C:\Windows\System32>defrag c:

This program needs to run with administrative permissions. Use an administrator command prompt and then run the program again.”


Though I am the Administrator of this system, seems like I don’t have complete Admin privileges. So can anyone please tell me how can we elevate the command line privileges to Administrator? Many Thanks.

Reply With Quote
  #2  
Old 31-10-2006
MikeY007's Avatar
Member
 
Join Date: Jun 2006
Posts: 206
Re: How do I bring up the Administrator Command Prompt?

You might have seen something called "UAC" in Vista, right? Microsoft has included some new security features in Vista due to which though you have Admin privileges, there are many programs and applications you run only receive "standard user" permissions, unless they automatically ask you for permission. hence what you need to do right-click their icons and select "Run As Administrator" from the content menu to run it with complete Administrator Privileges.

So for running command prompt as an administrator, click Start > type: CMD, press right-ctrl, right-shift, and enter at the same time. This will open Command Prompt as an Administrator.
Reply With Quote
  #3  
Old 31-10-2006
Member
 
Join Date: Sep 2004
Posts: 136
Re: How do I bring up the Administrator Command Prompt?

That correct. here is the alternate way.
  • Start | All Programs | Accessories
  • Right click the Command Prompt and choose Run as Administrator.
Reply With Quote
  #4  
Old 31-10-2006
Member
 
Join Date: Jan 2004
Posts: 40
Re: How do I bring up the Administrator Command Prompt?

Thank you very much for all your helps guys. That seems to be working fine exactly as i wanted to. I appreciate that but still i have a small confusion. Can you guys tell me what if i schedule this cmd file using Task Scheduler?

I mean if it schedule the same will the task scheduler automatically run the program with administrator privileges? Or will i just see a "Run As" prompt when the task executes?
Reply With Quote
  #5  
Old 21-11-2006
Member
 
Join Date: Jul 2004
Posts: 141
Re: How do I bring up the Administrator Command Prompt?

If you want to add this to a script, then just try out the following:

runas /user:administrator cmd

You can easily replace the cmd with the batch file or vbs script or whatever app
you intend to run with administrative credentials.Let me know if you need anymore help.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Vista > Vista Help


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How do I bring up the Administrator Command Prompt?"
Thread Thread Starter Forum Replies Last Post
Create an Administrator Command Prompt shortcut TheGreatOne Tips & Tweaks 1 07-06-2011 11:20 PM
Bring back the complex command in Operation Flashpoint Red River Delightful. Video Games 5 03-05-2011 09:21 PM
Need information to create Administrator accounts via Command Prompt Nuryn Operating Systems 3 06-03-2011 10:09 PM
How to run from command prompt as administrator in Windows Vista PARRISH Operating Systems 5 12-01-2009 04:39 PM
Command prompt "COPY" command not working in brand new Windows Vis CMD COPY command not working in Vista Vista Help 7 06-02-2008 01:50 AM


All times are GMT +5.5. The time now is 08:29 AM.