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…
    Parents
    • 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
    Reply
    • 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
    Children
    • 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
    • Robert Biggar
      0 Offline Robert Biggar Wed, Apr 6 2022 1:25 PM in reply to Brandon Williams

      I think it is "case"...

      <lowercase PWF...>

      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

      <uppercase PWF...>

      PS C:\PS> Update-PWFolderSecurity
      Update-PWFolderSecurity : Parameter set cannot be resolved using the specified named parameters.
      At line:1 char:1
      + Update-PWFolderSecurity
      + ~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : InvalidArgument: (:) [Update-PWFolderSecurity], ParameterBindingException
      + FullyQualifiedErrorId : AmbiguousParameterSet,PWPS_DAB.UpdatePWFolderSecurity

      It "finds it" now... I don't recall ever having case issues...maybe I was just lucky and always got the case .."just right"???

      ...thanks for the help! I'm off to the next tree to slam into.."Yoiks and away"

      (assumption on the Looney tune literacy :-D)

      Bob

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

      I copied your first example and the issue seemed to be the -

      When I copied the dash it was shorter then the dash I use. I have no idea how that happened.

      If you copy both cmdlets into powershell you'll see what I mean.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Robert Biggar
      0 Offline Robert Biggar Thu, Apr 7 2022 7:16 AM in reply to Brandon Williams

      yeah, the hyphen definitely needs to be in there...that example without the hyphen was a test someone else observer from the documentation of the cmdlet...a test that didn't work ;-)   It just got caught up in my capture, but thanks, you are absolutely correct. ( I wouldn't want anyone to fall down that rabbit hole).

      It seems the real problem for me was the case of the Text:

      "Update‐pwfolderSecurity" did not work......

      however

      "Update-PWFolderSecurity" does work

      ??? 

      interesting....because

      "New-Pwlogin"  works

      but so does "new-pwlogin"....

      maybe there are some aliases "lurking about"...

      my "takeaway"...sometimes CMDlets ARE case-sensitive...(note to self)

      The way I finally figured it out was to use "intellisense"...I selected from the list and it worked...then compared it to what had been failing.

      I will be using that in the future.

      I appreciate your comments with this....they were a BIG help!

      Bob

      • 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