Getting Volume Shadow copy information on Multiple servers


hi,

i beginner in power shell , trying write power shell script shadow copy drive space information on list of servers. need output in csv format servername, drive info free space , used. tried writing below script not giving me desired output.

logdate = get-date -f ddmmyyyy

$servers = get-content -path "c:\temp\machinelist.txt"

foreach ($server in $servers) {vssadmin list shadowstorage} 

i tried below get-wmiobject command not giving me desired output either.

get-wmiobject win32_shadowstorage | select-object @{n=’usedspacegb’;e={[math]::round([double]$_.usedspace/1gb,3)}}, volume

any appreciated.

thanks

manish



msharma

get-wmiobject win32_shadowstorage  -computername ws701 |     select pscomputername, maxspace, usedspace, allocatedspace

must run elevated when querying local computer. windows 7 client , windows server 2003 minimum.


\_(ツ)_/




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client