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 | shutdown.exe -s -t 00 |
Shutdown | shutdown.exe /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 |
start excel in new instance | excel.exe /x |
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
VBS undefined¶
e.g. WinPython «VBS run error»
ERROR : "There is no script engine for file extension .vbs"
I tried the above methods, none of them worked for me on Windows 10. I ended up going to the Windows Registry and change the Default value for HKEY_CLASSES_ROOT.vbs to VBSFile and only then it worked. SOURCE : StackOverflow https://stackoverflow.com/a/55238916
In the registry editor «address bar» this is the location : Computer\HKEY_CLASSES_ROOT.vbs
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/