$Path = $env:TEMP; $Installer = "EndpointAgentSetup.exe"; Invoke-WebRequest "https://intune.blob.core.windows.net/installers/MicrosoftCloudAppDiscoveryEndpointAgent.zip?sv=2017-04-17&ss=b&srt=sco&sp=rl&se=2067-11-21T20:40:45Z&st=2017-11-21T09:40:45Z&spr=https&sig=NhEIL2IZwmzG1svw%2BYHwk%3D" -OutFile $Path\MicrosoftCloudAppDiscoveryEndpointAgent.zip; Expand-Archive -Path $Path\MicrosoftCloudAppDiscoveryEndpointAgent.zip -DestinationPath $Path\Zip; Start-Process -FilePath $Path\Zip\$Installer -Args "/quiet" -Verb RunAs -Wait; Remove-Item $Path\Zip -Recurse ; Remove-Item $Path\MicrosoftCloudAppDiscoveryEndpointAgent.zip