Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 540

PowerShell Studio • command get-acl don't work correctly under powershell studio 5.8.250

$
0
0
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

Statistics: Posted by gipra6402 — Tue Nov 05, 2024 6:16 am



Viewing all articles
Browse latest Browse all 540

Trending Articles