Managing Storage with Windows PowerShell on Windows Server 2012


https://blogs.msdn.microsoft.com/san/2012/07/03/managing-storage-with-windows-powershell-on-windows-server-2012/

Advertisements

Use PowerShell to Find Locked-Out User Accounts

How can I tell if 2008 R2 AD recycle bin is turned on?


PS C:\Users\Administrator> Get-ADOptionalFeature -Filter ‘name -like “Recycle Bin Feature”‘
 DistinguishedName  : CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Conf
                     iguration,DC=ADDMZ,DC=LAN
EnabledScopes      : {}
FeatureGUID        : 766ddcd8-acd0-445e-f3b9-a7f9b6744f2a
FeatureScope       : {ForestOrConfigurationSet}
IsDisableable      : False
Name               : Recycle Bin Feature
ObjectClass        : msDS-OptionalFeature
ObjectGUID         : e298994a-88e9-47a5-807a-7009c18098f5
RequiredDomainMode :
RequiredForestMode : Windows2008R2Forest
if ENABLEDSCOPES contains values, then it is enabled! As you can see above, in my AD forest it is disabled. Remember: after enabling, you cannot disable it anymore!
%d bloggers like this: