This post explains how to delete files using Powershell command ‘Remove-Item’. Delete file from PowerShell We can delete a file using remove-item command as below. Open powershell prompt and execute the command. remove-item file-path Example: PS C:\> Remove-Item C:\test\testFile.txt PS C:\> Delete multiple files We can delete as many files as we want with single [...]
There are couple of ways to check if Microsoft Silverlight is installed on your Windows computer. This post explains both the methods with examples. Programs and Features console This console shows all installed software on your system and also features available on your Windows installation that you can enable as add-on. You can look for [...]
Windows has shortcut commands which can be used from Run to launch applications quickly. Run command for opening ‘task manager’ is taskmgr. Here are the steps to open task manager from ‘Run’. Open run window( press keys [Win]+[R] ) Type ‘taskmgr’ and press [Enter]
Do you want to Start or stop Windows service using Powershell? This post explains how to manage any Windows service with the help of the PowerShell cmdlets ‘Start-Service’, ‘Stop-Service’ and ‘Restart-Service’ Stop Windows service using PowerShell Run the following steps to stop a Windows service Open powershell with admin privileges. You can do this by [...]
Do you want to add a domain group to local administrators group? We can do this from CMD using ‘net localgroup’ command. In corporate network, IT administrators would like to have ability to manage all Windows computers connected to the network. This can be accomplished by having an active directory group with all administrators domain accounts [...]
Robocopy command is used on Windows to copy files and directories from one location to another. This CMD command also prints a detailed report of the copy operation. Below you can find examples for using Robocopy in various usecases. Copy a directory Example: Copy all the files in the directory D:\dir1\data to E:\backup\data. Don’t include [...]
Generally the tech world sees Windows command line less powerful than what Linux’s command line can do. However, there are still lots of things one can do with the native available Windows commands, as this website shows all such tricks with examples. With the addition of PowerShell, I don’t think there is any limit for [...]
We can kill a process from GUI using Task manager. If you want to do the same from command line., then taskkill is the command you are looking for. This command has got options to kill a task/process either by using the process id or by the image file name. Kill a process using image [...]
Do you want to know how to reboot Windows computer using PowerShell . This post explains how to use the command restart-computer to trigger reboot from powershell CMD. Reboot Windows from PowerShell Open PowerShell prompt by running powershell from cmd. Run the below command which reboots Windows without asking user for any confirmation. restart-computer Reboot with user confirmation [...]
Learn how to install PowerShell help documents on your local computer and avoid looking up online. Open administrator command prompt Run powershell from cmd. Next you would see PowerShell prompt. Run the command(cmdlet) update-help. That’s all you have to do. The command would do automated installation of all help files. After the installation completes,you can [...]
