Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Set-PWDatasourceSetting SettingID and NumericValue list?
    • Sign In

    • State Suggested Answer
    • Replies 5 replies
    • Answers 1 answer
    • Subscribers 64 subscribers
    • Views 2041 views
    • Users 0 members are here

    Set-PWDatasourceSetting SettingID and NumericValue list?

    D.Widdifield
    Offline D.Widdifield over 5 years ago

    When using the Set-PWUserSetting cmdlet it references the -SettingsID and -NumericValue.

    For example to enable a user to create projects this would be used:

    Set-PWUserSetting -UserID $Staff -SettingID AADMS_PAR_RICH_PROJECT_ACCESS -NumericValue 6

    Is there a master list somewhere that lists the various Settings and values? This is similar to the Set-PWDatasourceSetting cmdlet.

    D

    • Sign in to reply
    • Cancel
    Parents
    • Kevin van Haaren
      0 Offline Kevin van Haaren Sun, Nov 19 2017 7:47 PM

      help About_PWPS_UserSettings has the user settings list

      help About_PWPS_DatasourceSettings has the datasource list

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject Answer
      • Cancel
    • Kirk Peterson
      0 Offline Kirk Peterson Thu, Feb 8 2018 12:36 PM in reply to Kevin van Haaren

      this doesn't seem to work for me?  I get "Object reference not set to an instance of an  object."

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Thu, Feb 8 2018 1:19 PM in reply to Kirk Peterson

      what version of projectwise administrator do you have? I have the first version, not sure if they changed this later on.

      Also try opening a powershell console as administrator and do "update-help"

      finally try:

      help about_pwps*

      that should show all the about_ help from the PWPS module

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kirk Peterson
      0 Offline Kirk Peterson Thu, Feb 8 2018 2:50 PM in reply to Kevin van Haaren

      PW Admin .265 .... PW server is v8i .590. 

      Unfortunately I still get the same error.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Thu, Feb 8 2018 3:44 PM in reply to Kirk Peterson

      hmmm, I'm using the first CONNECT release. what did help about_pwps* show?

      it's possible some other module is jacking up your help. Did Update-Help crash too? Did it say on which module it crashed?

      what version of Powershell do you have?

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Kevin van Haaren
      0 Offline Kevin van Haaren Thu, Feb 8 2018 3:44 PM in reply to Kirk Peterson

      hmmm, I'm using the first CONNECT release. what did help about_pwps* show?

      it's possible some other module is jacking up your help. Did Update-Help crash too? Did it say on which module it crashed?

      what version of Powershell do you have?

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Children
    No Data

    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