Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

4,580

Downloads of v 2.10:

577

Last Update:

14 Mar 2023

Package Maintainer(s):

Software Author(s):

  • Nir Sofer

Tags:

multiple monitors freeware cli

MultiMonitorTool

  • 1
  • 2
  • 3

2.10 | Updated: 14 Mar 2023

Downloads:

4,580

Downloads of v 2.10:

577

Maintainer(s):

Software Author(s):

  • Nir Sofer

MultiMonitorTool 2.10

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install MultiMonitorTool, run the following command from the command line or from PowerShell:

>

To upgrade MultiMonitorTool, run the following command from the command line or from PowerShell:

>

To uninstall MultiMonitorTool, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

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

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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 https://community.chocolatey.org/api/v2/. 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. Copy Your Script

choco upgrade multimonitortool -y --source="'INTERNAL REPO 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 multimonitortool -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install multimonitortool
  win_chocolatey:
    name: multimonitortool
    version: '2.10'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'multimonitortool' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.10'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller multimonitortool
{
    Name     = "multimonitortool"
    Version  = "2.10"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'multimonitortool':
  ensure   => '2.10',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved by moderator Windos on 21 Mar 2023.

Description


choco://multimonitortool

To use choco:// protocol URLs, install (unofficial) choco:// Protocol support


MultiMonitorTool

MultiMonitorTool is a small tool that allows you to do some actions related to working with multiple monitors.

With MultiMonitorTool, you can disable/enable monitors, set the primary monitor, save and load the configuration of all monitors, and move windows from one monitor to another. You can do these actions from the user interface or from command-line, without displaying user interface.

MultiMonitorTool also provides a preview window, which allows you to watch a preview of every monitor on your system.

MultiMonitorTool Screenshot

Package Parameters

  • /NoShim - Opt out of creating a GUI shim.
  • /NoDesktopShortcut - Opt out of creating a Desktop shortcut.
  • /NoProgramsShortcut - Opt out of creating a Programs shortcut in your Start Menu.
  • /Start - Automatically start MultiMonitorTool after installation completes.

Package Notes

For future upgrade operations, consider opting into Chocolatey's useRememberedArgumentsForUpgrades feature to avoid having to pass the same arguments with each upgrade:

choco feature enable --name="'useRememberedArgumentsForUpgrades'"

tools\chocolateybeforemodify.ps1
$ErrorActionPreference = 'Stop'

$softwareName = 'MultiMonitorTool'
$process = Get-Process -Name $softwareName -ErrorAction SilentlyContinue
if ($process)
{
    Write-Warning "$softwareName is currently running, stopping it to prevent upgrade/uninstall from failing..."
    Stop-Process -InputObject $process -ErrorAction SilentlyContinue

    Start-Sleep -Seconds 3

    $process = Get-Process -Name $softwareName -ErrorAction SilentlyContinue
    if ($process)
    {
        Write-Warning "$softwareName is still running despite stop request, force stopping it..."
        Stop-Process -InputObject $process -Force -ErrorAction SilentlyContinue
    }

    Write-Warning "If upgrading, $softwareName may need to be manually restarted upon completion"
}
else
{
    Write-Debug "No running $softwareName process instances were found"
}
tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop'

$archiveFileNames = @('multimonitortool-x64.zip', 'multimonitortool.zip')

if ((Get-OSArchitectureWidth -Compare 64) -and ($env:chocolateyForceX86 -ne $true))
{
  $extractedArchiveName = $archiveFileNames[0]
}
else
{
  $extractedArchiveName = $archiveFileNames[1]
}
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$extractedArchivePath = Join-Path -Path $toolsDir -ChildPath $extractedArchiveName

$packageArgs = @{
  fileFullPath   = $extractedArchivePath
  destination    = $toolsDir
  packageName    = $env:ChocolateyPackageName
}
Get-ChocolateyUnzip @packageArgs

#Clean up ZIP archives post-extraction to prevent unnecessary disk bloat
foreach ($archiveFileName in $archiveFileNames)
{
  $archiveFilePath = Join-Path -Path $toolsDir -ChildPath $archiveFileName
  Remove-Item -Path $archiveFilePath -Force -ErrorAction SilentlyContinue
}

$softwareName = 'MultiMonitorTool'
$binaryFileName = "$softwareName.exe"
$linkName = "$softwareName.lnk"
$targetPath = Join-Path -Path $toolsDir -ChildPath $binaryFileName

$pp = Get-PackageParameters
if ($pp.NoShim)
{
    #Create shim ignore file
    $ignoreFilePath = Join-Path -Path $toolsDir -ChildPath "$binaryFileName.ignore"
    Set-Content -Path $ignoreFilePath -Value $null -ErrorAction SilentlyContinue
}
else
{
    #Create GUI shim
    $guiShimPath = Join-Path -Path $toolsDir -ChildPath "$binaryFileName.gui"
    Set-Content -Path $guiShimPath -Value $null -ErrorAction SilentlyContinue
}

if (!$pp.NoDesktopShortcut)
{
    $desktopDirectory = [Environment]::GetFolderPath([Environment+SpecialFolder]::DesktopDirectory)
    $shortcutFilePath = Join-Path -Path $desktopDirectory -ChildPath $linkName
    Install-ChocolateyShortcut -ShortcutFilePath $shortcutFilePath -TargetPath $targetPath -ErrorAction SilentlyContinue
}

if (!$pp.NoProgramsShortcut)
{
    $programsDirectory = [Environment]::GetFolderPath([Environment+SpecialFolder]::Programs)
    $shortcutFilePath = Join-Path -Path $programsDirectory -ChildPath $linkName
    Install-ChocolateyShortcut -ShortcutFilePath $shortcutFilePath -TargetPath $targetPath -ErrorAction SilentlyContinue
}

if ($pp.Start)
{
  try
  {
    Start-Process -FilePath $targetPath -ErrorAction Continue
  }
  catch
  {
    Write-Warning "$softwareName failed to start, please try to manually start it instead."
  }
}
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop'

$programsDirectory = [Environment]::GetFolderPath([Environment+SpecialFolder]::Programs)
$desktopDirectory = [Environment]::GetFolderPath([Environment+SpecialFolder]::DesktopDirectory)
$linkName = 'MultiMonitorTool.lnk'

$programsShortcutFilePath = Join-Path -Path $programsDirectory -ChildPath $linkName
$desktopShortcutFilePath = Join-Path -Path $desktopDirectory -ChildPath $linkName

if (Test-Path -Path $programsShortcutFilePath)
{
    Remove-Item -Path $programsShortcutFilePath -Force
}

if (Test-Path -Path $desktopShortcutFilePath)
{
    Remove-Item -Path $desktopShortcutFilePath -Force
}
tools\multimonitortool.zip
md5: C5679B4E352564763BE130BFF9135740 | sha1: BEAD13DF392E4058DA91AA37AE54E681F9ACE16D | sha256: A4C9876E96F0B92665FF514410A2AA06C5CF6E47AF2E4DD00BBFB51F2324CF99 | sha512: 07B31AA1AFA066586F07E74FC20E64EE3E8E9CFF260D70E877E99BBCBFE80D242630E361FF4B5743189AC9B6D53A8F9A9357ABBDB909673B735D052F5540AB5E
tools\multimonitortool-x64.zip
md5: CFB139F8B4BF0BE0F01BECC01733BFBD | sha1: 5AE2DCD5B8449A7213239CCCE007F8377F50181C | sha256: A3D6E77F1AF065B5C5446A3B302D9CF6BB37490C88E358867F6B7AA759B66398 | sha512: C93199A32ACCDE20B18E773B7DA6A7A931A1264E658A9C0ECC2CFC44F447644C00D1501ED7D8959C8AE6D3E52082FC5F304E557007E26BC09AC3245C2E5F21E0
tools\LICENSE.txt
From: https://www.nirsoft.net/utils/multi_monitor_tool.html

License

This utility is released as freeware. 
You are allowed to freely distribute this utility via floppy disk, CD-ROM, 
Internet, or in any other way, as long as you don't charge anything for this and you don't
sell it or distribute it as a part of commercial product.  
If you distribute this utility, you must include all files in
the distribution package, without any modification !

Disclaimer

The software is provided "AS IS" without any warranty, either expressed or implied,
including, but not limited to, the implied warranties of merchantability and fitness
for a particular purpose. The author will not be liable for any special, incidental,
consequential or indirect damages due to loss of data or any other reason. 
tools\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The packaged ZIP archive is sourced via the project's page on Nir Sofer's website.
The project's page is located at the following URL:
https://www.nirsoft.net/utils/multi_monitor_tool.html

For convenience, the packaged archives were downloaded via the following URLs:
https://www.nirsoft.net/utils/multimonitortool.zip
https://www.nirsoft.net/utils/multimonitortool-x64.zip

Nir Sofer also publishes official checksums for the packaged archives at the following URL:
https://www.nirsoft.net/hash_check/?software=multimonitortool

Note that the download URLs are not versioned, and that the checksums page only contains information
for the latest available version. Therefore, these URLs will only be a valid reference source if
the latest available version and packaged version are one and the same. A newly released version
should be expected to invalidate a checksum verification for an older version when using these URLs.

As a workaround, this package's creation process includes the creation of historical snapshots via
the Internet Archive's Wayback Machine to create a permanent backup source.
These snapshots can be accessed at the following URLs:

Download (32-bit): https://web.archive.org/web/20230314021530/https://www.nirsoft.net/utils/multimonitortool.zip
Download (64-bit): https://web.archive.org/web/20230314021551/https://www.nirsoft.net/utils/multimonitortool-x64.zip
Checksums: https://web.archive.org/web/20230314020123/https://www.nirsoft.net/hash_check/?software=multimonitortool

For convenience, the following checksums were published at the time of this package's creation:

multimonitortool.zip
MD5: c5679b4e352564763be130bff9135740
SHA1: bead13df392e4058da91aa37ae54e681f9ace16d
SHA256: a4c9876e96f0b92665ff514410a2aa06c5cf6e47af2e4dd00bbfb51f2324cf99
SHA512: 07b31aa1afa066586f07e74fc20e64ee3e8e9cff260d70e877e99bbcbfe80d242630e361ff4b5743189ac9b6d53a8f9a9357abbdb909673b735d052f5540ab5e

multimonitortool-x64.zip
MD5: cfb139f8b4bf0be0f01becc01733bfbd
SHA1: 5ae2dcd5b8449a7213239ccce007f8377f50181c
SHA256: a3d6e77f1af065b5c5446a3b302d9cf6bb37490c88e358867f6b7aa759b66398
SHA512: c93199a32accde20b18e773b7da6a7a931a1264e658a9c0ecc2cfc44f447644c00d1501ed7d8959c8ae6d3e52082fc5f304e557007e26bc09ac3245c2e5f21e0

Note that the MD5 and SHA1 hash algorithms are no longer considered secure by modern standards.
For tamper protection, it's recommended to validate against either a SHA256 or SHA512 hash instead.

The following PowerShell block will calculate and print a hash for each supported algorithm:

    $filePaths = @('multimonitortool.zip', 'multimonitortool-x64.zip')
    $hashAlgorithms = @('MD5', 'SHA1', 'SHA256', 'SHA512')
    foreach ($filePath in $filePaths)
    {
        foreach ($hashAlgorithm in $hashAlgorithms)
        {
            (Get-FileHash -Path $filePath -Algorithm $hashAlgorithm).Hash.ToLower()
        }
    }

This block should be executed against independently downloaded archives, as well as the copies
distributed with the package. All of the calculated hash values should match the published checksums.
Matching hash values should confirm that the published checksums are valid, and that no corruption or
tampering has occurred during this package's generation process.

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.

Add to Builder Version Downloads Last Updated Status
MultiMonitorTool 2.05 96 Tuesday, February 21, 2023 Approved
MultiMonitorTool 2.00 75 Tuesday, January 24, 2023 Approved
MultiMonitorTool 1.96 240 Tuesday, April 5, 2022 Approved
MultiMonitorTool 1.95 1278 Tuesday, February 5, 2019 Approved
MultiMonitorTool 1.92 262 Wednesday, November 21, 2018 Approved
MultiMonitorTool 1.91 391 Wednesday, February 21, 2018 Approved
MultiMonitorTool 1.90 442 Tuesday, August 22, 2017 Approved
MultiMonitorTool 1.86 434 Tuesday, November 8, 2016 Approved
MultiMonitorTool 1.85 387 Thursday, October 20, 2016 Approved
MultiMonitorTool 1.83 398 Thursday, April 2, 2015 Approved

This package has no dependencies.

Discussion for the MultiMonitorTool Package

Ground Rules:

  • This discussion is only about MultiMonitorTool and the MultiMonitorTool 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 MultiMonitorTool, 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