Mark Minasi's Tech Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
timwiser

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 20
Reply with quote  #1 
I'm trying to use New-FSRMFileScreen which supports the -Confirm parameter.  I don't want the command to prompt though, but it still does so regardless of whether I specify that parameter or not.
The default is NOT to ask for confirmation.

Is there a way to have the command always perform the task?

The online help is next to useless, https://technet.microsoft.com/en-us/library/jj900629(v=wps.630).aspx

Sorry if that's a bit babbly...
0
timwiser

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 20
Reply with quote  #2 
Confirm
Are you sure you want to perform this action?
Operation: Delete, Object: file screen, Object Identifier (Path): C:\Users
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):

That's what I need to get rid of.
I'm sure it's really simple!

This is the command I'm using:

New-FSRMFileScreen -Path "C:\Users" -Active: $true -IncludeGroup CryptoBlocker -Notification $notification_event


0
cj_berlin

Avatar / Picture

Senior Member
Registered:
Posts: 418
Reply with quote  #3 
Quote:
Originally Posted by timwiser

I'm sure it's really simple!


Sure,

-Confirm:$false 


should do the trick.

__________________
Evgenij Smirnov

My personal blog (German): http://www.it-pro-berlin.de/
My stuff on PSGallery: https://www.powershellgallery.com/profiles/it-pro-berlin.de/
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.