update scripts

This commit is contained in:
abrown38 committed 2024-08-13 13:29:07 +01:00
1 parent 665eb6ec7c
commit 9d17545bc0
4 files changed
+238 -3

No files matched your search

@@ -20,7 +20,7 @@ New-ADOrganizationalUnit -Name WorkBench
#Workbench OU
$workbenchOU = Get-ADOrganizationalUnit -Filter 'Name -like "Workbench"' | foreach {$_.DistinguishedName}
#Move WB machines (when prefix is wb)
$computers = Get-ADcomputer -filter { CN -like "*wb*"} | foreach {$_.DistinguishedName}
$computers = Get-ADComputer -Filter * | Where-Object { $_.name -match "^.*(wb)[0-9]+$" } | ForEach-Object { $_.DistinguishedName }
$computers | move-adobject -TargetPath $workbenchOU
#Create RDS Settings GPO