Notices: This section not yet converted to new layout. Download stats are rolling back out.

Default Printer Changer Script

1.0.1

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator ferventcoder on 9/1/2016.

Powershell module that allows you to set a default printer.

To install Default Printer Changer Script, run the following command from the command line or from PowerShell:

C:\> choco install setdefaultprinter

To upgrade Default Printer Changer Script, run the following command from the command line or from PowerShell:

C:\> choco upgrade setdefaultprinter

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $packageName = 'SetDefaultPrinter' # arbitrary name for the package, used in messages
    $url = 'https://gallery.technet.microsoft.com/How-to-set-default-printer-cf89670b/file/131203/1/38873.zip' # download url
    
    $checksum = '42B7275EC42B9A5C0CD8140D211F9CA7'
    try { 
      $installDir = Join-Path $PSHome "Modules"
    
      Install-ChocolateyZipPackage "$packageName" "$url" "$installDir" -checksum $checksum
         
      Write-ChocolateySuccess "$packageName"
    } catch {
      Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
      throw 
    }
  • tools\chocolateyUninstall.ps1 Show
    try {
        $installPath = Join-Path $PSHome  "Modules\SetDefaultPrinter"
        Remove-Item -Recurse -Force $installPath
        Write-ChocolateySuccess 'SetDefaultPrinter'
    } catch {
      Write-ChocolateyFailure 'SetDefaultPrinter' $($_.Exception.Message)
      throw
    }

Virus Scan Results

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.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Fabian Clerbois

Tags

Release Notes

Created

Version History

Version Downloads Last updated Status
Default Printer Changer Script 1.0.0 211 Friday, April 15, 2016 approved

Discussion for the Default Printer Changer Script Package

Ground rules:

  • This discussion is only about Default Printer Changer Script and the Default Printer Changer 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 Default Printer Changer 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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok