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