# Silent Install Skype# https://www.skype.com/en/download-skype/skype-for-windows/# Path for the workdir
$workdir ="c:\installer\"
# Check if work directory exists if not create itIf(Test-Path-Path $workdir -PathTypeContainer){Write-Host"$workdir already exists"-ForegroundColorRed}
ELSE
{New-Item-Path $workdir -ItemType directory }# Download the installer
$source ="http://www.skype.com/go/getskype-full"
$destination ="$workdir\skype.exe"Invoke-WebRequest $source -OutFile $destination
# Start the installationStart-Process-FilePath"$workdir\skype.exe"-ArgumentList"/VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH"# Wait XX Seconds for the installation to finishStart-Sleep-s 60# Remove the installer
rm -Force $workdir\skype*
I made a install script for Skype to do a Silent install.
UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists
Improvements are welcome!
For Windows 7 please change
To
Since Powershell in Windows 7 does not support the Invoke-WebRequest