Skip to content

Instantly share code, notes, and snippets.

View AntonyNolan's full-sized avatar
🎯
Focusing

Antony Nolan AntonyNolan

🎯
Focusing
  • Vertech Solution Group
  • Denver, Colorado
View GitHub Profile
@AntonyNolan
AntonyNolan / runbookAzureAutomation.ps1
Created July 29, 2018 10:08 — forked from davoodharun/runbookAzureAutomation.ps1
Sample PowerShell Runbook for Azure deployment
#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",
@AntonyNolan
AntonyNolan / Get-Something.ps1
Created February 22, 2019 04:22 — forked from jdhitsolutions/Get-Something.ps1
My PowerShell function template for getting information from remote computers. The file also contains a json entry for a PowerShell snippet in VSCode.
Function Get-Something {
<#
.SYNOPSIS
Get something
.DESCRIPTION
Describe what this does.
Many of the parameters are the same as in Invoke-Command.
@AntonyNolan
AntonyNolan / Migrate-ADMTUserCLI.ps1
Created March 21, 2019 18:21 — forked from RamblingCookieMonster/Migrate-ADMTUserCLI.ps1
This is an example function that wraps ADMT.exe, abstracting out migration of Active Directory users into a PowerShell function.
<#
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.