I found a script to check out how many users or computers are authenticated in a given Domain Controller.
The Script can be found here: https://gallery.technet.microsoft.com/scriptcenter/Check-out-how-many-users-05a8b499#content
Running this under a Server 2008 R2 Domain Controller gives two Errors:
- $AccountName = ($RegexAccountName.match($_.message).value).Split(":")[1].Trim <<<< ()
- CategoryInfo : InvalidOperation: (Trim:String) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
- $DomainName = ($RegexDomainName.match($_.message).value).Split(":")[1].Trim <<<< ()
- CategoryInfo : InvalidOperation: (Trim:String) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
Any thoughts on how to run this under Server 2008 R2?