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.
New-ADUser -Name "John Smith" -SamAccountName "jsmith" -UserPrincipalName "jsmith@company.com" -AccountPassword (ConvertTo-SecureString "P@ssw0rd!" -AsPlainText -Force) -Enabled $true
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 | Select-Object Name, LastLogonDate
| 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 |
Create user jsmith in AD, add them to the "Sales" group, set their initial password and send them an email with access instructions