Changelog: New-DirectoryUpdateReminder.ps1
This is the changelog page for New-DirectoryUpdateReminder.ps1. You will find a complete list of released versions, their dates, and the features and issues addressed in each. Please refer to the script’s main page for more information including download links, installation details, and more.
v1.7 – 01-27-2014
- -noprofile switch added to install routine
- bug fix for demo mode where the check for title wasn’t working
- comment help cleaned up
v1.5 – 09-02-2011
- converted code to PowerShell v2, including New-MailMessage, comment based help, etc.
- Exchange 2010 support
- moved most variables to param block
- install routine for scheduled task
- email preview mode
v1.4 – 03-27-2010
- use registry for last run info
v1.3 – 01-15-2010
- optimized $MBXArray a little more
v1.2 – 10-16-2009
- added filter to prompt when manager is disabled
v1.0 – 05-14-2009
- initial version
Pat, I recently found this site and really enjoy the content. Thank you for sharing your talent and knowledge.
When running this script, I ran into a couple of issues…
…One, I think there is a missing ‘)’ near the end of line 142 or there are too many ‘(‘ on the same line. Either way, I able to address this item fairly easily. (See the first message below)
…Two, when I run the script, it returns a ” ‘Get-User’ is not recognized ” error. I am new-ish to PowerShell and don’t know if I am running the commands correctly or from the correct folder. (See the second and third messages below)
Any assistance would be appreciated. Thank you.
Todd
+++++
PS C:\PowerShellScripts\New-DirectoryUpdateReminder> .\New-DirectoryUpdateReminder.ps1 -demo
Missing closing ‘)’ in expression.
At C:\PowerShellScripts\New-DirectoryUpdateReminder\New-DirectoryUpdateReminder.ps1:142 char:266
+ $MBXArray = Get-User -resultsize unlimited | ? {(($_.RecipientTypeDetails -match ‘UserMailbox’) -and (($_.Office -eq ”) -or ($_.PostalCode -eq ”) -or ($_.StreetAddress -eq
”) -or ($_Title -eq ”) -or ($_.Manager -eq ”) -or ($_.Manager -match ‘Disabled Users’)) <<< .\New-DirectoryUpdateReminder.ps1 -demo
The term ‘Get-User’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that t
he path is correct and try again.
At C:\PowerShellScripts\New-DirectoryUpdateReminder\New-DirectoryUpdateReminder.ps1:142 char:22
+ $MBXArray = Get-User <<< .\New-DirectoryUpdateReminder.ps1 -Preview -PreviewUser test1
The term ‘Get-User’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that t
he path is correct and try again.
At C:\PowerShellScripts\New-DirectoryUpdateReminder\New-DirectoryUpdateReminder.ps1:144 char:22
+ $MBXArray = Get-User <<<< $PreviewUser
+ CategoryInfo : ObjectNotFound: (Get-User:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
After you get the error, do a Get-Module and see if ActiveDirectory is listed. Look in the comment header and grab my email address, and let me know the results via email.
I figured it out. Merely an over site after a long day. I was running the script in PowerShell instead of EMS. Sorry to bother you.
Great script!
EMC… See what I mean.