How to Get a List of Windows PowerShell Modules that can be Imported

Modules are collections of cmdlets that are stored in the path %WINDIR%\System32\WindowsPowerShell\. Get a List of Windows PowerShell Modules Now execute the following command to display the location of each directory where these modules are exactly stored at your computer: write-host "$PSModulePath" You can get a list of all available modules on your computer by ... Read more

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

How to Check Windows 10 Update History Using PowerShell

Windows PowerShell Update history

All of the Windows 10 users are familiar with its feature of automatic update. Automatic update installs an update or a security patch as soon as it finds any of your applications or features getting obsolete. This feature also saves you from all kinds of security threats. The user can turn this feature on or ... Read more