Downloads of v 1.1:


Last Update:

21 Mar 2017

Package Maintainer(s):

Software Author(s):

  • IrekSoftware/Ireneusz Zielinski


sleeponlan power wol wakeonlan

SleepOnLan (Portable)

  • 1
  • 2
  • 3

1.1 | Updated: 21 Mar 2017



Downloads of v 1.1:



Software Author(s):

  • IrekSoftware/Ireneusz Zielinski

  • 1
  • 2
  • 3
SleepOnLan (Portable) 1.1

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests

Validation Testing Passed

Verification Testing Passed


Scan Testing Successful:

No detections found in any package files


To install SleepOnLan (Portable), run the following command from the command line or from PowerShell:


To upgrade SleepOnLan (Portable), run the following command from the command line or from PowerShell:


To uninstall SleepOnLan (Portable), run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade sleeponlan -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade sleeponlan -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure sleeponlan installed
    name: sleeponlan
    state: present
    version: 1.1
    source: STEP 3 URL

See docs at

chocolatey_package 'sleeponlan' do
  action    :install
  version  '1.1'
  source   'STEP 3 URL'

See docs at

    Name: sleeponlan,
    Version: 1.1,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller sleeponlan
   Name     = 'sleeponlan'
   Ensure   = 'Present'
   Version  = '1.1'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'sleeponlan':
  provider => 'chocolatey',
  ensure   => '1.1',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install sleeponlan version="1.1" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

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

This package was approved by moderator AdmiringWorm on 27 Mar 2017.


"Sleep On Lan" allows to suspend (put to sleep), hibernate, power off, reboot, lock or logoff Windows machine remotely.

Commands are issued via WWW browser - so you can do it from any other PC or mobile phone (like iPhone).

Use case scenario:

I own Xbox360 and PS3. I often want to stream media from my Windows PC (located upstairs) to my consoles (downstairs).
I use "Wake On Lan" (WOL) feature to wake up my PC (you can do it in many, many ways - I personally use free "Awake" app for iPhone).
WOL is great - allows my PC to be started remotely but there is no easy way to put my PC back to hibernation when I'm done!
"Sleep On Lan" allows to do just that - hibernate my PC by simply opening one web page in browser!

Getting started:

  • Download and extract all files from "Sleep On Lan" zip package to your local hard drive.
  • Application has no installer - so simply run it.
  • You can change a TCP/IP port that utility uses to listen for incoming connections. But most users will leave it as it is (7760)
  • Click "Start" button to enable listening for commands
  • Windows firewall is likely to ask if application should have an access to internet (click "Allow" or "Unblock").
  • Now from remote PC you can type a command using this format:
    Where command can be one of this keywords: suspend, hibernate, logoff, poweroff, forcepoweroff, lock, reboot, test
  • You can add this URL to bookmark on your iPhone (or maybe even as a shortcut on home screen) - you can use this url also at any PC on your network.

$ErrorActionPreference = 'Stop';
$packageName= 'sleeponlan'
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url        = ''
$packageArgszip = @{
  packageName   = $packageName
  unzipLocation = $toolsDir
  url           = $url
  checksum      = '0DD5034C29628738077C9D1ECDAB5B537CED1F86C60E92B0E9DB9C00F1D2F48B'
  checksumType  = 'sha256'
  validExitCodes= @(0)
Install-ChocolateyZipPackage @packageArgszip

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 SleepOnLan (Portable) Package

Ground Rules:

  • This discussion is only about SleepOnLan (Portable) and the SleepOnLan (Portable) 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 SleepOnLan (Portable), 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