This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
This is a PowerShell function wrapping the ADMT executable to abstract out migrating Active Directory users. | |
Read all the ADMT docs, and all the code and comments below before considering using this : ) | |
The COM object was covered nicely by Jan Egil Ring: | |
http://blog.powershell.no/2010/08/04/automate-active-directory-migration-tool-using-windows-powershell/ | |
Unfortunately, the COM object does not support Include files, a critical requirement for us. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-Something { | |
<# | |
.SYNOPSIS | |
Get something | |
.DESCRIPTION | |
Describe what this does. | |
Many of the parameters are the same as in Invoke-Command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The following is an Azure Automation PowerShell runbook. | |
#Uses a preconfigured AutomationConnection object (AzureRunAsConnection) for authentication | |
#This object must be in place in your tenant with the appropriate role(s), and added as a connection asset in the | |
#Azure Automation account being used. | |
Param( | |
[string]$environmentName = "AzureUSGovernment", | |
[Parameter(Mandatory=$true)] | |
[string]$subscriptionId, | |
[string]$location = "USGov Virginia", |