Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum I want to get Storage disk space from projectwise for all datasources and also need to show the disk usage in TB. I had tried to execute the command Get-PWStorageDiskUsage . but i am not getting any examples. if anyone tried of getting the storage disk us
    • Sign In

    • State Not Answered
    • Replies 2 replies
    • Subscribers 65 subscribers
    • Views 1016 views
    • Users 0 members are here

    I want to get Storage disk space from projectwise for all datasources and also need to show the disk usage in TB. I had tried to execute the command Get-PWStorageDiskUsage . but i am not getting any examples. if anyone tried of getting the storage disk us

    swaroop bukke
    Offline swaroop bukke over 5 years ago

    I want to get Storage disk space from projectwise for all datasources and also need to show the disk usage in TB. I had tried to execute the command Get-PWStorageDiskUsage .  but i am not getting any examples. if anyone tired of getting the storage disk usage powershell script please share me

    • Sign in to reply
    • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Thu, Sep 27 2018 12:05 PM in reply to swaroop bukke

      PowerShell can do unit conversions for you, so converting bytes to terabytes is just a matter of dividing by  1TB

      $size = 1234567890 / 1TB

      no space before the TB.

      More on this here:

      https://www.powershellmagazine.com/2013/05/20/converting-to-size-units-kb-mbgbtb-and-pb-without-using-powershell-multipliers/

      To do multiple datasources you need to create a list of datasources then use a for loop to login to each datasource, get the report, then log out of the datasource, and move on to the next datasource.

      Details on for loops here:

      www.business.com/.../

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • swaroop bukke
      0 Offline swaroop bukke Wed, Sep 26 2018 11:11 PM

      i had already tried of Get-PWStorageDiskUsage and i can see the result but i want to do for all the data sources and need to convert in TB

      • 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