From e56f728099b9d51b6c28f9810b4e1d60e2008d59 Mon Sep 17 00:00:00 2001 From: dfrancis-adm Date: Fri, 26 Apr 2019 10:22:11 -0400 Subject: [PATCH] Removed config info and jobtimeout --- functions/Invoke-ChocoRemoteUpgrade.ps1 | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/functions/Invoke-ChocoRemoteUpgrade.ps1 b/functions/Invoke-ChocoRemoteUpgrade.ps1 index 369395b..30b516d 100644 --- a/functions/Invoke-ChocoRemoteUpgrade.ps1 +++ b/functions/Invoke-ChocoRemoteUpgrade.ps1 @@ -15,22 +15,10 @@ function Invoke-ChocoRemoteUpgrade { [string[]]$ComputerName, [string[]]$AdditionalPackages, [string[]]$ExcludedPackages, - [switch]$RebootifPending, - [int]$JobTimeout - # [System.Management.Automation.ScriptBlock]$Config + [switch]$RebootifPending ) process { Invoke-Command -ComputerName $ComputerName -ScriptBlock { - choco config set virusScannerType VirusTotal | out-null - choco feature enable -n virusCheck | out-null - choco config set commandExecutionTimeoutSeconds 1800 | out-null - choco feature enable -n reduceInstalledPackageSpaceUsage | out-null - choco feature enable -n reduceOnlyNupkgSize | out-null - choco feature enable -n useRememberedArgumentsForUpgrades | out-null - choco feature enable -n adminOnlyExecutionForNewCommand | out-null - choco feature enable -n adminOnlyExecutionForDownloadCommand | out-null - # choco source disable --name=chocolatey | out-null - #Get list of locally installed packages to upgrade $packages = [System.Collections.ArrayList]@(choco outdated -r --ignore-unfound --ignore-pinned | Foreach-Object { ($_.split("|"))[0]})