diff --git a/Safe Management/Safe-Management.ps1 b/Safe Management/Safe-Management.ps1 index 75275ee..29fef97 100644 --- a/Safe Management/Safe-Management.ps1 +++ b/Safe Management/Safe-Management.ps1 @@ -641,12 +641,11 @@ Get-Safe -safeName "x0-Win-S-Admins" try { $accSafeURL = $URL_SpecificSafe -f $(ConvertTo-URL $safeName) $_safe += $(Invoke-Rest -Uri $accSafeURL -Command 'Get' -Header $g_LogonHeader -ErrAction 'SilentlyContinue') - $_safe += $(Invoke-Rest -Uri $accSafeURL -Command 'Get' -Header $g_LogonHeader -ErrAction 'SilentlyContinue') If (![string]::IsNullOrEmpty($_safe.nextLink)) { $nextLink = $_safe.nextLink While (![string]::IsNullOrEmpty($nextLink)) { $_safeNext = @() - $_safeNext += $(Invoke-Rest-Uri "$PVWAURL/$nextLink" -Command 'Get' -Header $g_LogonHeader -ErrAction 'SilentlyContinue') + $_safeNext += $(Invoke-Rest -Uri "$PVWAURL/$nextLink" -Command 'Get' -Header $g_LogonHeader -ErrAction 'SilentlyContinue') $_safe += $_safeNext If (![string]::IsNullOrEmpty($_safeNext.nextLink)) { $nextLink = $_safeNext.nextLink