function Get-AclBranch {
param (
[parameter(Mandatory = $true)]
[string]$pBranch
)
$vACLs = get-acl $pBranch;
$vDomainSids = [regex]::Matches($vACLs.Sddl, 'S-1-5-21(-\d+){4}') | ForEach-Object { $_.Value };
...
these works when i submit the execution of the .ps1 in powershell 7.4.6 but
if i biuld a package , the out output is incorrect.
if i launch a debug session in powershell studio (anyversion) the output is also incorrect.
In studio visual code the output is correct.
Best regards
param (
[parameter(Mandatory = $true)]
[string]$pBranch
)
$vACLs = get-acl $pBranch;
$vDomainSids = [regex]::Matches($vACLs.Sddl, 'S-1-5-21(-\d+){4}') | ForEach-Object { $_.Value };
...
these works when i submit the execution of the .ps1 in powershell 7.4.6 but
if i biuld a package , the out output is incorrect.
if i launch a debug session in powershell studio (anyversion) the output is also incorrect.
In studio visual code the output is correct.
Best regards
Statistics: Posted by gipra6402 — Tue Nov 05, 2024 6:16 am