Clean temporal files from site from IIS Powershell

that is for ALL websites #invoke-command -computername “HOSTNAME” -scriptblock {iisreset /STOP} #invoke-command -computername “HOSTNAME” -scriptblock {iisreset /START} ; Begin-WebSite $args[0] Enter fullscreen mode Exit fullscreen mode that is for ONE website Import-Module WebAdministration $serverName = “COMPUTERNAME” #title VM $siteName = “ELA_Client” #title website $block = {Cease-WebSite $args[0]}; $session = New-PSSession -ComputerName $serverName #cease website Invoke-Command […]