Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum change storage area name
    • Sign In

    • State Not Answered
    • Replies 7 replies
    • Subscribers 67 subscribers
    • Views 1066 views
    • Users 0 members are here

    change storage area name

    Robert Biggar
    Offline Robert Biggar over 2 years ago

    I have a number of folders in a storage area that I need to move to a different storage area.

    "Update-PWStorageAreaForProjectTree" - works, but insists on copying the files from one area to the other.

    I am looking for a way to change ONLY the ProjectWise side of this.

    The reason is that both the "target" and "destination" locations are on the same disk and the data for an individual folder is quite large (1 + TB)

    for that reason, I would much rather move the folders via Windows "Move" - which takes very little time in this instance because both folders are on the same disk.

    If there were a way to change the folder's and file's  Storage area without the copy of the physical files, it would save a huge amount of time.

    anyone know I can accomplish this?

    Thank You!

    Bob

    • Sign in to reply
    • Cancel
    • Brandon Williams
      0 Offline Brandon Williams Thu, Sep 2 2021 4:08 PM in reply to Robert Biggar

      So you are able to change the storage through the properties? Didnt know if the Storage property was read only or not. Are you able to do the same with documents?

      $Doc = Get-PWDocumentsBySearch -FolderID 15557 

      $Doc.StorageID = 2

      $Doc.StorageName = 2

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Robert Biggar
      0 Offline Robert Biggar Thu, Sep 2 2021 3:58 PM in reply to Kevin van Haaren

      I am able to change the folder through the properties, but I have not been able to change the files without having to copy them "from one Storage area to another" neither of these have much documentation. "update to match" is interesting...I will have to test it.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Thu, Sep 2 2021 3:56 PM in reply to Brandon Williams

      If I remember correctly the Move-PWFolderTreeToNewStorage had the same issue as Update-PWStorageAreaForProjectTree in that it wants to move files.

      Update-PWDocumentStorageToMatchFolder i couldn't use because it just changes documents (and didn't work when i tried if). I needed to change the folder too.

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brandon Williams
      0 Offline Brandon Williams Thu, Sep 2 2021 3:49 PM

      Do either of these cmdlets work? I do not have multiple storages so I can't really test it.

      Move-PWFolderTreeToNewStorage
      Update-PWDocumentStorageToMatchFolder

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brandon Williams
      0 Offline Brandon Williams Thu, Sep 2 2021 3:48 PM

      Do either of these commands work? I do not have multiple storages so I cant really test anything.

      Move-PWFolderTreeToNewStorage
      Update-PWDocumentStorageToMatchFolder

      • 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