You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using -Whatif with new-filecatalog creates a 0-byte .CAT file.
Expected Behavior
Using -Whatif should have no impact on the system, so that removing -Whatif and replaying the command will succeed.
Current Behavior
Current behavior prevents replaying the command without -Whatif because the 0-byte .Cat file is present.
That file cannot be over-written without adding -Force, so replaying the command fails.
Possible Solution
No .Cat file should be created if -Whatif is specified.
Activity
iSazonov commentedon Jan 30, 2017
@JKeithB Thanks for report the issue!
This cmdlet has turned on but not implemented support for
WhatIf.Add ShouldProcess to New-FileCatalog and Test-FileCatalog
Add ShouldProcess to New-FileCatalog and Test-FileCatalog (#3074)
Add ShouldProcess to New-FileCatalog and Test-FileCatalog (PowerShell…