So far, so good. Then I want to configure some ACE's. That starts with getting the current ACL list so I run:
$acl = Get-ACL -Path $NewOUDN
The $TargetDC variable will usually not be the same as the logon server my workstation is connected to, so 'usually' ( always) I get this error message: Get-ACL : Cannot find path 'OU=Security Groups, OU=Region,DC=domain,DC=com' because it does not exist.
Ideally I would use -Server $TargetDC with the Get-ACL cmdlet, but that switch is not supported.
How do I know which domain controller the Get-ACL cmdlet is using?
How can I make sure the Get-ACL cmdlet is using a specific domain controller?