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
Copy file name to clipboardExpand all lines: functions/Remove-PDCImage.ps1
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,17 @@ function Remove-PDCImage {
18
18
.PARAMETERForce
19
19
Forcefully remove the items.
20
20
21
+
.PARAMETEREnableException
22
+
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
23
+
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
24
+
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
25
+
26
+
.PARAMETERWhatIf
27
+
If this switch is enabled, no actions are performed but informational messages will be displayed that explain what would happen if the command were to run.
28
+
29
+
.PARAMETERConfirm
30
+
If this switch is enabled, you will be prompted for confirmation before executing any operations that change state.
0 commit comments