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

How to Exclude a User or Computer from Group Policy Object

Group Policy

When you apply a group policy on a container or OU, it applies to all users or computers in that container. However, you can exclude a single or multiple users or containers from the policy applied. This tutorial is written to show you how to exclude a single user from a group policy object. Exclude a ... 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 Create a PowerShell Session on a Remote Computer

PowerShell Remote Session

To execute PowerShell commands or scripts on a remote computer, you need to create a session. This is also known as PowerShell remoting and it is just like an SSH session to an operating system. There are several ways to create a PowerShell session. I'll list one of the easiest methods here. These are the required ... 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 Stop Windows From Automatically Connecting to a Wi-Fi Network

Disable Windows WIFI autoconnect

Microsoft is vigilant when it comes to adding features to the Windows operating system for the convenience of their users. Their goal is to make Windows as user-friendly as possible. One such element of convenience by Microsoft is the automatic connection to a known wireless network.   Microsoft has this default auto-connect setting in Windows ... Read more