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

How to Configure a Scheduled Task Item using Group Policy

Windows Scheduled Tasks

Sometimes you may be required to automatically shut down domain-joined client computers or you may be required to run a script at some specific time. Group policies and task scheduling can help you in such situations. This tutorial will help you to learn how to schedule a task using group policies in domain controller on Windows ... 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

ERR2: 7621 Failed to move source object. Verify that the caller’s account is not marked sensitive and therefore cannot be delegated. hr=0x8009030e No credentials are available in the security package.

When you are migrating objects from child domain to parent domain using ADMT v 3.2, you may get the following error, ERR2: 7621 Failed to move source object. Verify that the caller’s account is not marked sensitive and therefore cannot be delegated. hr=0x8009030e No credentials are available in the security package. Solution Check if the ... Read more