krutoarcade.blogg.se

Using powershell to install software
Using powershell to install software











using powershell to install software

$deployAppScriptParameters = $psBoundParameters $deployAppScriptFriendlyName = "Deploy Application" # Variables: Script - Do not modify this section $appName = "Install or Uninstall Windows Updates" The below command will INTERACTIVELY Uninstall all the updates installed in the last 10 days.\Deploy-Application.EXE -DeploymentType UnInstall -DeployMode Interactive -Updatesince 10 Full script : The below command will SILENTLY Uninstall all the updates installed in the last 10 days.\Deploy-Application.EXE -DeploymentType UnInstall -DeployMode Silent -Updatesince 10 The below command will INTERACTIVELY install all the updates released (Approved: if using WSUS) in the last 10 days from WSUS (if configured, or uses Microsoft Windows Update site).\Deploy-Application.EXE -DeploymentType Install -DeployMode Interactive -Updatesince 10 The below command will SILENTLY install all the updates released (Approved: if using WSUS) in the last 10 days from WSUS (if configured, or uses Microsoft Windows Update site).\Deploy-Application.EXE -DeploymentType Install -DeployMode Silent -Updatesince 10 Logging is done to: C:\Windows\Logs\Software Install MS Updates: This can be deployed using SCCM if Software Update Point is turned off or if you prefer a Package deployment method of distributing software updates. The script uses whatever update source is made available to the machine to download and install the updates.

using powershell to install software

I’ve used PSAppDeployToolkit to accomplish the task. The attached script installs or uninstalls Microsoft Updates in the last ‘N’ days.













Using powershell to install software