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

Windows 10 commands/shortcuts/env. var.

Joined
Jan 8, 2017
Messages
568 (0.21/day)
System Name ACME Singularity Unit
Processor Coal-dual 9000
Motherboard Oak Plank
Cooling 4 Snow Yetis huffing and puffing in parallel
Memory Hasty Indian (I/O: 3 smoke signals per minute)
Video Card(s) Bob Ross AI module
Storage Stone Tablet 2.0
Display(s) Where are my glasses?
Case Hand sewn bull hide
Audio Device(s) On demand tribe singing
Power Supply Spin-o-Wheel-matic
Mouse Hamster original
Keyboard Chisel 1.9a (upgraded for Stone Tablet 2.0 compatibility)
Software It's all hard down here
Wrong quote, lol.. this is a batch for One Drive:

@Echo off
cls

set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"

echo Closing OneDrive process.
echo.
taskkill /f /im OneDrive.exe > NUL 2>&1
ping 127.0.0.1 -n 5 > NUL 2>&1

echo Uninstalling OneDrive.
echo.
if exist %x64% (
%x64% /uninstall
) else (
%x86% /uninstall
)
ping 127.0.0.1 -n 5 > NUL 2>&1

echo Removing OneDrive leftovers.
echo.
rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1

echo Removing OneDrive from the Explorer Side Panel.
echo.
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1

------------------------------------------------------------------------------------------------------------------------------


And to remove Skype entirely, after uninstalling it normally, run Powershell with admin rights and type:

Get-AppxPackage *Microsoft.SkypeApp* | Remove-AppxPackage

Then type:

dism /online /Get-ProvisionedAppxPackages

Find and copy the SkypeApp.* from the list, then type:

dism /online /Remove-ProvisionedAppxPackage /PackageName:

Paste copied text right after "PackageName:", no spaces

------------------------------------------------------------------------------------------------------------------------------

Warning: Removing packages (such as Skype) can cause sysprep issues, i'm fine with it but you may not be. In my case, this only affects me in my being unable to do Windows Updates, which i never do anyway; instead, i do a clean install every oh so many months. I must also learn how to post like a normal person, 'cause i've done like 10 edits since i first posted this :)
 
Last edited:
Joined
Oct 17, 2012
Messages
9,781 (2.33/day)
Location
Massachusetts
System Name Americas cure is the death of Social Justice & Political Correctness
Processor i7-11700K
Motherboard Asrock Z590 Extreme wifi 6E
Cooling Noctua NH-U12A
Memory 32GB Corsair RGB fancy boi 5000
Video Card(s) RTX 3090 Reference
Storage Samsung 970 Evo 1Tb + Samsung 970 Evo 500Gb
Display(s) Dell - 27" LED QHD G-SYNC x2
Case Fractal Design Meshify-C
Audio Device(s) on board
Power Supply Seasonic Focus+ Gold 1000 Watt
Mouse Logitech G502 spectrum
Keyboard AZIO MGK-1 RGB (Kaith Blue)
Software Win 10 Professional 64 bit
Benchmark Scores the MLGeesiest
I've uninstalled skype and it's gone completely. It won't appear even when I install a new build

Yeah I removed it too but I have seen the process running in task manager from time to time
 
Joined
May 4, 2012
Messages
985 (0.23/day)
Location
Ireland
Now if that'd work for OneDrive... :D
I think they have fixed it. I was able to uninstall OneDrive just by right clicking on it and then uninstall. No PowerShell, no CMD or any other kind of hacking.

Clean W10 install, latest ISO downloaded today, all updates applied.
 
Joined
Jan 8, 2017
Messages
568 (0.21/day)
System Name ACME Singularity Unit
Processor Coal-dual 9000
Motherboard Oak Plank
Cooling 4 Snow Yetis huffing and puffing in parallel
Memory Hasty Indian (I/O: 3 smoke signals per minute)
Video Card(s) Bob Ross AI module
Storage Stone Tablet 2.0
Display(s) Where are my glasses?
Case Hand sewn bull hide
Audio Device(s) On demand tribe singing
Power Supply Spin-o-Wheel-matic
Mouse Hamster original
Keyboard Chisel 1.9a (upgraded for Stone Tablet 2.0 compatibility)
Software It's all hard down here
I think they have fixed it. I was able to uninstall OneDrive just by right clicking on it and then uninstall. No PowerShell, no CMD or any other kind of hacking

You can now yes, but the above is faster and leaves no registry traces behind. Uninstalling does and unless you're on a custom mode, no reg cleaner out there will delete miscrosoft entries :)
 
Joined
Oct 17, 2012
Messages
9,781 (2.33/day)
Location
Massachusetts
System Name Americas cure is the death of Social Justice & Political Correctness
Processor i7-11700K
Motherboard Asrock Z590 Extreme wifi 6E
Cooling Noctua NH-U12A
Memory 32GB Corsair RGB fancy boi 5000
Video Card(s) RTX 3090 Reference
Storage Samsung 970 Evo 1Tb + Samsung 970 Evo 500Gb
Display(s) Dell - 27" LED QHD G-SYNC x2
Case Fractal Design Meshify-C
Audio Device(s) on board
Power Supply Seasonic Focus+ Gold 1000 Watt
Mouse Logitech G502 spectrum
Keyboard AZIO MGK-1 RGB (Kaith Blue)
Software Win 10 Professional 64 bit
Benchmark Scores the MLGeesiest
this is a batch for One Drive:

Is all that text meant to be copied and then entered into powershell? For one drive I mean.

I used the Skype one and it seems to have worked thank you for that
 
Joined
Jan 8, 2017
Messages
568 (0.21/day)
System Name ACME Singularity Unit
Processor Coal-dual 9000
Motherboard Oak Plank
Cooling 4 Snow Yetis huffing and puffing in parallel
Memory Hasty Indian (I/O: 3 smoke signals per minute)
Video Card(s) Bob Ross AI module
Storage Stone Tablet 2.0
Display(s) Where are my glasses?
Case Hand sewn bull hide
Audio Device(s) On demand tribe singing
Power Supply Spin-o-Wheel-matic
Mouse Hamster original
Keyboard Chisel 1.9a (upgraded for Stone Tablet 2.0 compatibility)
Software It's all hard down here
Is all that text meant to be

My apologies, it's just a batch. Save it with notepad/n++, rename -> change extension from .txt. to .bat and double click :)
 
Joined
Sep 1, 2010
Messages
7,023 (1.41/day)
A couple of key combinations I've never heard of

After minimizing all windows with Win+D you can restore them with Win+D or with Win+Shift+M
Win+Ctrl+F Find Computer
Win+Shift+S lets you select and save a rectangular piece of the screen so you can paste it in any image editor
Win + A - Action Center
Win + B - Set focus in the notification area


Win+Shift+S is really awesome. Goodbye print screen
 
Joined
Jan 31, 2005
Messages
2,053 (0.29/day)
Location
Denmark
System Name Commercial towing vehicle "Nostromo"
Processor 5800X3D
Motherboard X570 Unify
Cooling EK-AIO 360
Memory 32 GB Fury 3666 MHz
Video Card(s) 4070 Ti Eagle
Storage SN850 NVMe 1TB + Renegade NVMe 2TB + 870 EVO 4TB
Display(s) 25" Legion Y25g-30
Case Lian Li LanCool 216 v2
Audio Device(s) B & W PX7 S2e
Power Supply HX1500i
Mouse Harpe Ace Aim Lab Edition
Keyboard Scope II 96 Wireless
Software Windows 11 23H2
Windows activation = slmgr /ATO
 

Ahhzz

Moderator
Staff member
Joined
Feb 27, 2008
Messages
8,738 (1.48/day)
System Name OrangeHaze / Silence
Processor i7-13700KF / i5-10400 /
Motherboard ROG STRIX Z690-E / MSI Z490 A-Pro Motherboard
Cooling Corsair H75 / TT ToughAir 510
Memory 64Gb GSkill Trident Z5 / 32GB Team Dark Za 3600
Video Card(s) Palit GeForce RTX 2070 / Sapphire R9 290 Vapor-X 4Gb
Storage Hynix Plat P41 2Tb\Samsung MZVL21 1Tb / Samsung 980 Pro 1Tb
Display(s) 22" Dell Wide/24" Asus
Case Lian Li PC-101 ATX custom mod / Antec Lanboy Air Black & Blue
Audio Device(s) SB Audigy 7.1
Power Supply Corsair Enthusiast TX750
Mouse Logitech G502 Lightspeed Wireless / Logitech G502 Proteus Spectrum
Keyboard K68 RGB — CHERRY® MX Red
Software Win10 Pro \ RIP:Win 7 Ult 64 bit
How to fix Windows 10 removing the control panel from your Power Menu. Credit to PC World for the directions.

Bring up the "Run" Prompt: Windows key + R. Enter or paste %LOCALAPPDATA%\Microsoft\Windows\WinX\Group2, and hit Enter.
Move the existing Control Panel icon to a separate folder on your desktop, "just in case".
Download the attached shortcut provided from Deskmodder.de
Extract the Control Panel icon and place it in the Winx folder.
Restart your computer, or right-click and restart the Windows Explorer process in Task Manager. (ctrl-shift-esc, scroll down the processes tab, and right click "Windows Explorer", restart. If you don't see the processes tab, click More Details).

Windows key + X or right click the windows icon for the start menu.
Profit.
 

Attachments

  • Systemsteuerung-Win-X-Menue.zip
    1.2 KB · Views: 228
Joined
Sep 1, 2010
Messages
7,023 (1.41/day)
Fix Slow-Loading Windows Icons by Increasing the Icon Cache in Windows 10

winver -> regedit -> enter -> alt+d -> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -> enter

Right-click the Explorer folder and select New > String Value. Name the new value Max Cached Icons.

Double click Max Cached Icons to open the Edit String window. In the “Value data” box, enter a new value for the icon cache size. By default, the icon cache size is 500 KB. 4096 (4 MB) or 8192 (8 MB) is sufficient. Click OK when you're done. Reboot.
 
Joined
Jan 4, 2017
Messages
431 (0.16/day)
Location
Ohio
I hate how wuapp is gone for windows update in 10. That is muscle memory for updating PC's at work. Grrr
 
Joined
Oct 17, 2012
Messages
9,781 (2.33/day)
Location
Massachusetts
System Name Americas cure is the death of Social Justice & Political Correctness
Processor i7-11700K
Motherboard Asrock Z590 Extreme wifi 6E
Cooling Noctua NH-U12A
Memory 32GB Corsair RGB fancy boi 5000
Video Card(s) RTX 3090 Reference
Storage Samsung 970 Evo 1Tb + Samsung 970 Evo 500Gb
Display(s) Dell - 27" LED QHD G-SYNC x2
Case Fractal Design Meshify-C
Audio Device(s) on board
Power Supply Seasonic Focus+ Gold 1000 Watt
Mouse Logitech G502 spectrum
Keyboard AZIO MGK-1 RGB (Kaith Blue)
Software Win 10 Professional 64 bit
Benchmark Scores the MLGeesiest
My apologies, it's just a batch. Save it with notepad/n++, rename -> change extension from .txt. to .bat and double click

thank You, it worked great, thanks for your work.
 
Joined
Sep 1, 2010
Messages
7,023 (1.41/day)
'New' command (added to the OP)

wmic diskdrive get model,status - checks the S.M.A.R.T. status of the drives and shows the model.
It returns Pred Fail if your drive is near death and OK if everything's ok.

 
Joined
Nov 1, 2017
Messages
521 (0.22/day)
wmic product where "name like '%name of software%'" call uninstall
wmic product where "vendor like '%vendor of software%" call uninstall

usefull if you want to uninstall something fast when in a non-admin user. You can put /nointeractive if you don't want to confirm the uninstallation.
NOTE THAT IF THE PC HAS TOO REBOOT, IT WILL REBOOT WITHOUT ASKING

Example ;
wmic product where "vendor like '%Autodesk%'" call uninstall /nointeractive
1528228164827.png


will bulk uninstall all autodesk software.

You can create it as a script to uninstall things remotely too but the AV often block the script unfortunately.

---------------------------

arp -a
will show you the MAC Address of known devices in the same subnet. If you want to know a MAC fast, change IP to fit the subnet, ping the desired computer and type arp -a
 
Last edited:
Joined
Sep 1, 2010
Messages
7,023 (1.41/day)
Just forgot about this fact:

In Microsoft Windows, you can't create folders that have their name from one of these words:

CON, PRN, AUX, NUL, COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9.


If you try you'll get this error

 
Joined
Oct 28, 2018
Messages
565 (0.28/day)
Location
Zadar, Croatia
System Name SloMo
Processor G4560
Motherboard MSi H110-PRO-D
Cooling LC-CC-95 @ Arctic Cooling fan
Memory 2X Crucial DDR4 2400 4GB
Video Card(s) Integrated HD 610
Storage WD 500 GB + Seagate 500 GB + Toshiba 3 TB
Display(s) Lenovo D221
Case Corsair Carbide 100R
Audio Device(s) Manhattan Flex BT Headphones, Encore P-801 stereo speakers
Power Supply Corsair CX450M
Mouse microsoft office mouse
Keyboard Modecom mc-800m
Software Windows 10 Pro x64
Benchmark Scores gorstak @ hwbot.org
shell:startup command will open your startup folder in file explorer
shell:appsfolder will open a folder which shows all your installed apps
 

Dmu

New Member
Joined
Dec 6, 2019
Messages
7 (0.00/day)
Thanks for this topic, I just got out of a situation thanks to all of this :)
 
Joined
Jan 31, 2005
Messages
2,053 (0.29/day)
Location
Denmark
System Name Commercial towing vehicle "Nostromo"
Processor 5800X3D
Motherboard X570 Unify
Cooling EK-AIO 360
Memory 32 GB Fury 3666 MHz
Video Card(s) 4070 Ti Eagle
Storage SN850 NVMe 1TB + Renegade NVMe 2TB + 870 EVO 4TB
Display(s) 25" Legion Y25g-30
Case Lian Li LanCool 216 v2
Audio Device(s) B & W PX7 S2e
Power Supply HX1500i
Mouse Harpe Ace Aim Lab Edition
Keyboard Scope II 96 Wireless
Software Windows 11 23H2
If you work a lot in command prompts and have many repeated commands - then F7 is great.
Great command history re-user.
Discovered it when I worked with Window Server 3.5.1 - and yes, I am old ;-)
F7-Command-Hist.png
 
Joined
Sep 1, 2010
Messages
7,023 (1.41/day)
New exclusive to Windows 10 2004 DISM commands:

Windows 10 2004 Adds DISM ReservedStorage Commands

Code:
DISM /Online /Set-ReservedStorageState /State:Enabled
DISM /Online /Set-ReservedStorageState /State:Disabled

Sets the state of reserved storage. This command line option is only supported for online Windows images. If reserved storage is in use, it may not be disabled, and the following error is returned: This operation is not supported when reserved storage is in use. Please wait for any servicing operations to complete and then try again later.

Code:
DISM /Online /Get-ReservedStorageState

Gets the current state of reserved storage
 

Space Lynx

Astronaut
Joined
Oct 17, 2014
Messages
15,890 (4.58/day)
Location
Kepler-186f

@W1zzard This needs updated to the above link I think, not 100% sure on that, but I think so.


Wasn't sure where else to post this, sorry! March 27th update.
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,029 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit

@W1zzard This needs updated to the above link I think, not 100% sure on that, but I think so.


Wasn't sure where else to post this, sorry! March 27th update.
thanks. my package isn't based on the one from majorgeeks.
i build mine using the original microsoft installers, and include a clear-text batch install script, so you can be 100% sure everything is untouched.
microsoft did release a new version of the 2015-2019 runtimes, our download has been updated accordingly
 
Joined
Sep 1, 2010
Messages
7,023 (1.41/day)


How to check if TRIM is enabled:

fsutil behavior query DisableDeleteNotify

If it says NTFS & ReFS DisableDeleteNotify = 0 (Disabled) it means TRIM is enabled
(if = 1 then TRIM is disabled), what a counterintuitive crap, whateeeeeeeeeeeeeeeeeva

How to enable TRIM

fsutil behavior set DisableDeleteNotify 0
 
Top