Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum How do I update a single document using powershell?
    • Sign In

    • State Verified Answer
    • +2 person also asked this people also asked this
    • Replies 8 replies
    • Subscribers 66 subscribers
    • Views 3619 views
    • Users 0 members are here

    How do I update a single document using powershell?

    Bill Leddy
    Offline Bill Leddy over 5 years ago

    I am currently using import-pwdocuments to replace an existing document in projectwise with an updated document from a local disk. When the command executes, it displays some disturbing messages about deleting other files and subfolders from Projectwise because they are not found on disk.  The files are not really deleted.  I am not using the -MakeProjectwiseMatchDisk switch.  I do not see a way to block recursive action thru subfolders.

    Is there another cmdlet that is more appropriate for bringing in a single file? (I'm new to the ProjectWise extensions. maybe I missed something?)

    Is there a way to suppress the totally inaccurate message?  (I will be turning this script over to an end-user.)

    • Sign in to reply
    • Cancel

    Top Replies

    • Brian Flaherty
      Offline Brian Flaherty Thu, Jan 25 2018 10:29 AM +1 verified
      I have made changes to the Update-PWDocumentFile cmdlet. This should do what you are needing. See Get-Help Update-PWDocumentFile -Full This should be available in the next release of the PWPS_DAB module…
    • Brian Flaherty
      0 Offline Brian Flaherty Thu, Jan 25 2018 11:37 AM in reply to Bill Leddy

      Hopefully, later today or tomorrow.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Bill Leddy
      0 Offline Bill Leddy Thu, Jan 25 2018 12:10 PM in reply to Brian Flaherty

      Ok, I'll give it a try tomorrow and let you know.  Thanks for the mod!

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Bill Leddy
      0 Offline Bill Leddy Wed, Feb 21 2018 3:41 PM in reply to Brian Flaherty

      Well, I didn't get to test it right away, but Update-PWDocumentFile works.  Thanks for your help.

      In the documentation, the examples could be a little clearer: avoid using 'physical' and instead just refer to the document file as being located in projectwise versus the local disk.   The module description is a big help!

      • 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