Skip to content

Commit 85fffce

Browse files
authored
Update configure-custom-settings-active-directory.md
Get-ACL and Set-ACL does not work on OU path only need AD: prefix
1 parent 0c9bd64 commit 85fffce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-local/plan/configure-custom-settings-active-directory.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $DeploymentUser="deploymentuser"
6666
#Assign required permissions
6767
$userSecurityIdentifier = Get-ADuser -Identity $Deploymentuser
6868
$userSID = [System.Security.Principal.SecurityIdentifier] $userSecurityIdentifier.SID
69-
$acl = Get-Acl -Path $ouPath
69+
$acl = Get-Acl -Path "AD:$ouPath"
7070
$userIdentityReference = [System.Security.Principal.IdentityReference] $userSID
7171
$adRight = [System.DirectoryServices.ActiveDirectoryRights]::CreateChild -bor [System.DirectoryServices.ActiveDirectoryRights]::DeleteChild
7272
$genericAllRight = [System.DirectoryServices.ActiveDirectoryRights]::GenericAll
@@ -86,7 +86,7 @@ $rule3 = New-Object System.DirectoryServices.ActiveDirectoryAccessRule($userIden
8686
$acl.AddAccessRule($rule1)
8787
$acl.AddAccessRule($rule2)
8888
$acl.AddAccessRule($rule3)
89-
Set-Acl -Path $ouPath -AclObject $acl
89+
Set-Acl -Path "AD:$ouPath" -AclObject $acl
9090
```
9191

9292
## Required DNS records
@@ -162,4 +162,4 @@ Get-NetAdapter "vManagement*"|Set-DnsClient -RegisterThisConnectionsAddress $fal
162162

163163
Proceed to:
164164
- [Download the Azure Stack HCI OS software](../deploy/download-23h2-software.md).
165-
- [Install the Azure Stack HCI OS software](../deploy/deployment-install-os.md).
165+
- [Install the Azure Stack HCI OS software](../deploy/deployment-install-os.md).

0 commit comments

Comments
 (0)