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…

    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