Quantcast
Viewing all articles
Browse latest Browse all 311

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

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 — Replies 2 — Views 62



Viewing all articles
Browse latest Browse all 311

Trending Articles