Active Directory clean up using PowerShell script e.g Name, UPN, SAM, Email

In this post we are going to look at a simple script to change AD attributes on a large scale with minimal effort. Although bare in mind every Active Directory structure has it's differences, parts of the script or the majority of it's contents may not be applicable to your current situation. However, personally I've … Continue reading Active Directory clean up using PowerShell script e.g Name, UPN, SAM, Email

Delete calendar meetings in a Mailbox using PowerShell – Exchange

In this post we are going to look at using PowerShell to search and delete specific or all calendar meetings and appointments in an Exchange Mailbox. Using the Exchange Management Shell or remotely connecting to the Exchange Server in PowerShell. Query Results - You can use the below command to firstly check to see how many meetings … Continue reading Delete calendar meetings in a Mailbox using PowerShell – Exchange

Automate VM Failover on Hyper-V Replicated hosts – PowerShell Script – Domain & Workgroup

In this post we are going to look at using a PowerShell script to automate the process of a planned fail over on multiple replicated Hyper-V virtual machines, on both domain and workgroup servers. What the script does: Requests for user input specifying the Hyper-V source host Requests whether All VM's need to be migrated … Continue reading Automate VM Failover on Hyper-V Replicated hosts – PowerShell Script – Domain & Workgroup

Automatically Clear assigned KMS Host on multiple KMS Clients and enable Auto-discovery

To do this we are going to utilize a small PowerShell script to remotely run a command to clear the assigned KMS host on multiple clients. Doing this will remove the manual KMS Host entry and re-enable auto-discovery. Normally if your clients are pointing to a dead KMS host - you will notice that you … Continue reading Automatically Clear assigned KMS Host on multiple KMS Clients and enable Auto-discovery

Useful Exchange PowerShell Commands – The Ultimate List.

In this post we are going to look at a list of useful Exchange PowerShell commands that should be apart of any Sysadmin's arsenal when managing an Exchange environment. Notes on regular expressions/wildcards: Three of the codes that I've found to be particularly useful and you will see being used in quite a few examples … Continue reading Useful Exchange PowerShell Commands – The Ultimate List.

Restoring a Mailbox or specific Mailbox data in Exchange

In this post we are going to look at restoring mailbox data in Exchange using PowerShell. Using your backup software - load the tape or disk backups containing your Exchange databases around the proposed date. Then restore the database to a convenient location with enough disk space. After that copy over the Database and the … Continue reading Restoring a Mailbox or specific Mailbox data in Exchange

Delete Local User Profiles Remotely using a PowerShell Script (DelProf2.exe)

In this post we are going to look at utilizing a tool called DelProf and a small PowerShell script to delete user profiles on workstations remotely. First we need to download the tool, it's just one executable file that can be found here The reason for using DelProf2.exe over the syntax's Remove-Item or leveraging WMI … Continue reading Delete Local User Profiles Remotely using a PowerShell Script (DelProf2.exe)

Restore AD Objects and Users using PowerShell

In this post we are going to look at the different ways you can restore Active Directory objects, such as User Accounts, Groups, Computers and OUs using Restore-ADObject in PowerShell. View Deleted Objects: Firstly this command will show you a list of all deleted objects: Get-ADObject -filter 'isdeleted -eq $true -and name -ne "Deleted Objects"' … Continue reading Restore AD Objects and Users using PowerShell