Sunday, April 17, 2011

siDHistory Report - with Multi Value Support

I have updated one of my old PowerShell script to support multiple values in sIDHistory attributes.  This PowerShell Script can used to search a user object in Active Directory domain and generate a report with their SIDHistory value(s).


Output #1 - SamAccontName and its SIDHistory value


Output #2 – Output file - userinfo.txt -  contains the SamAccontName and its SIDHistory value:


Download: -

TechNet Gallery -


Get this Following error?

Exception calling "FindAll" with "0" argument(s): "A referral was returned from the server.
At C:\script\SIDHistory.ps1:16 char:29
+ $AllObj = $objSearch.FindAll <<<< ()
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Exception calling "getex" with "1" argument(s): "The directory property cannot be found in the cache.
At C:\script\SIDHistory.ps1:24 char:42
+ $objectSIDs = $objpath1.getex <<<< ("sidhistory")
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : CatchFromBaseAdapterMethodInvokeTI

New-Object : Exception calling ".ctor" with "2" argument(s): "Value cannot be null.
Parameter name: binaryForm"
At C:\script\SIDHistory.ps1:27 char:46
+ $sidHist = new-object <<<< System.Security.Principal.SecurityIdentifier $objectSID,0
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

Hey, thanks for this update! I am very glad that you dealt with these mistakes. Moreover, in the comments also helped with errors.

I have always been amazed by the complexity of the internal structure of different applications and sites, so I understand that the simplest things are very difficult to work. I would like to know how the casino site code works. Like, where I spent most of my quarantine.

Very useful article about sidhistory-report-with-multi-value! I recently used it to replace the faulty LED on my laptop screen led and it was a great help in tracking down the source of the issue. The multi-value support makes it simpler and more efficient than ever before. Thanks for such a helpful resource!

Post a Comment

Popular Posts


Twitter Delicious Facebook Digg Stumbleupon Favorites More