Clear PowerShell overlay from Add-WindowsFeature cmdlet -
i notice when creating powershell scripts use add-windowsfeature cmdlet servermanager module on windows server 2008 r2, there aqua-blue overlay not cleared until entire script finished. example, here screenshot of script uses add-windowsfeature web-server command install iis:

the collecting data... start installation... overlay stays on top of console history , not disappear until after entire script finished. there way console re-paint or disable overlay?
this result of write-progress called internally server manager cmdlets. if want make silent - change $progresspreference 'silentlycontinue'.
you can emulate using write-progress self:
for ($i = 0; $i -lt 100; $i++) { write-progress -activity "counting: $i" -status "$i" -percentcomplete $i sleep 1 } hth bartek
Comments
Post a Comment