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

PowerShell

Powershell scripts can be run on any Windows server or desktop 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 ... Read more

How to Create Multiple Hyper-V Virtual Machines Using PowerShell

Hyper-V PowerShell

Creating multiple Hyper-V virtual machines using Hyper-V manager is not a quick method. The quickest and time-saving method is to create them via Windows PowerShell. This tutorial has been written to show you how to create three Hyper-V virtual machines with a PowerShell script. Create Multiple Hyper-V Virtual Machines Using PowerShell Step 1. Open notepad editor ... Read more

How to Read a File using PowerShell

If you are working as an admin on Windows Core Server and want to check the contents of a file, you can execute the following command: get-content C:\testfile.txt This command will display the contents of the file using PowerShell. To save the contents in a variable, you can execute: $FileContent = get-content C:\testfile.txt To read the ... Read more

How to Disable the User Account Control (UAC) in Windows 10

User Account Control also known as UAC is an important component of the "Windows security system". This helps the applications running in the windows to prevent your system from making any undesired changes. Whenever software is running in a system and it tries to make changes in the system, a window dialog box appears that ... Read more

How To Rename NIC Adapters with PowerShell

If you want to rename NIC adapters with PowerShell, follow this tutorial: Step 1. Open PowerShell with admin privileges Step 2. Execute the following command, Rename-NetAdapter -Name "<Old NIC Adapter Name>" -NewName "<New Adapter Name>" Example If you want to rename an old NIC Ethernet to a new name ManagementAdapter, the command should look like, Rename-NetAdapter ... Read more