Skip to content

Safe -Delete parameter changes to add or update #442

@sasukeleop

Description

@sasukeleop

Summary

I've tried to use the Safe Management/Safe-Management.ps1 to delete safe's.
When using the command .\Safe-Management.ps1 -PVWAURL "https://myPVWA.myDomain.com/PasswordVault" -Delete -SafeName "MySafe" I'm able to delete a safe but when using a csv file like this " .\Safe-Management.ps1 -PVWAURL "https://myPVWA.myDomain.com/PasswordVault" -Delete -FilePath "C:\Temp\safes-sample.csv"" I'm getting the following error

[2025-08-21 04:18:29] [INFO] Starting script (v2.2.6)
[2025-08-21 04:18:44] [INFO] Creating safe object for safe x_xx_x_xxxx_xx
[2025-08-21 04:18:44] [INFO] Safe x_xx_x_xxxx_xx has no safe details to add or update,

....
[2025-08-21 04:18:44] [INFO] Base: CSV file processed
[2025-08-21 04:18:44] [INFO] Logoff Session...
[2025-08-21 04:18:44] [INFO] Script ended

My csv looks like this:
SafeName
x_xx_x_xxxx_xx
x_xx_x_xxxx_xx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions