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:

add-windowsfeature web-server overlay

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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -