Question: what does this section of a script mean ection 5 else { $volume = Get - Volume - ErrorAction Stop | Where - Object {
what does this section of a script mean ection
else
$volume GetVolume ErrorAction Stop WhereObject $DriveLetter eq
$Drive
if $volume
$total $volume.Size
$percentFree int$volume.SizeRemaining $total
AddContent Path $logFile Value INFO Percent Free: $percentFree
else
AddContent Path $logFile Value ERROR $Drive was not found."
throw
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
