Downloads:

117

Downloads of v 2016.02.23:

117

Last Update:

07 Jan 2017

Package Maintainer(s):

Software Author(s):

  • Daniel Streefkerk

Tags:

chocoupgradeallatstartup chocolatey choco upgrade startup admin

chocoupgradeallatstartup (Script)

Downloads:

117

Downloads of v 2016.02.23:

117

Maintainer(s):

Software Author(s):

  • Daniel Streefkerk

chocoupgradeallatstartup (Script)

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

This package was rejected on 11 Jan 2017. The reviewer flcdrg has listed the following reason(s):

bcurran3 (maintainer) on 07 Jan 2017 10:24:26 +00:00:

User 'bcurran3' (maintainer) submitted package.

bcurran3 (maintainer) on 07 Jan 2017 10:30:15 +00:00:

User 'bcurran3' (maintainer) submitted package.

chocolatey-ops (reviewer) on 07 Jan 2017 11:04:55 +00:00:

chocoupgradeallatstartup has passed automated validation. It may have or may still fail other checks like testing (verification).
NOTE: No required changes that the validator checks have been flagged! It is appreciated if you fix other items, but only Requirements will hold up a package version from approval. A human review could still turn up issues a computer may not easily find.

Guidelines

Guidelines are strong suggestions that improve the quality of a package version. These are considered something to fix for next time to increase the quality of the package. Over time Guidelines can become Requirements. A package version can be approved without addressing Guideline comments but will reduce the quality of the package.

  • This package uses the admin tag which suggests that one of the Admin Helpers is being used, however, none were found. More...
    • NOTE: We're extending converting this to a requirement to 01 May 2016 to give folks plenty of time to prepare and make changes.
  • The licenseUrl should be added if there is one. Please correct this in the nuspec, if applicable. More...
  • Release Notes (releaseNotes) are a short description of changes in each version of a package. Please include releasenotes in the nuspec. NOTE: To prevent the need to continually update this field, providing a URL to an external list of Release Notes is perfectly acceptable. More...
  • Tags (tags) should not contain 'chocolatey' as a tag. Please remove that in the nuspec. More...
Notes

Notes typically flag things for both you and the reviewer to go over. Sometimes this is the use of things that may or may not be necessary given the constraints of what you are trying to do and/or are harder for automation to flag for other reasons. Items found in Notes might be Requirements depending on the context. A package version can be approved without addressing Note comments.

  • If this is a brand new package that has never went through approval before, the reviewer will suggest a change to the package id. More...

chocolatey-ops (reviewer) on 07 Jan 2017 11:13:00 +00:00:

chocoupgradeallatstartup has passed automated testing.
This is not the only check that is performed so check the package page to ensure a 'Ready' status.
Please visit https://gist.github.com/3b86f7135aa73ba5f9681748e116b1f7 for details.
This is an FYI only. There is no action you need to take.

flcdrg (reviewer) on 10 Jan 2017 10:13:42 +00:00:

Sorry, you'll need to resubmit this with a different id - something like 'choco-upgrade-all-at-startup'

Also, don't use 'chocolatey' as a tag.

thanks,
David

bcurran3 (maintainer) on 10 Jan 2017 11:07:43 +00:00:

not having chocolatey in the tags seems self defeating

flcdrg (reviewer) on 10 Jan 2017 11:29:56 +00:00:

I know, but I don't make up the rules. Feel free to contact Rob and he might agree to let this one through.

I assume you got the email from chocolatey-ops (reviewer) previously flagging this anyway.

bcurran3 (maintainer) on 10 Jan 2017 13:01:51 +00:00:

I missed that...it's at the bottom and I didn't read that far. :)

flcdrg (reviewer) on 11 Jan 2017 05:48:23 +00:00:

New packages approved. Rejecting this old one.
Status Change - Changed status of package from 'submitted' to 'rejected'.

Description

Create a Scheduled Task to keep all Chocolatey Packages up-to-date

FEBRUARY 23, 2016 / DANIEL S

Rebuilding your PC is always a drag, even with useful utilities like Ninite.

I recently created a PowerShell DSC script that I can use whenever I need to rebuild my PC. As part of that, I used the cChoco provider to automatically install applications using Chocolatey. I’ll be writing a blog post with more details shortly.

That’s a great way to get the applications installed, but not for keeping them up-to-date. Chocolatey allows you to run ‘choco upgrade all’ manually to do this:

Screenshot of choco upgrade all

Rather than manually create the scheduled task to automate this, I created this short PowerShell script:

$chocoCmd = Get-Command -Name 'choco' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Select-Object -ExpandProperty Source
if ($chocoCmd -eq $null) { break }
$taskAction = New-ScheduledTaskAction –Execute $chocoCmd -Argument 'upgrade all -y'
$taskTrigger = New-ScheduledTaskTrigger -AtStartup
$taskUserPrincipal = New-ScheduledTaskPrincipal -UserId 'SYSTEM'
$taskSettings = New-ScheduledTaskSettingsSet -Compatibility Win8
$task = New-ScheduledTask -Action $taskAction -Principal $taskUserPrincipal -Trigger $taskTrigger -Settings $taskSettings
Register-ScheduledTask -TaskName 'Run a Choco Upgrade All at Startup' -InputObject $task -Force

The script will:

  • Locate the choco.exe binary (It’ll quit if it can’t find it in the path)
  • Set up a scheduled task that runs said binary at system startup

Note that this script will only work on Windows 8 and newer machines, because it relies on the *-ScheduledTask cmdlets.


tools\chocolateyinstall.ps1
$chocoCmd = Get-Command -Name 'choco' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Select-Object -ExpandProperty Source
if ($chocoCmd -eq $null) { break }

# Settings for the scheduled task
$taskAction = New-ScheduledTaskAction –Execute $chocoCmd -Argument 'upgrade all -y'
$taskTrigger = New-ScheduledTaskTrigger -AtStartup
$taskUserPrincipal = New-ScheduledTaskPrincipal -UserId 'SYSTEM'
$taskSettings = New-ScheduledTaskSettingsSet -Compatibility Win8

# Set up the task, and register it
$task = New-ScheduledTask -Action $taskAction -Principal $taskUserPrincipal -Trigger $taskTrigger -Settings $taskSettings
Register-ScheduledTask -TaskName 'Run a Choco Upgrade All at Startup' -InputObject $task -Force

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status

This package has no dependencies.

Discussion for the chocoupgradeallatstartup (Script) Package

Ground Rules:

  • This discussion is only about chocoupgradeallatstartup (Script) and the chocoupgradeallatstartup (Script) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or chocoupgradeallatstartup (Script), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus