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.
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.
Your Environment
$PSVersionTable