• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How to run CMD Prompt as 'System' in Windows 10...?

Thelps

New Member
Joined
May 4, 2019
Messages
3 (0.07/day)
Hi all.

Does anyone know how to run CMD Prompt as the 'NT Authority\ System' account in Windows 10?

I'm familiar with PSExec and other 3rd-party programs... but was wondering if there are ways to do it without using specific software?

I'm trying to run some code/programs to supercede various locks imposed by the OS. That necessitates having 'System' authority.

I'm also curious how some third-party programs 'bake' themselves into the OS file system and registry so well that even altering file permissions is totally denied (even as Administrator). That's why I need 'System'... to remove them.

I can't use third-party software since I'm altering multiple machines and it's impractical to install on every single one of them.
 

eidairaman1

The Exiled Airman
Joined
Jul 2, 2007
Messages
26,274 (6.01/day)
Location
Republic of Texas (True Patriot)
System Name PCGOD
Processor AMD FX 8350@ 5.0GHz
Motherboard Asus TUF 990FX Sabertooth R2 2901 Bios
Cooling Scythe Ashura, 2×BitFenix 230mm Spectre Pro LED (Blue,Green), 2x BitFenix 140mm Spectre Pro LED
Memory 16 GB Gskill Ripjaws X 2133 (2400 OC, 10-10-12-20-20, 1T, 1.65V)
Video Card(s) AMD Radeon 290 Sapphire Vapor-X
Storage Samsung 840 Pro 256GB, WD Velociraptor 1TB
Display(s) NEC Multisync LCD 1700V (Display Port Adapter)
Case AeroCool Xpredator Evil Blue Edition
Audio Device(s) Creative Labs Sound Blaster ZxR
Power Supply Seasonic 1250 XM2 Series (XP3)
Mouse Roccat Kone XTD
Keyboard Roccat Ryos MK Pro
Software Windows 7 Pro 64
Joined
Jun 15, 2016
Messages
1,041 (0.95/day)
Location
Pristina
System Name My PC
Processor 4670K@4.4GHz
Motherboard Gryphon Z87
Cooling CM 212
Memory 2x8GB+2x4GB @2400GHz
Video Card(s) XFX Radeon RX 580 GTS Black Edition 1425MHz OC+, 8GB
Storage Intel 530 SSD 480GB + Intel 510 SSD 120GB + 2x500GB hdd raid 1
Display(s) HP envy 32 1440p
Case CM Mastercase 5
Audio Device(s) Sbz ZXR
Power Supply Antec 620W
Mouse G502
Keyboard G910
Software Win 10 pro

Thelps

New Member
Joined
May 4, 2019
Messages
3 (0.07/day)
Unfortunately, Kastriot, the above method (in Windows 10) provides a CMD window that cannot be interacted with. It forces the user to wait 2 minutes or so until they're kicked back to their desktop.

Maybe a way to execute code during boot so it runs as 'System'?
 

Solaris17

Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
20,536 (4.06/day)
Location
Florida
System Name Venslar
Processor I9 7980XE
Motherboard MSI x299 Tomahawk Arctic
Cooling EK Custom
Memory 32GB Corsair DDR4 3000mhz
Video Card(s) Nvidia Titan RTX
Storage 2x 2TB Micron SSDs | 1x ADATA 128SSD | 1x Drevo 256SSD | 1x 1TB 850 EVO | 1x 250GB 960 EVO
Display(s) 3x AOC Q2577PWQ (2k IPS)
Case Inwin 303 White (Thermaltake Ring 120mm Purple accent)
Audio Device(s) Realtek ALC 1220 on Audio-Technica ATH-AG1
Power Supply Seasonic 1050W Snow
Mouse Roccat Tyon White
Keyboard Ducky Shine 6 Snow White
Software Windows 10 x64 Pro
Though I cant agree with file manipulation or CMD windows running as system and seriously hope you consider properly assessing and coding your privledge needs......

You probably havent set the registry bit needed and thats why the service cant be interacted with. Try setting this key to 0 (default 1)

HKLM\SYSTEM\CurrentControlSet\Control\Windows\NoInteractiveServices
 
Joined
Aug 20, 2007
Messages
11,196 (2.59/day)
System Name Pioneer
Processor Intel i9 9900k
Motherboard ASRock Z390 Taichi
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory G.SKILL TridentZ Series 32GB (4 x 8GB) DDR4-3200 @ DDR4-3400 14-14-14-34-2T
Video Card(s) EVGA GTX 1080 FTW2
Storage HGST UltraStar 7K6000 3.5" HDD 2TB 7200 RPM (w/128MBs of Cache)
Display(s) LG 32GK850G-B 1440p 32" AMVA Panel G-Sync 144hz Display
Case Thermaltake Core X31
Audio Device(s) Onboard Toslink to Schiit Modi Multibit to Asgard 2 Amp to AKG K7XX Ruby Red Massdrop Headphones
Power Supply Seasonic PRIME 750W 80Plus Titanium
Mouse ROCCAT Kone EMP
Keyboard WASD CODE 104-Key w/ Cherry MX Green Keyswitches, Doubleshot Vortex PBT White Transluscent Keycaps
Software Windows 10 x64
Keep in mind SYSTEM is as powerful as Linux root... you can and likely will break things.
 

Thelps

New Member
Joined
May 4, 2019
Messages
3 (0.07/day)
@Solaris17 The registry bit is set too...

Let me know if you can get your method working in Windows 10 (apparently it works in 7, but not Windows 10)...

Otherwise... other methods (that don't require programs) are all welcome.
 

bat12344

New Member
Joined
May 17, 2019
Messages
3 (0.09/day)
Hi,
I think with Windows 10, you can search “cmd” in the start menu then press right-click “cmd.exe” and choose “Run as Administrator”.
 
Joined
Aug 20, 2007
Messages
11,196 (2.59/day)
System Name Pioneer
Processor Intel i9 9900k
Motherboard ASRock Z390 Taichi
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory G.SKILL TridentZ Series 32GB (4 x 8GB) DDR4-3200 @ DDR4-3400 14-14-14-34-2T
Video Card(s) EVGA GTX 1080 FTW2
Storage HGST UltraStar 7K6000 3.5" HDD 2TB 7200 RPM (w/128MBs of Cache)
Display(s) LG 32GK850G-B 1440p 32" AMVA Panel G-Sync 144hz Display
Case Thermaltake Core X31
Audio Device(s) Onboard Toslink to Schiit Modi Multibit to Asgard 2 Amp to AKG K7XX Ruby Red Massdrop Headphones
Power Supply Seasonic PRIME 750W 80Plus Titanium
Mouse ROCCAT Kone EMP
Keyboard WASD CODE 104-Key w/ Cherry MX Green Keyswitches, Doubleshot Vortex PBT White Transluscent Keycaps
Software Windows 10 x64
Hi,
I think with Windows 10, you can search “cmd” in the start menu then press right-click “cmd.exe” and choose “Run as Administrator”.
That'll get you an Administrator prompt.

While that's all most people should ever need, that is not what OP is asking for.
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
24,875 (6.38/day)
Location
IA, USA
System Name BY-2015
Processor Intel Core i7-6700K (4 x 4.00 GHz) w/ HT and Turbo on
Motherboard MSI Z170A GAMING M7
Cooling Scythe Kotetsu
Memory 2 x Kingston HyperX DDR4-2133 8 GiB
Video Card(s) Sapphire NITRO+ RX 590 Special Edition 8 GiB DVI + HDMI
Storage Crucial MX300 275 GB, Seagate Exos X12 TB 7200 RPM
Display(s) Samsung SyncMaster T240 24" LCD (1920x1200 HDMI) + Samsung SyncMaster 906BW 19" LCD (1440x900 DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay
Audio Device(s) Realtek Onboard, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse SteelSeries Sensei RAW
Keyboard Tesoro Excalibur
Software Windows 10 Pro 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
SYSTEM is reserved for kernel mode drivers/operating system. It's not meant to be used by a user...at all. Only applications can run under SYSTEM (e.g. installers, services). I don't think your stated goal is possible. Easiest solution is to make a program that does exactly what you want and run it as administrator. Problem with that is it probably has to be signed or UAC will scream bloody murder.

Whatever you're trying to do, the method you found is probably the best way to do it. I'd be looking at ways to automate it with a batch.
 
Last edited:
Top