Active Directory with PowerShell from Cerewro
The PowerShell ActiveDirectory module allows managing users, groups, organizational units (OU) and group policies directly from Cerewro's chat, automating onboarding, offboarding and domain audits.
Create new domain user
New-ADUser -Name "John Smith" -SamAccountName "jsmith" -UserPrincipalName "jsmith@company.com" -AccountPassword (ConvertTo-SecureString "P@ssw0rd!" -AsPlainText -Force) -Enabled $true
Find inactive users
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 | Select-Object Name, LastLogonDate
Most used cmdlets
| Cmdlet | Function |
|---|---|
| Get-ADUser | Get information about a user |
| New-ADUser | Create a new user |
| Set-ADUser | Modify user attributes |
| Disable-ADAccount | Disable an account |
| Add-ADGroupMember | Add user to a group |
| Get-ADGroupMember | List group members |
From Cerewro: automatic onboarding
Create user jsmith in AD, add them to the "Sales" group, set their initial password and send them an email with access instructions