How to create a file screen exception in powershell (FSRM Api)

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Serty desck Serty desck 7 months, 2 weeks ago.

  • Author
    Posts
  • #37992
    Profile photo of Serty desck
    Serty desck
    Participant

    I need to create file screen exception in powershell using the FSRM Api, I am using this script to create the cuota but I am having trouble to commit the object.

    Because I haven't achieved to meet the requirement to modify AllowedFileGroups property 🙁

    $FSRMObject = New-Object -Com Fsrm.FsrmFilescreenManager
    $createFileScreenException = $FSRMObject.CreateFileScreenException("c:\")
    $createFileScreenException.AllowedFileGroups("Text Files")
    $createFileScreenException.Commit()

    This is what I get Listing the Properties and Methods of the Object, in the property definition of AllowedFileGroups I can see that I need to create IFsrmMutableCollection.
    Listing the Properties and Methods of a Command or Object
    Does anyone have an idea of how to create the file screen exception?

You must be logged in to reply to this topic.