Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| active_directory [2022/01/14 13:23] – created mgupton | active_directory [2022/01/17 17:21] (current) – [Solutions] mgupton | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Active Directory ====== | ====== Active Directory ====== | ||
| + | ====== Tools ====== | ||
| + | * [[https:// | ||
| + | |||
| + | ====== Solutions ====== | ||
| + | === run-mmc.bat === | ||
| + | Run AD domain tools from machines not joined to domain. | ||
| <code batch> | <code batch> | ||
| @echo off | @echo off | ||
| Line 6: | Line 12: | ||
| @rem Run this script as administrator. | @rem Run this script as administrator. | ||
| set /p USER=" | set /p USER=" | ||
| - | runas /netonly / | + | runas /netonly / |
| pause | pause | ||
| </ | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Get LastLogon to find stale user accounts === | ||
| + | // | ||
| + | <code powershell> | ||
| + | Get-ADUser -Credential $Credentials -Server pdc -Filter * -Properties * | Select-Object Name, @{N=' | ||
| + | </ | ||
| + | |||
| + | See theses solutions for handling multiple domain controllers, | ||