Skip to content

Instantly share code, notes, and snippets.

View pstapf's full-sized avatar

Peter Stapf pstapf

View GitHub Profile
@pstapf
pstapf / b2c-consent-customuserjourney.xml
Created September 23, 2018 14:23
b2c-consent-customuserjourney
@pstapf
pstapf / b2c-consent-techprofileselfasserted.xml
Created September 23, 2018 14:14
b2c-consent-techprofileSelfAsserted
@pstapf
pstapf / b2c-consent-technicalprofile.xml
Created September 23, 2018 14:02
b2c-consent-technicalprofile
@pstapf
pstapf / b2c-consent-AADReadUserbyEmail.xml
Created September 23, 2018 13:52
b2c-consent-AADReadUserbyEmail
@pstapf
pstapf / b2c-consent.metatags.xml
Created September 23, 2018 13:44
b2c-consent-metatags
@pstapf
pstapf / b2c-consent-contentdefinition.xml
Created September 23, 2018 13:33
b2c-consent-contentdefinition
@pstapf
pstapf / b2c.consent.schema.xml
Created September 23, 2018 13:26
B2C-consent-Schema
@pstapf
pstapf / gist:4566ef1d47715dab0c497ad50b5124d2
Last active September 14, 2018 18:55
Pre-Register MFA without Enable MFA for users
$upn = "firstname.lastname@mydomain.com"
$method1 = New-Object -TypeName Microsoft.Online.Administration.StrongAuthenticationMethod
$method1.IsDefault = $true
$method1.MethodType = "OneWaySMS"
$method2 = New-Object -TypeName Microsoft.Online.Administration.StrongAuthenticationMethod
$method2.IsDefault = $false
$method2.MethodType = "TwoWayVoiceMobile"
$methods = @($method1, $method2)
@pstapf
pstapf / B2BHouseKeepingSolution.xml
Last active September 2, 2018 14:01
B2BHouseKeeping solution configuration file for blogging
<?xml version="1.0" encoding="utf-8"?>
<B2BHouseKeepSolution>
<!-- Configuration parameter for all PowerShell connector script -->
<PowerShell>
<TenantName>domain.onmicrosoft.com</TenantName>
<ClientID>XXXXXXX</ClientID>
<ClientSecret>XXXXXXX</ClientSecret>
<LastLoginExtAttribute>extension_XXXXXXXXXX_LastLogin</LastLoginExtAttribute>
</PowerShell>
@pstapf
pstapf / PSOutputCompare.ps1
Last active August 30, 2018 10:07
PowerShell Output Compare blogged version
<#
.Synopsis
Compare the CLIXML output files of PowerShell cmdlets
.Description
Compares the PowerShell cmdlet output stored in reference and difference CLIXML file
.Example
PSOutputCompare.ps1 -ReferenceCLIXMLFile <reference.xml> -DifferenceCLIXMLFile <difference.xml> -ObjectIdentifierName ObjectId -NameAttribute DisplayName
Compares both files and identify objects by the ObjectIdentifierName attribute while showing DisplayName in the output object