Server 2012: PS Get-ADGroupMember
-
@travisdh1 said in Server 2012: PS Get-ADGroupMember:
@coliver said in Server 2012: PS Get-ADGroupMember:
@travisdh1 said in Server 2012: PS Get-ADGroupMember:
@coliver said in Server 2012: PS Get-ADGroupMember:
Did you do
Import-Module ActiveDirectory
?
One of my major pain-points with PowerShell. Why does every module have to be manually loaded. It's not like you have to load them into memory until it's actually needed.
The new PowerShell core seems to auto import modules when you use a command from them.
Why was that missing from day 1? Seriously!
Microsoft...
-
@travisdh1 said in Server 2012: PS Get-ADGroupMember:
@coliver said in Server 2012: PS Get-ADGroupMember:
Did you do
Import-Module ActiveDirectory
?
One of my major pain-points with PowerShell. Why does every module have to be manually loaded. It's not like you have to load them into memory until it's actually needed.
No anymore, those are on old OS...
-
Found this also:
get-adgroup -filter * | sort name | select Name
Not being one to script,.. can this be used to place the result in an array and then pull a list of users from each, and export to csv?
Seems like it should be - simple - but while I can see it, and can't get there.
-
@gjacobse said in Server 2012: PS Get-ADGroupMember:
Found this also:
get-adgroup -filter * | sort name | select Name
Not being one to script,.. can this be used to place the result in an array and then pull a list of users from each, and export to csv?
Seems like it should be - simple - but while I can see it, and can't get there.
You're almost there...
$myVariable=get-adgroup -filter * | sort DisplayName | select DisplayName
-
I use a Linux server that is domain joined to see what groups a MS AD user is a member of. It's just way easier and faster.
Done.
-
@obsolesce said in Server 2012: PS Get-ADGroupMember:
I use a Linux server that is domain joined to see what groups a MS AD user is a member of. It's just way easier and faster.
Done.
I was just saying how ridiculously cumbersome this is because of Windows.