- `Add-PatServer -Force` now overwrites an existing entry with the same `-Name` instead of throwing, matching the conventional PowerShell `-Force` semantics established by `New-Item -Force`, `Copy-Item -Force`, and `Register-PSRepository -Force`. Replace is wholesale: fields not supplied on the new call (e.g. `localUri`, `preferLocal`, `default`) are not preserved, and any vault-stored token for the old entry is removed before the new entry is written. Use `Update-PatServerToken` for in-place token rotation that preserves other fields. The duplicate-name error without `-Force` now points to both recovery paths.
0 commit comments