Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Add-PWUserToGroup : Not logged into a ProjectWise datasource.
    • Sign In

    • State Verified Answer
    • Replies 2 replies
    • Answers 1 answer
    • Subscribers 66 subscribers
    • Views 678 views
    • Users 0 members are here
    • powershell
    • PWPowerShell
    • ProjectWise PowerShell Modules

    Add-PWUserToGroup : Not logged into a ProjectWise datasource.

    Juan Garcia
    Offline Juan Garcia over 4 years ago

    Hi All,

    When I run this cmlet i get this error.

    CMLET - Add-PWUserToGroup -GroupName "GroupName" -UserName "Username"

    ERROR - Changed ThreadOptions to ReuseThread
    Add-PWUserToGroup : Not logged into a ProjectWise datasource.
    At line:1 char:1
    + Add-PWUserToGroup -GroupName "GroupName...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Add-PWUserToGroup], Exception
        + FullyQualifiedErrorId : System.Exception,PWPS_DAB.AddPWUserToGroup

    PS C:\Windows\system32> Error: One or more errors occurred.
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
       at System.Threading.Tasks.Task`1.get_Result()
       at PWPS_DAB.Utility.SendInfoToWebService(Object args)

    How do i login to ProjectWise data source from ProjectWise PowerShell and see if that corrects this error?

    Thanks 

    • Sign in to reply
    • Cancel

    Top Replies

    • Juan Garcia
      Offline Juan Garcia Tue, Sep 3 2019 7:50 PM in reply to Dan Williams +1 verified
      this helped New-PWLogin -UseGui then i logged in using the GUI interface It worked!
    • Dan Williams
      0 Offline Dan Williams Tue, Sep 3 2019 7:43 PM

      You can connect to a datasource using New-PWLogin.  Check the help for details, i.e. Get-Help New-PWLogin -Full

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject Answer
      • Cancel
    • Juan Garcia
      +1 Offline Juan Garcia Tue, Sep 3 2019 7:50 PM in reply to Dan Williams

      this helped

      New-PWLogin -UseGui

      then i logged in using the GUI interface

      It worked!

      Answer Verified By: Juan Garcia 

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Verify Answer
      • Reject 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