none
Volume shadow copy RRS feed

  • Question

  • Hi Experts,

    Need assistance to update script further for getting status from remote computers.

    Following is the script code

    $pattern = 'for volume: \((.*?)\)[\s\S]*?' +
               'used.*?space: (\d+.*?b)[\s\S]*?' +
               'allocated.*?space: (\d.*?b)'
     
    vssadmin list shadowstorage | Out-String |
      Select-String $pattern -AllMatches |
      Select-Object -Expand Matches |
      ForEach-Object {
        New-Object -Type PSObject -Property @{
          ComputerName   = $env:COMPUTERNAME
          Drive          = $_.Groups[1].Value
          UsedSpace      = $_.Groups[2].Value
          AllocatedSpace = $_.Groups[3].Value
        }
      }

    Thanks,

    Shashi


    • Edited by Shashi.Surve Thursday, March 19, 2020 8:39 AM
    • Moved by jrv Monday, April 6, 2020 8:53 AM abandoned
    Thursday, March 19, 2020 8:39 AM

Answers

  • To list shadow storage statistics use the following:

    Get-CimInstance Win32_ShadowStorage


    \_(ツ)_/

    • Marked as answer by jrv Monday, April 6, 2020 8:53 AM
    Thursday, March 19, 2020 11:09 AM

All replies

  • Please edit your post and post the code correctly so that it is readable:


    \_(ツ)_/

    Thursday, March 19, 2020 11:04 AM
  • To list shadow storage statistics use the following:

    Get-CimInstance Win32_ShadowStorage


    \_(ツ)_/

    • Marked as answer by jrv Monday, April 6, 2020 8:53 AM
    Thursday, March 19, 2020 11:09 AM
  • Hi,

    Just checking the current situation of your problem.

    Please let us know if you would like further help.

    Best regards,

    Ellen


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, March 25, 2020 2:56 AM
  • Hi,

    As this thread has been quiet for a while, we will propose it as ‘Answered’ as the information provided should be helpful.

    If you need further help, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to unmark the answer as you wish.

    Best regards,

    Ellen

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, April 6, 2020 6:05 AM