Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum I'm looking for a way to change/set a user's "Settings"
    • Sign In

    • State Not Answered
    • Replies 13 replies
    • Subscribers 66 subscribers
    • Views 3737 views
    • Users 0 members are here
    • powershell
    • UserList

    I'm looking for a way to change/set a user's "Settings"

    Robert Biggar
    Offline Robert Biggar over 5 years ago

    specifically...under "user Interface"; turn on Edit Sets. I think I can filter out the usernames I want to work on, but I don't see a way to change the settings. is that a capability yet?

    Thanks!

    Bob

    • Sign in to reply
    • Cancel
    • Brian Flaherty
      0 Offline Brian Flaherty Thu, Aug 30 2018 10:17 AM

      Do you have the PWPS module installed?  There is a cmdlet to accomplish what you need. 

      Get-Help Set-PWUserSetting -Full

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Robert Biggar
      0 Offline Robert Biggar Thu, Aug 30 2018 11:11 AM

      Brian:

      I didn't have those cmdlets loaded, but I noticed that I was missing them for another thing and after I loaded them and went through them....I noticed the "Get-/Set-PWUserSetting" cmdlets.

      one question though; it mentions that you provide an "Enum Value"...am I correct in assuming that Enumeration table is in the ProjectWise SDK?

      Thank You!

      Bob

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Thu, Aug 30 2018 6:22 PM in reply to Robert Biggar

      do you have the latest projectwise administrator? I tested this in my dev environment:

      set-pwusersetting -UserID 10 -UserSettingCategory "UI" -UserSettingName "CanEditSets" -UserSettingValue 0

      If you do a Get-PWUserSetting -UserID 1 it will show all the user setting categories and setting names.  Most values are 1 for on and 0 for off.

      Note - my production system runs a much earlier version of PW Connect and this command works completely differently on there (and edit sets isn't available). Not sure at what version these changes were made.

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Robert Biggar
      0 Offline Robert Biggar Tue, Sep 4 2018 8:11 AM

      Thanks Kevin.

      I'm not sure which version of PWPS I have but the date on the msi is 11/06/14 ...before you unzip it.

      a couple notes I can add...

      yes, I was able to find the "settings" in the PWPublicSDK.chm file...still a little confusing (still unraveling)...and I have not found the "edit sets" switch - so thanks for that info!!

      also,  in the "...pwps\en-US" folder there are some document files....most notably (to me) is the "about_PWPS_UserSetting.help.txt" file that details a great deal of the User settings...good stuff. I haven't compared it to the info I gleened out of the SDK...but that is next.

      It's a lot of info and it is not accessing the switch exactly as you do...so both methods  may be needed to access all the User Settings switches and strings.

      Thanks for the help Kevin!

      Bob

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Robert Biggar
      0 Offline Robert Biggar Tue, Sep 4 2018 12:46 PM in reply to Robert Biggar

      Kevin:

      loaded the PWPS for V10 (Connect)

      found the "User Settings info"  - Didn't find it with "Get-help" had to key in something wrong to get a list of "Categories" - then I was able to get a list of settings names with: Get-pwusersetting -UserID 10 -UserSettingCategory "<Category>"

      didn't find any user setting names for "DocList" (Document List)...any Idea on that?

      also.

      I am working on V8i...at least for the time being.

      These do not work there...any Idea if the "can Edit Sets" toggle is exposed in V8i? I am not seeing it in the Enumeration list...though I could have missed it.

      Found most of the CONSTANTS in aadmsdef.h

      Thanks!

      B

      • 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