AD GPO SW Deploy - tmansfield42/Tech-Journal GitHub Wiki

Commands used

Creating an OU via PowerShell

New-ADOrganizationalUnit -Name "Software Deploy" -Path "DC=michael,DC=local"

Deleting an OU via PowerShell

Remove-ADOrganizationalUnit -Identity "OU=Test OU,DC=michael,DC=local"

Moving Items to a new OU via PowerShell

Get-ADComputer -Identity "WKS01-MICHAEL" | Move-ADObject -TargetPath "OU=Software Deploy,DC=michael,DC=local"

Get-ADUser -Identity "normaluser" | Move-ADObject -TargetPath "OU=Software Deploy,DC=michael,DC=local"

Searching the Event Log using PowerShell

Get-EventLog -LogName System -Source "Application Management Group Policy" -Message "*Putty*" | Format-List *