mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-28 14:57:21 +00:00
update scripts
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user