Solved How to change to Admin mode in CMD ?

kapz

New member
Local time
11:18 AM
Messages
3
When we open the CMD in normal way it will open with normal privileges. Is there any way we can change the mode by giving a command? (like sudo in Linux)

Thanks in advance.

PS: ctrl + shift + enter is not what I am asking
 

My Computer My Computer

At a glance

Windows 7 Ultimate x862GBonboard
OS
Windows 7 Ultimate x86
Memory
2GB
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Samsung SA100 19"
Screen Resolution
1360 * 768
Keyboard
IBM
Mouse
ProLink
Internet Speed
8Mbps uplink
Hello Kapz,

  • Navigate to the following path using your explorer address bar: %SYSTEMROOT%\System32\
  • Right click CMD.exe and select "Run As..."
  • Select "The following user..." and type your administrator username and password then click OK
Thank you :)
 

My Computer My Computer

At a glance

XIPv3 on Windows XP SP3 x861 CPU 2.67 GHz512 MB of RAMGIGABYTE RADEON SE9200 SERIES 128 MB
Computer Manufacturer/Model Number
Intel(R) Pentium 4
OS
XIPv3 on Windows XP SP3 x86
CPU
1 CPU 2.67 GHz
Motherboard
MSI
Memory
512 MB of RAM
Graphics Card(s)
GIGABYTE RADEON SE9200 SERIES 128 MB
Sound Card
C-Media, CM18738 4 CH with SPDIF
Monitor(s) Displays
2 Monitors
Screen Resolution
1024 x 768 Px
Hard Drives
SAMSUNG SP0842N
Case
Shark
Cooling
1 Fan
Keyboard
Trans Media
Mouse
PIXEL TECHNOLOGY
Internet Speed
Wireless Connection 512 KBit/s
Thanks Joe for the reply but I want to start the cmd as a normal user and get the admin privilege later for the same command prompt. This approach will start the cmd as admin (or the specific user) :rolleyes:
 

My Computer My Computer

At a glance

Windows 7 Ultimate x862GBonboard
OS
Windows 7 Ultimate x86
Memory
2GB
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Samsung SA100 19"
Screen Resolution
1360 * 768
Keyboard
IBM
Mouse
ProLink
Internet Speed
8Mbps uplink
CMD needs to be invoked with the required credentials to begin with, as it is not possible to change this from within an existing CMD window. By default, this is as a standard user (even from within an administrative account). To open in elevated mode, see: http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html

Note that if you have more than 1 standard user, it is not possible to enter the other standard user's credentials when prompted; the only credentials accepted are those of an administrator.
 

My Computer My Computer

At a glance

Windows 8.1 Pro RTM x64Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Brid...4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2...MSI GeForce GTX770 Gaming OC 2GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Welcome to Windows Seven Forums.

You could try creating a desktop shortcut to cmd.exe then right-click the shortcut and choose Properties.

You'll find cmd.exe under C:\Windows\System32.

Select the Shortcut tab and click Advanced.

Enable Run as Administrator and click OK twice.
 

My Computer My Computer

At a glance

Windows 7 Ultimate SP1 64-BitIntel Core i7 870 @ 2.93GHz8Gb Dual-Channel DDR3 @ 664MHznVidia GeForce GTX 460 1024MB dedicated RAM
Computer Manufacturer/Model Number
HP Pavilion Elite 495UK
OS
Windows 7 Ultimate SP1 64-Bit
CPU
Intel Core i7 870 @ 2.93GHz
Motherboard
MSI 2A9C (CPU1)
Memory
8Gb Dual-Channel DDR3 @ 664MHz
Graphics Card(s)
nVidia GeForce GTX 460 1024MB dedicated RAM
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP2310i
Screen Resolution
1920 x 1080
Hard Drives
1x1954GB Hitachi HDS22020ALA 330 (RAID), 1x1954GB Hitachi External for backup and storage
PSU
460W
Case
HP Elite
Cooling
Air cooled
Keyboard
Logitech K750 solar-powered keyboard
Mouse
Logitech Wireless M180 mouse
Internet Speed
2Mb
Other Info
Pure Avanti Flow Internet Radio with iPod Dock, 64Gb iPod, HP USB Speakers, Sony MDR-V500 Headphones, Sony Vaio F-Series Laptop
Thanks Joe for the reply but I want to start the cmd as a normal user and get the admin privilege later for the same command prompt. This approach will start the cmd as admin (or the specific user) :rolleyes:

Hi kapz,
Sorry for misunderstanding. This can be done using the following command.

Code:
runas /user:(UserNameHere) CMD.exe

Thank you :)
 

My Computer My Computer

At a glance

XIPv3 on Windows XP SP3 x861 CPU 2.67 GHz512 MB of RAMGIGABYTE RADEON SE9200 SERIES 128 MB
Computer Manufacturer/Model Number
Intel(R) Pentium 4
OS
XIPv3 on Windows XP SP3 x86
CPU
1 CPU 2.67 GHz
Motherboard
MSI
Memory
512 MB of RAM
Graphics Card(s)
GIGABYTE RADEON SE9200 SERIES 128 MB
Sound Card
C-Media, CM18738 4 CH with SPDIF
Monitor(s) Displays
2 Monitors
Screen Resolution
1024 x 768 Px
Hard Drives
SAMSUNG SP0842N
Case
Shark
Cooling
1 Fan
Keyboard
Trans Media
Mouse
PIXEL TECHNOLOGY
Internet Speed
Wireless Connection 512 KBit/s
Thanks all for your kind replies! :cool:

Hi kapz,
Sorry for misunderstanding. This can be done using the following command.

Code:
runas /user:(UserNameHere) CMD.exe

Thank you :)

This worked to some extent. Thanks! :geek:
 

My Computer My Computer

At a glance

Windows 7 Ultimate x862GBonboard
OS
Windows 7 Ultimate x86
Memory
2GB
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Samsung SA100 19"
Screen Resolution
1360 * 768
Keyboard
IBM
Mouse
ProLink
Internet Speed
8Mbps uplink
If you are looking to keep all of the code in one cmd window because of variables and/or environment settings, then you can try the work around mentioned by CatBus near the bottom of this thread.

Or you can use some of the scripting tools mentioned in this old technet article. e.g. AutoIt3 has the ability to gather the results from one CMD window and use them in another.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Thanks Joe for the reply but I want to start the cmd as a normal user and get the admin privilege later for the same command prompt. This approach will start the cmd as admin (or the specific user) :rolleyes:

Hi kapz,
Sorry for misunderstanding. This can be done using the following command.
Code:
runas /user:(UserNameHere) CMD.exe

Thank you :)

I am using this In a batchfile "runas /user:(UserNameHere) CMD.exe". It ask to type a password. How can I put the password Into the batch file too?
 

My Computer My Computer

At a glance

windows 7
Computer type
PC/Desktop
OS
windows 7
Hello guys. this method doesn't work for me because it asks me pass but my account doesn't have pass. After I hit enter, it doens't run.
 

My Computer My Computer

At a glance

Windos 7 Ultimate x64Intel Core2 Duo E7400 2.8G0Hz @ 3.50GHzA-Data 2x2GB EXTREME DDR2 1066+Zotac 8800GT 512MB
Computer Manufacturer/Model Number
Me,Myself :Pp
OS
Windos 7 Ultimate x64
CPU
Intel Core2 Duo E7400 2.8G0Hz @ 3.50GHz
Motherboard
DFI LanParty DK X48-T2RSB+
Memory
A-Data 2x2GB EXTREME DDR2 1066+
Graphics Card(s)
Zotac 8800GT 512MB
Sound Card
Realtek Alc885 (o/b)
Monitor(s) Displays
Samsung XL2370 23" LED Backlit LCD
Screen Resolution
1920x1080@60Hz
Hard Drives
Western Digital Caviar Black 500GB
Western Digital Caviar Green 1.5TB
Seagate 7200.10 320GB
Seagate FreeAgent Go Next 500GB
PSU
Xilence XP550 550W
Case
Lancool Dragonlord PC-K60 by Lian-li
Cooling
Cooler-Master Mars
Keyboard
Microsoft Sidewinder X6
Mouse
Microsoft SideWinder
Internet Speed
8187/799 Kbps [ADSL2+]
Other Info
Samsung Galaxy SII
Koss PortaPro 25th ltd. ed.
Sennheiser mx370
Creative HN-700
Creative Inspire 5200
HP PhotoSmart 7760
Linksys Wag120-N
Linksys Wag354-G
and
Trek 4400 my bike :Pp
Hello Blick,

Please create a new thread instead of posting in a dead one that has already been marked as solved.


Good luck,
Nommy
 

My Computer My Computer

At a glance

Microsoft Windows 8.1 64-bit ProfessionalIntel(R) Core(TM) i7-4510U CPU @ 2.00GHz8.00 GB (2 x 4.00 GB)AMD Radeon R7 M265
Computer type
Laptop
Computer Manufacturer/Model Number
Dell Inspiron 5547
OS
Microsoft Windows 8.1 64-bit Professional
CPU
Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
Motherboard
Dell Inc. 08KNCD
Memory
8.00 GB (2 x 4.00 GB)
Graphics Card(s)
AMD Radeon R7 M265
Screen Resolution
1366 x 768 x 4294967296 colors
Hard Drives
(1) 1TB ST1000LM024 HN-M101MBB (2) 2TB Western Digital external hard drive (3) 500GB Packard Bell external hard drive
Mouse
Corsair Vengeance M60
Antivirus
Windows Defender & Malwarebytes
Browser
Firefox, Chromium
Other Info
+ Acer TravelMate 7730G with 32bit Ubuntu 14.04 LTS Trusty Tahr.
Back
Top