Last active
April 21, 2017 20:47
-
-
Save PixelRobots/f1dab80d04f6ad869cd4d21cb8385fde to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable-ADOptionalFeature "Privileged Access Management Feature" -Scope ForestOrConfigurationSet -Target pixelrobots.co.uk | |
Get-ADGroupMember "Domain Admins" | |
Add-ADGroupMember -Identity "Domain Admins" -Members "Ian" -MemberTimeToLive (New-TimeSpan -Minutes 30) | |
Get-ADGroup "Domain Admins" -Property member -ShowMemberTimeToLive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment