Windows Commands

How to set the maximum size for Shadow Copies on Windows Server 2016
1.5 (2)

If System Volume Information is taking up a large amount of space due to a third party backup product not automatically deleting the snapshots you can run the following command via the command prompt to restrict the amount of space used for snapshots in an emergency whilst determining the problem.  The same command may work […]

How to Auto Lock Windows 10 via Windows Registry
3 (2)

Browse to the following registry Key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System Create a new DWORD Entry Create a new DWORD Entry called InactivityTimeoutSecs and give it a value in seconds.  For example, 10 minutes would be 600 Please note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. As a result of the speed in […]

How to Check the CPU Load Percentage using the Command Prompt
4 (4)

Type the following in to the command prompt to check the CPU Load Percentage wmic cpu get loadpercentage Please note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any […]

How to create a shortcut to a Windows application on the desktop using VBScript
3 (2)

Below is the script we use to create a shortcut to our portal in our RMM.  This can be modified to suit your needs. SET fso = Wscript.CreateObject(“Scripting.FileSystemObject”) SET WshShell = WScript.CreateObject(“WScript.Shell”) WinDir = WshShell.ExpandEnvironmentStrings(“%WinDir%”) strDsk = “C:\Users\Public\Desktop” strshortcut = strDsk & “\Portal.lnk” If Not fso.FileExists(strshortcut) Then     SET oUrlLink = WshShell.CreateShortcut(strshortcut)     […]

How to Redirect Port from LAN to LAN using the command prompt
3 (2)

netsh interface portproxy add v4tov4 listenaddress=103.27.224.61 listenport=61001 connectaddress=10.0.1.250 connectport=61001 netsh interface portproxy delete v4tov4 listenaddress=103.27.224.61 listenport=61001 netsh interface portproxy show all Please note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. As a result of the speed in making it available, the materials may include typographical errors and may be […]

How to Uninstall Programs using WMIC
0 (0)

wmic product get name, version, vendor wmic product where name=”Name Of Program” call uninstall Please note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice.  More […]

How to Download and install file via command line in Windows
5 (2)

mkdir c:\temp certutil.exe -urlcache -split -f “https://4it.com.au/file.exe” c:\temp\file.exe c:\temp\file.exe /S /norestart Please note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice.  More than likely specific […]

How to Add DNS entry to hosts file using the command prompt
4 (4)

Here is the format to add an entry to the hosts file on the local pc using the command prompt echo 1.1.1.1 dropbox.com >> %WINDIR%\System32\Drivers\Etc\Hosts Where 1.1.1.1 is the IP Address and dropbox.com is the name that resolves to that IP Address Please note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. […]

How to block external USB Storage devices using the command prompt
0 (0)

To block external USB Storage devices using the command prompt type in the following: reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR” /t Reg_dword /v Start /f /d 4 Alternatively you could add it manually to the registry. Please note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. As a result of the speed […]

Check Bitlocker Status from the Command Line
3.4 (5)

Here’s how to check the status of Bitlocker from the command line. Step 1 Open the command prompt as an administrator Step 2 Enter the following command: manage-bde -status C: Where C is the letter of the drive you wish to check You will be presented with the Bitlocker status including some details as shown […]

How to check the drive performance in Windows 10 Command Line (Built in)
4.1 (16)

There’s no need to download an external tool to check the drive performance in windows quickly from the command prompt.  Sure there are tools that will provide more detailed information but quite often if you’re just looking to find out whether the hard drive is bogging down your PC here is how you can do […]

How to – Robocopy Command Line
5 (1)

Robocopy is used to copy directories and files in windows.  Here are some Robocopy examples which can be used. Robocopy – How to copy a directory As the title says this Robocopy command will copy a directory to another location. Robocopy C:\test D:\test Robocopy – How to copy the complete folder hierarchy or directory structure […]

How to start Remote Desktop (RDP) from the Command Prompt
3.3 (33)

MSTSC is the command that you need to use to open Windows Remote Desktop in the command prompt. You can type MSTSC directly in to the search box on Windows 10 (or click on Start > Run in earlier Windows versions). You can also use the MSTSC command directly from the command line as well.  […]

How to Silently uninstall Trend Micro WFBP Client/Server Security Agent using your RMM tool
1 (2)

Note: This article assumes that you have a high understanding of the command line and editing the registry. Step 1 Delete the following registry key using your remote registry editor: 32-bit: HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc\Allow Uninstall 64-bit: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc\Allow Uninstall Step 2 Depending on your operating system browse to one of the following directories using your remote command line […]

How to Reboot Unifi Access Point from Unifi Controller
3.6 (17)

Log in to the Unifi Controller Click on the Devices Tab Click on the Access Point you wish to restart On the right-hand side fly in click on the tools icon Scroll down and click on Open Terminal On the terminal that opens type in reboot and hit enter  

How to change the Lock screen timeout using Command Prompt
4.4 (8)

Here is how to change the Lock Screen Timeout on Windows 10 using the command prompt. Changing the Lock Screen Timeout when running on AC power To change the Lock screen timeout using Command Prompt, do the following: Type in to the search box Command.  Right click on command and choose to run as an Administrator. […]