• 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.00/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
40,435 (6.61/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,042 (0.37/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
Here you go:

s.png
 

Thelps

New Member
Joined
May 4, 2019
Messages
3 (0.00/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

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
25,772 (3.79/day)
Location
Alabama
System Name Rocinante
Processor I9 14900KS
Motherboard EVGA z690 Dark KINGPIN (modded BIOS)
Cooling EK-AIO Elite 360 D-RGB
Memory 64GB Gskill Trident Z5 DDR5 6000 @6400
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 500GB 980 Pro | 1x 1TB 980 Pro | 1x 8TB Corsair MP400
Display(s) Odyssey OLED G9 G95SC
Case Lian Li o11 Evo Dynamic White
Audio Device(s) Moondrop S8's on Schiit Hel 2e
Power Supply Bequiet! Power Pro 12 1500w
Mouse Lamzu Atlantis mini (White)
Keyboard Monsgeek M3 Lavender, Akko Crystal Blues
VR HMD Quest 3
Software Windows 11
Benchmark Scores I dont have time for that.
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
20,709 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches
Software Windows 11 Enterprise (legit), Gentoo Linux 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.00/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.00/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
20,709 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches
Software Windows 11 Enterprise (legit), Gentoo Linux 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
26,259 (4.65/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 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