# Useful Windows Commands

**URL:** <https://onehack.st/t/useful-windows-commands/300823>\
**Category:** Tutorials & Methods\
**Tags:** tips-tricks, windows\
**Created:** [February 15, 2025, 8:36pm UTC](https://onehack.st/t/useful-windows-commands/300823 "2025-02-15T20:36:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlayBoy83](https://onehack.st/user_avatar/onehack.st/playboy83/32/164314_2.png) [@PlayBoy83](https://onehack.st/u/PlayBoy83)\
**Post date:** [February 15, 2025, 8:36pm UTC](https://onehack.st/t/useful-windows-commands/300823/1 "2025-02-15T20:36:37Z")

</div>

**Clear Cached Credentials:**

> rundll32.exe keymgr.dll,KRShowKeyMgr

**Flush DNS to reload Hosts file:**

> ipconfig /flushdns

**Move Chrome Cache to Ram drive (R:):**

> :d  
> cd “%localappdata%\Google\Chrome\User Data\Default”  
> rem back-up/rename current cache folder  
> rename Cache Cachex  
> rem go to ram drive  
> R:  
> cd   
> mkdir chrome\_cache  
> mklink /D %localappdata%\Google\Chrome\User Data\Default\Cache r:\chrome\_cache

**Reset Icons:**

> @echo off  
> taskkill /F /IM explorer.exe  
> cd /d %userprofile%\AppData\Local  
> attrib -h IconCache.db  
> del IconCache.db  
> start explorer.exe

**Maximized Windows using batch commands:**

> if not “%1” == “max” start /MAX cmd /c %0 max & exit/b

**Enable God Mode in Windows 10/11:**

> - Create new folder on Desktop
> - Name it “GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}”
> - Double Click the renamed folder
> 
> This should open a folder with over 200 options and settings.

**Happy learning!**
