Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell script to report on group membership changes and email reports

$
0
0

Powershell
#------------------------------------------------------------------------------# Declare Function to identify if Quest AD snapins are loaded already & load if not.#------------------------------------------------------------------------------FunctionLoadQuestSnapin{$LoadedSnapins=pssnapin$Questloaded=$Falseforeach($Linein$LoadedSnapins){if($Line.name-eq"Quest.ActiveRoles.ADManagement"){$QuestLoaded=$True}}if($Questloaded-eq$False){Add-PSSnapinQuest.ActiveRoles.ADManagement}}#------------------------------------------------------------------------------#------------------------------------------------------------------------------# Declare Function to Identify whether the most recent User report#------------------------------------------------------------------------------FunctionIdentifyPreviousDateFile{#Check...

Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>