add migration table target to RDP GPO import script
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Purpose: Install the GPO that allows windomain\vagrant to RDP
|
# Purpose: Install the GPO that allows windomain\vagrant to RDP
|
||||||
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Importing the GPO to allow windomain/vagrant to RDP..."
|
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Importing the GPO to allow windomain/vagrant to RDP..."
|
||||||
Import-GPO -BackupGpoName 'Allow Domain Users RDP' -Path "c:\vagrant\resources\GPO\rdp_users" -TargetName 'Allow Domain Users RDP' -CreateIfNeeded
|
Import-GPO -BackupGpoName 'Allow Domain Users RDP' -Path "c:\vagrant\resources\GPO\rdp_users" -MigrationTable "c:\vagrant\resources\GPO\rdp_users\rdp_users.migtable" -TargetName 'Allow Domain Users RDP' -CreateIfNeeded
|
||||||
|
|
||||||
$OU = "ou=Workstations,dc=windomain,dc=local"
|
$OU = "ou=Workstations,dc=windomain,dc=local"
|
||||||
$gPLinks = $null
|
$gPLinks = $null
|
||||||
|
|||||||
Reference in New Issue
Block a user