PowerShell Using Arrays to Disable User AD Accounts

I use this PowerShell script to disable all AD user accounts in a list of target OUs. This script will also disable users further down the AD target child OUs.

Source: Github/jtbarrera/PowerShell-scripts/disable-ADusersinOUs.ps1 Please follow and like us:

PowerShell Exchange Hybrid Location Finder

I use this PowerShell script to read a CSV file enumerating the mail column. The mail column is a list of Office 365 email accounts in a hybrid Office 365 Exchange target tenant. When generating the CV the user’s User Principal Name (UPN) usually matches their mail attribute. This can vary with more complicated configurations, … Read morePowerShell Exchange Hybrid Location Finder

PowerShell: Reconcile Exchange Online Distribution List

First, I’ll note that there are optimizations, and other methods, to accomplish this same task. I wanted to put out something that was easily understood and implemented. Purpose: This is a PowerShell script logs into Office 365, queries for disabled and unlicensed accounts, and removes those accounts from a specific Exchange online distribution group. It … Read morePowerShell: Reconcile Exchange Online Distribution List

PowerShell: How to Remove OS Key License

I ran into an interesting problem that required removing the Windows OS license from workstations. The workstations were already removed the existing domain so I couldn’t use my normal tools. Fortunately, I still had other methods to launch a remote PowerShell script. I specially wrote my piece of of the overall script as a function. This way it could be easily dropped in, or edited, without much trouble. It is a simple script, but shows the type of flexibility you can exercise with PowerShell.

Read morePowerShell: How to Remove OS Key License

Please follow and like us:
WordPress Appliance - Powered by TurnKey Linux