Some NAV PowerShell cmdlets (such as
Import-NAVApplicationObject) don’t have the
-Force switch, and always ask for confirmation regardless of whether you include the
-Confirm switch or not.
To work around this, append the –
Confirm:$false switch to such command. That sets the
none for an individual command, and confirms its confirmation dialogs.
This Post Has 4 Comments
Pingback: Automatically Confirm cmdlets – 4/23, Navigate Into Success |
Pingback: Automatically Confirm cmdlets | Pardaan.com
Once again coming to this sphere of knowledge pays dividends.
Thanks! 🙂 I really appreciate your comment!