Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum update-PWFolderSecurity not found.
    • Sign In

    • State Not Answered
    • Replies 20 replies
    • Subscribers 67 subscribers
    • Views 1786 views
    • Users 0 members are here

    update-PWFolderSecurity not found.

    Robert Biggar
    Offline Robert Biggar over 1 year ago

    I am trying to add some security to a folder and I am getting  the below error:

    PS C:\PS> UpdatePWFolderSecurity
    UpdatePWFolderSecurity : The term 'UpdatePWFolderSecurity' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
    included, verify that the path is correct and try again.
    At line:1 char:1
    + UpdatePWFolderSecurity
    + ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (UpdatePWFolderSecurity:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    get-help is finding the cmdlet:

    PS C:\PS> get-help UpdatepwfolderSecurity -full

    Name Category Module Synopsis
    ---- -------- ------ --------
    Update-PWFolderSecurity Cmdlet PWPS_DAB UpdatePWFolderSecurity is used to add user(s), group(s), or userlist(s) access control to specified folders.
    Update-PWFolderSecurityByUserL... Cmdlet PWPS_DAB UpdatePWFolderSecurityByUserListSwapWithWorkflow is used to replace existing userlists with another.

    I tried re-importing pwps_dab:

    PS C:\PS> Import-Module pwps_dab
    Security Protocol now set to TLS 1.2
    PWPS_DAB Version is 2.0.6.0
    This is a 32-bit process.
    WARNING: The names of some imported commands from the module 'pwps_dab' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

    I even re-installed.

    VERBOSE: Module 'pwps_dab' was installed successfully to path 'C:\Program Files (x86)\WindowsPowerShell\Modules\pwps_dab\2.0.6.0'.

    "Missing something, I am..."

    any ideas? 

    all the other cmdlets I call seem to be fine(of course I don't use "ALL", but...)

    Thanks!

    • Sign in to reply
    • Cancel

    Top Replies

    • Kevin van Haaren
      Offline Kevin van Haaren Fri, Apr 8 2022 10:27 PM in reply to Robert Biggar +1
      I see this when copying pasting from Outlook all the time. Also issues with smart quotes. In fact I've seen this so much I wrote a little function that fixes it for me. It converts smart double quotes…
    • Brandon Williams
      0 Offline Brandon Williams Wed, Apr 6 2022 10:48 AM in reply to MWBSI

      I did find it odd the error did not have the hyphen. Also, I would recommend using this in 64 bit PowerShell not x86. You'll need to install and import into 64 bit PowerShell.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • MWBSI
      0 MWBSI Wed, Apr 6 2022 10:48 AM

      In general with PowerShell, you need a hyphen(-) between the verb and the noun.  So the cmdlet is Update-PWSecurity, not UdatePWSecurity.  Intellisense should help you out as you type.

      Mark Weisman | Bentley Systems

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Robert Biggar
      0 Offline Robert Biggar Wed, Apr 6 2022 11:10 AM

      I will try the 64 bit angle...the hyphen; there or not, gave me the same error... Thanks!

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Robert Biggar
      0 Offline Robert Biggar Wed, Apr 6 2022 12:02 PM in reply to Robert Biggar

      ok, I uninstalled the x86 and set up the 64 bit....same error (with Hyphen)

      PS C:\PS> Update‐pwfolderSecurity


      Update‐pwfolderSecurity : The term 'Update‐pwfolderSecurity' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
      included, verify that the path is correct and try again.
      At line:1 char:1
      + Update‐pwfolderSecurity
      + ~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : ObjectNotFound: (Update‐pwfolderSecurity:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

      PS C:\PS> get-help pwfoldersecurity
      Security Protocol now set to TLS 1.2
      PWPS_DAB Version is 2.0.6.0
      This is a 64-bit process.

      Name Category Module Synopsis
      ---- -------- ------ --------

      Update-PWFolderSecurity Cmdlet pwps_dab UpdatePWFolderSecurity is used to add user(s), group(s), or userlist(s) access control to specified folders.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brandon Williams
      0 Offline Brandon Williams Wed, Apr 6 2022 12:08 PM in reply to Robert Biggar

      Are all cmdlets doing this? Can you Try New-Pwlogin and see if its the same? 

      When I import I do the following as Administrator 64 bit Powershell. (You need to be administrator)

      Install-Module PWPS_DAB -Force -Verbose

      Import-Module PWPS_DAB -Force -Verbose

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    >

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies