Advanced Search
Search Results
192 total results found
Remove Corrupted Recycle Bin
Run from an elevated Command Line rd /s /q C:\$Recycle.Bin
Time Zone Commands
List All Time Zones tzutil /l List Current Time Zone tzutil /g Set Time Zone tzutil /s "Eastern Standard Time"
Sudo for Windows
The attached CMD files can be called to force another application to run with administrator rights. Example Sudo cmd.exe Attached File Sudo.cmd
Turn on the Windows Admin Share
This is executed from an elevated Command Line REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
Turn on File/Folder Inheritance
The code snippet below turns on File/Folder inheritance recursively from the current position This is to be run from an elevated Command Line icacls "*" /q /c /t /reset
Unexpected Shutdown Message will not go away
This occurs when the Dirty Shutdown flag in Windows does not go away and displays the dialog every login Run as Administrator with an elevated Command Line REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability /v DirtyShutdown /t REG_DWORD /d 0 ...
Update Microsoft Office without a Windows Online Username
This will initiate the update of Microsoft Office without logging into Microsoft These commands are executed from an elevated Command Line With GUI "C:\Program Files\Common Files\microsoft shared\ClickToRun\OfficeC2RClient.exe" /update user Headless "C:\P...
Windows Computer Uptime
Both of these commands will display the uptime for the current computer systeminfo | find "System Boot Time:" or net statistics workstation |find "Statistics since"
Display Windows License Information
Run from Command Line slmgr -dli
Change Windows DNS
Show the current configuration netsh interface ip show config Set the Static DNS netsh interface ip set dns "Local Area Connection" static 195.46.39.39 netsh interface ip add dns nam"Local Area Connection" static 195.46.39.40 index=2 netsh interface ip se...
Domain Controllers Sync Password Reset
Command netdom resetpwd /s:{servername} /ud:{Username} /pd:* Example netdom resetpwd /s:wrsi-adfs /ud:wrsi.local\pitadmin /pd:Mis-staff
Windows Offline Files
The two command files attached are for turning Off or On Offline Files in Windows. These should be run from an elevated command prompt A reboot is required after the settings have been applied. Attached Files OfflineFilesOff.cmd OfflineFilesOn
Windows 10 Hide Shutdown, Restart, Sleep links
Run from an Elevated Command Prompt Hide Shutdown Links REG ADD HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideShutDown /v value /t REG_DWORD /d 1 /f Hide Restart Links REG ADD HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideRestart /v val...
Map Network Drive - Command Line
Example of mapping a drive from the command line net use m: \\server01\share Example of mapping a drive from the command line that persists after logoff net use m: \\server01\share /persistent:Yes
Microsoft Word won't close (Windley Ely)
This is caused by residue from Wordox Remove the offensive file with the following del c:\USers\%username%\AppData\Roaming\Microsoft\Word\Startup\@[email protected] del c:\USers\%username%\AppData\Roaming\WORLDOX\*.* rm c:\USers\%username%\AppD...
Robocopy - Move files older than 60 days to archive folder
This line of code will move files from c:\temp to c:\temparchive that are older than 60 days. It makes a log file of what is moved in c:\temp\FileUnder60daysMoved.txt robocopy c:\temp c:\temparchive /mov /MINAGE:60 /copyall /s >c:\temp\FilesOver60daysMoved.tx...
Robocopy - Move only files under 60 days old
This line of code will move files from c:\temp to c:\temparchive that are less than 60 days old. It makes a log file of what is moved in c:\temp\FileUnder60daysMoved.txt robocopy c:\temp c:\temparchive /mov /MAXAGE:60 /copyall /s >c:\temp\FileUnder60daysMoved...
Inject Product Key to Server 2019 after install
To activate or inject a product key in Microsoft Windows Server 2019.Enter this code in an elevated command prompt . This will also work with Windows 10 and 11. c:\windows\system32\slmgr.vbs /ipk <productkey>
Switch Windows Terminal Services to Install Mode
To Switch Terminal Services to Install Mode When you want to add or remove programs, or change settings for all users on the Terminal Services server in Install mode. To do this: Click Start, and then click Run.In the Open box, type cmd, and then click OK.At...
Enable Remote Desktop From Command line in Windows
This guide will teach you the steps to use Command Prompt to enable or disable Remote Desktop and open the required firewall ports for a successful connection on Windows 10. Enable Remote Desktop using Command Prompt To enable the remote desktop protocol wit...