Four Ways to Create a Directory with PowerShell

To create a directory with the help of PowerShell, open the PowerShell console with administrative privileges and use one of the following four ways. Creating a Directory by using PowerShell Method 1: Use the new-item command new-item <path of directory suppose c:\dir1> -itemtype directory Method 2: Use a file system object $fso = new-object -ComObject ... Read more

Windows Powershell – “Running scripts is disabled on this system”

PowerShell

Powershell scripts can be run on any Windows system as long as they are run from the ISE by pushing the green play button. As soon as you want to run it from the cmd or the desktop file you'll get this error: script1.ps1 cannot be loaded because running scripts is disabled on this system. ... Read more

How to Append Data to a Text File Using PowerShell

You can use the PowerShell add-content cmdlet to append data to a text file. Here are an example and the command-line options that you can use. Powershell add-content example Step 1. Open PowerShell with elevated privileges Step 2. Execute the following command, (change the file path) Add-Content c:\scripts\test.txt "The End" By default, the data is appended after ... Read more

How to save command output to a file using PowerShell

PowerShell command to file

PowerShell is a command-line shell designed particularly for system administrators. It helps administrators to manage and automate the administration of Windows operating systems and the Apps running on it. PowerShell has the ability to save the outputs of commands you run in it into a file which you can later view, analyze, and share it ... Read more

How to Change Your IP Address in Windows Using PowerShell

Set IP address with PowerShell

You may know how to change IP address via GUI. It's pretty easy. Just go to Control panel > network and internet, selecting the IPv4 Properties and change the IP address. This whole process will take around a minute to do so. But what if you have to do it on multiple systems and repeat ... Read more

How to Check the Battery Usage in Windows 10

Windows 10 Battery Report

In today’s world of information technology, almost all of us are habitual of using computer systems or computer controlled devices very frequently. We are tuned to perform all our routine activities using these devices. However, at times, we nearly forget to have a look at the battery consumption of our devices, which is, in fact, ... Read more

How to Find the Security Identifier (SID) of Any User in Windows 10

Get Windows User SID

SID or Security Identifier is defined as a string value, which is associated with every single Windows user account. Just like the user account name, SID is also another parameter to recognize a user account in Windows 10. You can grant special privileges to certain user accounts or you can restrict the activities of certain ... Read more