A list of common PowerShell commands for AD. Retrieve AD user(s) # get AD user – basic attributes Get-ADUser “JohnDo” # get AD user – all attributes Get-ADUser “JohnDo” -Properties […]
An easy way to enable AD object inheritance using Powershell. This can be used for enabling (or disabling) inheritance on multiple AD objects. #$users = Get-ADUser -ldapfilter “(objectclass=user)” -searchbase “DC=domain,DC=local” […]
Get-QADUser Retrieve all users in a domain or container that match the specified conditions. Syntax Examples Description Parameters SYNTAX Get-QADUser [[-Identity] <IdentityParameter>] [-AccountExpiresAfter <DateTime>] [-AccountExpiresBefore <DateTime>][-AccountNeverExpires] [-Activity […]
Store Credentials in PowerShell From time to time, we have to perform actions in a PowerShell script for which the user account executing the script does not have sufficient privileges. […]
In another post, we demonstrated how to call PowerShell commands from VBScript. That method makes sense for simple one-line PowerShell commands. But what if we want to call long blocks […]