Remove-FseQuarantine -Force switch does not work

Answered Remove-FseQuarantine -Force switch does not work

  • Monday, December 24, 2012 4:29 AM
     
     

    Hello.

    PS C:\Users\Administrator> Remove-FseQuarantine -Id "{C8766D35-F3E7-4127-8A7B-16533D4892BA}" -Force
    Remove-FseQuarantine : A parameter cannot be found that matches parameter name 'Force'.
    At line:1 char:73
    + Remove-FseQuarantine -Id "{C8766D35-F3E7-4127-8A7B-16533D4892BA}" -Force <<<<
        + CategoryInfo          : InvalidArgument: (:) [Remove-FseQuarantine], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,ForefrontConsole.Powershell.cmdlets.Remove_FseQuarantine

    Force switch does not work, but get-help Remove-FseQuarantine says:

    SYNTAX
        Remove-FseQuarantine -Id <string[]> [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]

    Is there any alternative method to suppress next message?

    This cmdlet deletes quarantined items from the database.  Are you sure you want to continue?
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):

    Thanks.

All Replies

  • Monday, December 24, 2012 8:34 AM
     
     

    Hey Sergey ,

    Thanks for the post  ,

    The cmdlets :

    Remove-FseQuarantine  (Deletes items from the quarantine database.)

    Start with check the if PS "Run As Administrator" / or check if the FPE user (that installed the client) Run the PS window .

    After that check again The cmdlets  above ,

    Also check for permissions on the exchange db  - if it possible .

    Notice Me .


    I'd be glad to answer any question

  • Monday, December 24, 2012 9:15 AM
     
     

    I run PS window with "Run As Administrator". And I have the required permissions on the exchange db.

    The problem appears with the switch "-force" only. Without this switch command Remove-FseQuarantine -Id "{C8766D35-F3E7-4127-8A7B-16533D4892BA}" responds correctly. Switch "-force" is needed for running command in the script.

  • Monday, December 24, 2012 9:31 AM
     
     

    Ok

    -force
           Override restrictions that prevent the command from succeeding, apart
           from security settings. e.g. -force will override a files read-only
           attribute, but will not change file permissions.

    I don't think You can use the -force command for your script with this cmdlets (Remove-FseQuarantine) under PS .


    I'd be glad to answer any question



    • Edited by Shuki Noy Monday, December 24, 2012 9:33 AM
    • Edited by Shuki Noy Monday, December 24, 2012 9:40 AM
    •  
  • Monday, December 24, 2012 9:53 AM
     
     

    I have another description of this switch:

    get-help Remove-FseQuarantine -detailed

        -Force [<SwitchParameter>]
            Controls warning messages. Optional. Specify -Force to compel the cmdlet to continue without any warnings to the user. When -Force is specified, Windows PowerShell does not prompt for confirmation of this command. This parameter is provided to permit the construction of scripts.

    PS. Another command Send-FseQuarantine works with -force switch correctly in the script.

  • Monday, December 24, 2012 10:06 AM
     
     

    under The  Remove-FseQuarantine -Force

    You have to fill the other arguments (confirm) and other common parameters/ else it will not recognize as a correct command


    I'd be glad to answer any question

  • Monday, December 24, 2012 10:13 AM
     
     

    still not working...

    PS C:\Users\Administrator> Remove-FseQuarantine -Id "{C8766D35-F3E7-4127-8A7B-16533D4892BA}" -Force -Confirm
    Remove-FseQuarantine : A parameter cannot be found that matches parameter name 'Force'.
    At line:1 char:73
    + Remove-FseQuarantine -Id "{C8766D35-F3E7-4127-8A7B-16533D4892BA}" -Force <<<<  -Confirm
        + CategoryInfo          : InvalidArgument: (:) [Remove-FseQuarantine], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,ForefrontConsole.Powershell.cmdlets.Remove_FseQuarantine


  • Monday, December 24, 2012 10:17 AM
     
     

    Open the expands of the category & fqei .

    And please export me a fully log  -paste it here


    I'd be glad to answer any question

  • Monday, December 24, 2012 10:18 AM
     
     

    Wait!!

    Explain me what is that sid? "{C8766D35-F3E7-4127-8A7B-16533D4892BA}" ?

    why this sid?

    why not a fully name?


    I'd be glad to answer any question

  • Monday, December 24, 2012 10:21 AM
     
     

    this is name of the Quarantine  but the ps not like this name ,

    we have to figure out why sid is not correct under force

    cannot recognize at force


    I'd be glad to answer any question

  • Monday, December 24, 2012 8:57 PM
     
     Answered
    On Mon, 24 Dec 2012 04:29:14 +0000, Sergey Grokhovskiy wrote:
     
    >Hello. PS C:\Users\Administrator> Remove-FseQuarantine -Id "{C8766D35-F3E7-4127-8A7B-16533D4892BA}" -Force Remove-FseQuarantine : A parameter cannot be found that matches parameter name 'Force'. At line:1 char:73 + Remove-FseQuarantine -Id "{C8766D35-F3E7-4127-8A7B-16533D4892BA}" -Force <<<< + CategoryInfo : InvalidArgument: (:) [Remove-FseQuarantine], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,ForefrontConsole.Powershell.cmdlets.Remove_FseQuarantine
    >
    >
    >
    >Force switch does not work, but get-help Remove-FseQuarantine says: SYNTAX Remove-FseQuarantine -Id <string[]> [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
    >
    >
    >
    >Is there any alternative method to suppress next message? This cmdlet deletes quarantined items from the database. Are you sure you want to continue? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
     
    I think you're confusing the use of -Force and -Confirm.
     
    If you don't want to confirm the removal then use "-confirm:$false".
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
  • Tuesday, December 25, 2012 6:26 AM
     
     

    Thanks Rich,

    I'v Learned something (:

    Sergey -  Sorry that i couldn't solve your problem .


    I'd be glad to answer any question