Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Looking for specific cmdlets
    • Sign In

    • State Not Answered
    • +1 person also asked this people also asked this
    • Replies 8 replies
    • Subscribers 66 subscribers
    • Views 3269 views
    • Users 0 members are here
    • powershell
    • ProjectWise
    • ProjectWise PowerShell Modules

    Looking for specific cmdlets

    Ben Davies
    Offline Ben Davies over 5 years ago

    Hello,

    We are starting to use PowerShell to try and automate some procedures and reports but I can only see a list of the cmdlets, but nothing what they do. So you would anyone know which ones would be best on the following if they are even possible:

    1. Reporting users and the groups they are assigned to on each datasource but also report on a property they have been assigned for example whether they have been set to use the integration server license or client side license.
    2. Rename files from a search result to add PW attributes to the file name.
    3. To create a ProjectWise project with a list of values and then apply access template from an excel file.

    The rest of the code we can do but it is the specific or combinations of cmdlets that would do the above we are struggling with.

    • Sign in to reply
    • Cancel

    Top Replies

    • Kevin van Haaren
      Offline Kevin van Haaren Wed, May 23 2018 11:15 AM in reply to Brent Goreham +1
      get-command -module PWPS get-command -module PWPS_DAB
    Parents
    • Robert Biggar
      0 Offline Robert Biggar Tue, Feb 6 2018 1:07 PM

      I've been doing a bunch of data loading (attributes and properties) both from ascii data files and XML. have you found an answer to the renaming of files question?

      I have done some renaming both of folders and files. and adding to the description.

      Brian is correct...a lot of this is done by the "Get-Help", but I think it would be nice to have a list/whitepaper/book on the ProjectWise side of things similar to the "Powershell Cookbook) (o'reilly press) just for "getting started" purposes.

      b

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Ben Davies
      0 Offline Ben Davies Wed, Feb 7 2018 11:55 AM in reply to Robert Biggar

      I have started to look at the list of cmdles available in the Powershell, but we have also been looking at doing this through an Excel Macro after copying a set of columns out from PW documents view, with great success so far.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • NicolasT
      0 Offline NicolasT Wed, May 23 2018 7:12 AM in reply to Ben Davies

      Hello,

      sorry, I am new in this Powershell story. Could you please advise where I could generate a list of all available cmdlets ? would it be possible to automate a scan ref process ? e.g. daily scan ref of a list of folders, projects,.. ? Thank yoy very much in advance for your help. Best regards, Nico

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brent Goreham
      0 Offline Brent Goreham Wed, May 23 2018 7:56 AM in reply to NicolasT

      Try; Get-Help PW

      The get-help cmdlet can take part cmdlets and will search them as if a wildcard has been used. This should list any with *PW*  within the cmdlet

      You could add all these to a txt with something simple like...

      $outFile = get-help pw | Select Name, Category | Sort-Object Name | ConvertTo-DataTable | Out-File 'C:\TEMP\PWcmdlets.txt'
      Invoke-Item C:\TEMP\PWcmdlets.txt

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Wed, May 23 2018 11:15 AM in reply to Brent Goreham

      get-command -module PWPS

      get-command -module PWPS_DAB

       

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brent Goreham
      0 Offline Brent Goreham Wed, May 23 2018 5:54 PM in reply to Kevin van Haaren

      Even better :) 

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Brent Goreham
      0 Offline Brent Goreham Wed, May 23 2018 5:54 PM in reply to Kevin van Haaren

      Even better :) 

      • 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