Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • Re: User groups

    Hi p3dr0, Sorry for that alias. :) Here is a collection of code snippets that use WinNT moniker that you could find useful: # the domain groups membership $user = [ADSI]"WinNT://$env:userdomain/$username,user" $user.groups() | ForEach-Object {$_.GetType().InvokeMember('Name','GetProperty'...
    Posted to Active Directory (Forum) by Aleksandar on 04-09-2009
    Filed under: ADSI, WinNT: user, group, member
  • Re: Active directory | Primary Group

    This solution uses ADSI and the .NET Framework to retrieve the name of the user's primary group: $rootDN = ([adsi]"").distinguishedName $user = [adsi]("LDAP://CN=testuser,OU=Test," + $rootDN) $groupID = $user.primaryGroupID $arrSID = $user.objectSid.Value $SID = New-Object System...
    Posted to Active Directory (Forum) by Aleksandar on 08-07-2009
    Filed under: Active Directory, ADSI, group, User, SID, primary group
  • PowerShell Productivity

    Matt Freeman demonstrates some creative one-liner techniques for getting, filtering, selecting and grouping results using core PowerShell Cmdlets. Easy to master once you know what you are doing. Read more
    Posted to General (Forum) by ps2 on 01-26-2009
    Filed under: One-liners, Group, Where
Page 1 of 1 (3 items)
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.