Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
why is this isn't working:
$volumes = Get-Content c:\vol_list.txt
foreach ($vol in $volumes) Get-NaVolAutosize $vol | select name,isenabled | ft
cheers
Solved! See The Solution
I gues you missed the curly braces ?
$volumes = Get-Content c:\vol_list.txt
foreach ($vol in $volumes)
{
Get-NaVolAutosize $vol | select @{l='VolumeName';e={$vol}},isenabled | ft
}
I gues you missed the curly braces ?
$volumes = Get-Content c:\vol_list.txt
foreach ($vol in $volumes)
{
Get-NaVolAutosize $vol | select @{l='VolumeName';e={$vol}},isenabled | ft
}
I guess you missed the curly braces ?
$volumes = Get-Content c:\vol_list.txt foreach ($vol in $volumes) { Get-NaVolAutosize $vol | select @{l='VolumeName';e={$vol}},isenabled | ft }
I guess I have..
cheers
Joel - i'll dig around for something I wrote that will inventory all this in excel... and it will tell you the min and max