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
param | |
( | |
$username, | |
$password, | |
$Credentials, | |
$ExportType | |
) | |
begin | |
{ |
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
param( | |
[string]$power, | |
[string]$azureResourceGroup | |
) | |
if (!$power){Write-host "No powerstate specified. Use -Power start|stop"} | |
if (!$azureResourceGroup){Write-host "No Azure Resource Group specified. Use -azureResourceGroup 'ResourceGroupName'"} | |
# see if we already have a session. If we don't don't re-authN | |
if (!$AzureRMAccount.Context.Tenant) { |
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
#****Don't forget to go and get the Invoke-Parallel.ps1 script referenced in the associated blog post.***** | |
#Global Variables | |
# Where do we want to put the VM's | |
$global:locName = 'Australia East' | |
# Resource Group name | |
$global:rgName = 'MIM2016-Dev10' | |
# Virtual Network Name | |
$global:virtNetwork = 'MIM-Net10' |
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
$obj = New-Object -Type PSCustomObject | |
$obj | Add-Member -Type NoteProperty -Name "Anchor-msOnline-ObjectId|String" -Value "333a7e07-e321-42ea-b0a5-aaaaaaaaaaa" | |
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user" | |
$obj | Add-Member -Type NoteProperty -Name "SID|String" -Value "i:0h.f|membership|1003bffd94e9a9a8@live.com" | |
$obj | Add-Member -Type NoteProperty -Name "AccountName|String" -Value "i:0#.f|membership|first.last@customer.com.au" | |
$obj | Add-Member -Type NoteProperty -Name "FirstName|String" -Value "Firstname" | |
$obj | Add-Member -Type NoteProperty -Name "LastName|String" -Value "LastName" | |
$obj | Add-Member -Type NoteProperty -Name "PreferredName|String" -Value "FirstName LastName" | |
$obj | Add-Member -Type NoteProperty -Name "WorkPhone|String" -Value "+61 2 9000 1234" | |
$obj | Add-Member -Type NoteProperty -Name "Department|String" -Value "Marketing" |
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
# intentionally left blank |
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
param ( | |
$Username, | |
$Password, | |
$Credentials, | |
$OperationType, | |
[bool] $usepagedimport, | |
$pagesize | |
) | |
# SharePoint Online Tennat Name with -admin suffic |
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
param | |
( | |
$username, | |
$password, | |
$ExportType | |
) | |
begin | |
{ | |
#SPO Admin URL |
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
$obj = New-Object -Type PSCustomObject | |
$obj | Add-Member -Type NoteProperty -Name "Anchor-StaffID|String" -Value "U123456" | |
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user" | |
$obj | Add-Member -Type NoteProperty -Name "GivenName|String" -Value "Firstname" | |
$obj | Add-Member -Type NoteProperty -Name "Surname|String" -Value "LastName" | |
$obj | Add-Member -Type NoteProperty -Name "PreferredName|String" -Value "Joe" | |
$obj | Add-Member -Type NoteProperty -Name "MiddleName|String" -Value "Jay" | |
$obj | Add-Member -Type NoteProperty -Name "Department|String" -Value "Marketing" | |
$obj | Add-Member -Type NoteProperty -Name "Title|String" -Value "Marketing Manager" | |
$obj | Add-Member -Type NoteProperty -Name "State|String" -Value "NSW" |
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
param ( | |
$Username, | |
$Password, | |
$Credentials, | |
$OperationType, | |
$NBDomain = "ADDomain", | |
$MailboxName = "newstaffreports@customer.com.au", | |
$pageupsender = "reports-out@saas.provider.com", | |
$downloadDirectory = "\\fileserver\appshare$\SaaSReports", | |
$EWSURI=[system.URI] "https://webmail.customer.com.au/ews/Exchange.asmx", |
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
# not implemented |