PowerShell: How to Create an AD User in a Specific OU

You can create a Windows Active Directory (AD) user in a specific OU by using the -path parameter in 'New-ADuser' PowerShell command. The following example will create a user in the 'students' OU of the 'pel.com' Active Directory domain. New-ADUser -Name “Karim Buzdar" -GivenName Karim -Surname Buzdar -SamAccountName kbuzdar -UserPrincipalName kbuzdar@pel.com -path "OU=students, DC=pel, DC=com

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 Exclude a User or Computer from Group Policy Object in Windows Server

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

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 Check if a Disk Uses GPT or MBR on Windows

Windows: GPT or MBR Partition Table

There are different ways to store the partition table on a drive. The most widely used methods are GPT (Guid Partition Table) and MBR (Master Boot Record). This article shows you how to check your disk is using GPT or MBR. Check partition table type using the GUI Step 1. Press Windows key + X ... Read more

Fix “The program can’t start because MSVCR100.dll is missing from your computer.” error on Windows

Program can not start due to a MSVCR100.dll error

What hides behind this name is the Microsoft Visual C++ Redistributable which can easily be downloaded on the Microsoft website as x86 or x64 edition: 32 bit: http://www.microsoft.com/download/en/details.aspx?id=5555 64 bit: http://www.microsoft.com/download/en/details.aspx?id=14632 Usually, the application that misses the dll indicates what version you need - if one does not work, simply install the other.