October 2017
Intermediate to advanced
440 pages
11h 47m
English
Clear-Variable removes the value from any existing variable. Clear-Variable does not remove the variable itself. For example, the following example calls Write-Host twice: the first time it writes the variable value; the second time it does not write anything:
PS> $temporaryValue = "Some-Value"Write-Host $temporaryValue -ForegroundColor GreenSome-ValuePS> Clear-Variable temporaryValueWrite-Host $temporaryValue -ForegroundColor Green
Read now
Unlock full access