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
# Read in a list of user accounts from a CSV | |
# | |
# -- Begin sample CSV file -- | |
# Username | |
# dtrump | |
# bobama | |
# gbush | |
# -- End sample CSV file -- | |
# | |
$GroupObjectID = (Get-AzureADGroup -SearchString "your_groupname_here").ObjectID |
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
# Subscription Requirement: | |
# | |
# O365 E3/E4 subscription or O365 subscription w/ standalone Windows Azure Rights Management | |
# | |
# Software Requirements: | |
# | |
# 1. Download Microsoft Online Services Sign-In Assistant | |
# http://www.microsoft.com/en-us/download/details.aspx?id=41950 | |
# | |
# 2. Download Azure AD Module |
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
##################################################################################################### | |
# Simple PowerShell script to prevent running an export if more than 1000 objects are pending delete | |
# | |
# More information on FIM and MIM WMI: | |
# https://msdn.microsoft.com/en-us/library/windows/desktop/ms697764(v=vs.100).aspx | |
# | |
$miisWmiObject = get-WMIObject –class MIIS_ManagementAgent –namespace root/MicrosoftIdentityIntegrationServer –filter "Name='ADMA'" | |
$exportdeletes = $miiswmiobject.NumExportDelete().returnvalue | |
if ($exportdeletes > 1000) |