I was looking for away of listing the account names of the active users in the AD, and Google suggested som more or less exotic ways of doing that. But this little PowerShell script is not too bad have in the toolbox: $Search = New-Object DirectoryServices.DirectorySearcher([ADSI]“LDAP://CN=Users,DC=domain,DC=local”) $Search.filter = “(&(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))” Foreach($result in $Search.Findall()){ $user = $result.GetDirectoryEntry() [...]
About
Klinkby
- Failed to get a glimpse of @MedinaMusic through a swarm of 30.000 drunk teens in #Tivoli - twitted 1 week ago
- .@SPSaturday_CPH is awfully quiet, I'm wondering (hoping) if there will be a #spscph this year? /cc: @sharepointdk @jesperpersson @meikdk - twitted 1 week ago
- Danish minister of justice won't answer if #NemId is a backdoor to citizen's computers ft.dk/samling/20111/… @smbrix #dkpol #stasi - twitted 2 weeks ago
- Hey birch get outta my face astma-allergi.dk/detlavervi/dag… #achoo - twitted 2 weeks ago
-
Top Posts
Tag Cloud
-
Bookmarked