Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

45 total results found

Change Windows DNS

Windows Command Line

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...

Windows Command Line
Networking

Domain Controllers Sync Password Reset

Windows Command Line

Command netdom resetpwd /s:{servername} /ud:{Username} /pd:* Example netdom resetpwd /s:wrsi-adfs /ud:wrsi.local\pitadmin /pd:Mis-staff

Windows Command Line
Networking
Active Directory

Sudo for Windows

Windows Command Line

The attached CMD files can be called to force another application to run with administrator rights. Example Sudo cmd.exe Attached File Sudo.cmd

Windows Command Line

Windows Offline Files

Windows Command Line

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 Command Line

Windows 10 Hide Shutdown, Restart, Sleep links

Windows Command Line

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...

Windows Command Line

Map Network Drive - Command Line

Windows 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

Windows Command Line
Networking

Microsoft Word won't close (Windley Ely)

Windows Command Line

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...

Windows Command Line
Microsoft Office

Robocopy - Move files older than 60 days to archive folder

Windows Command Line

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...

Windows Command Line
Robocopy

Robocopy - Move only files under 60 days old

Windows Command Line

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...

Windows Command Line
Robocopy

Inject Product Key to Server 2019 after install

Windows Command Line

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>

Windows Command Line
Licensing

Switch Windows Terminal Services to Install Mode

Windows Command Line

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...

Windows Command Line
MSRDS

Enable Remote Desktop From Command line in Windows

Windows Command Line

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...

Windows Command Line
MSRDS

Change Windows Computer Name

Windows Command Line

Change Computer Name using PowerShell From an elevated PowerShell enter the following PowerShell’s command, substituting with your preferred name, and press the “Enter” to rename the computer: Rename-Computer -NewName "<NewHostname>" Change Computer Name us...

Windows Command Line
PowerShell

Free Disk Space on Windows Command Line

Microsoft Windows Windows General

From the command line execute to get total and free space from the C drive fsutil volume diskfree c:

Windows Command Line

Activate Windows Server from Command Line

Microsoft Windows Windows Server

slmgr.vbs /ipk C7KG2-D2NVR-P7G6Y-BTF2M-TX2HR slmgr.vbs /ipk 4HN9C-MWF78-CW9HG-J7Y3C-D7BK6 RB329-W7NFH-FQC4G-GM9XV-2R47G3B4M8-XNMFM-X9VJR-TTXG7-WK9QTGW2T2-PPNH2-JYP76-CBQ48-82Q96 Server 2019 slmgr.vbs /ipk YRGQN-896KG-VV3WV-J96GW-HMKRD

Windows Command Line
Windows Server

Scheduled Tasks - Reboot machine One Time

Windows Command Line

From an elevated Command Line schtasks /create /TN "Reboot Machine" /TR "C:\Windows\System32\shutdown.exe -r -t 1" /SC ONCE /ST 21:15

Windows Command Line
Microsoft Windows

No RDS Licenses available

Microsoft Windows Windows Remote Desktop

Cause This generally is a message that is displayed on the client machine and is not really what it says. It is just that the client does not think it has a license for RDS To fix this issue To fix this, the following can be copied and pasted in a .reg file...

Windows RDS
Windows Command Line

Disable LLMNR

Windows Command Line

From and elevated Command Line REG ADD “HKLM\Software\policies\Microsoft\Windows NT\DNSClient” REG ADD “HKLM\Software\policies\Microsoft\Windows NT\DNSClient” /v ” EnableMulticast” /t REG_DWORD /d “0” /f

Microsoft Windows
Windows Command Line
Windows Registry

Copy files with permissions

Windows Command Line

xcopy x:*.* y:*.* /D /E /C /F /H /K /O /Y

Windows Command Line
xcopy
Microsoft Windows

How to determine WiFi signal strength on Windows 10

Microsoft Windows Windows General

You can check the Wi-Fi signal strength to find out the connection performance, and in this guide, you'll learn the steps to perform this task on Windows 10. On Windows 10, when you connect a device to the internet to work from home or office using a Wi-Fi ...

Windows Command Line