Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Get-PWFolder and Get-PWRichProjects
    • Sign In

    • State Verified Answer
    • Replies 10 replies
    • Subscribers 67 subscribers
    • Views 5560 views
    • Users 0 members are here
    • pwps_dab

    Get-PWFolder and Get-PWRichProjects

    Patrick Tran
    Offline Patrick Tran over 5 years ago

    Is there any cmdlet that will return only the contents of a specific folder (and not the tree below it)? 

    Our directory structure is set up in a way that I can easily pipeline and filter for the specific folders I want, but the two aforementioned cmdlets seem to parse through every folder before anything is returned, which takes a very long time.

    Documents\Clients\Projects\Project Folders and Files\

    If the above is my folder structure, what's the best way to just return a collection of Clients?

    • Sign in to reply
    • Cancel

    Top Replies

    • Brian Flaherty
      Offline Brian Flaherty Thu, Mar 29 2018 7:53 AM in reply to Kevin van Haaren +2 verified
      I have had a couple of requests for this functionality. I have create cmdlet 'Get-PWFoldersImmediateChildren' to return only the immediate child folders of a specified folder. This should be available…

    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