Skip to content

Windows Stuff

Windows Commands

Desc Command
Shutdown w/msg C:\Windows\System32\shutdown.exe -s "goodbye ska :o)"
Shutdown shutdown.exe -s -t 00 -f
Shutdown immediately shutdown.exe -s -t 00
Shutdown immediately shutdown /s /t 0
Restart shutdown.exe -r -t 00
Lock computer Rundll32.exe User32.dll,LockWorkStation
Hibernate rundll32.exe PowrProf.dll,SetSuspendState
Sleep rundll32.exe powrprof.dll,SetSuspendState 0,1,0
go to apps folder shell:appsfolder
go to startup folder shell:startup

In Explorer: open Terminal in current dir : - go to the address bar & type :
wt -d .

Control user password log-in screen toggle :
- either: netplwiz
- or: control userpasswords2

Windows Themes Folder :
C:\Windows\Resources\Themes\

Directory Shortcuts

Command Desc
%windir% go to windows directory
%appsdata% go to user's App Data profile

Product Key Activation from the Command Line

Command Desc
slmgr /upk This will uninstall the current product key from Windows and
put it into an unlicensed state
slmgr /cpky This will remove the product key from the registry if it's
still there
slmgr /rearm This is to reset the Windows activation timers so the new users
will be prompted to activate Windows when they put in the key

REF: - HowTo Geek - Use slmgt - StackOverflow - Reset Windows Activation/Remove license key

Disable Installations on Windows

REF : Code Project

Start gpedit.msc
> Computer Configuration
> Administrative Templates
> Windows Components
> Windows Installer
> Disable Windows Installer

URLs

Windows Logon Screen Customisation

Resource Hacker - program for editing windows themes and stuff :
http://melander.dk/reseditor/ http://www.askvg.com/tutorial-all-about-resource-hacker-in-a-brief-tutorial/