Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Add-NcLunMap and Remove-NcLunMap always asks for confirmation
2020-09-10
08:01 AM
3,119 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a script that is being used in doing DR tests. It maps or removes the mapping depending on the stage of the test. When the Add-NcLunMap and the Remove-NcLunMap commands run there is a pop-up that asks if you are sure you want to do this. How do I get rid of that?
Solved! See The Solution
1 ACCEPTED SOLUTION
Andrew7193 has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add "-Confirm $false" to your commands, should suppress the confirmation dialog.
2 REPLIES 2
Andrew7193 has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add "-Confirm $false" to your commands, should suppress the confirmation dialog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-Confirm:$false cannot forget the ":". I found that out a bit ago and just now got a a chance to answer.
Thank you.
