PSMouseJiggler
3.0.0
A lightweight PowerShell module for visible, authorized VDI session-retention testing with independently selectable activity providers and local result export.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) Steven Wight (PowerShell Young Team). All rights reserved.
Package Details
Author(s)
- Steven Wight (PowerShell Young Team)
Tags
VDI Testing PowerShell Providers GUI Windows
Functions
Start-PSMouseJiggler Stop-PSMouseJiggler Get-NewMousePosition Show-PSMouseJigglerGUI Get-Configuration Save-Configuration Update-Configuration Reset-Configuration Get-PSMJProfile Save-PSMJProfile Remove-PSMJProfile Start-PSMJProfile Get-PSMJDiagnostics Get-RandomMovementPattern Move-Mouse Get-PSMJScheduledTasks Get-PSMJScheduledTaskStatus New-PSMJScheduledProfileTask New-PSMJScheduledTask Remove-PSMJScheduledTask Start-PSMJScheduledTask Stop-PSMJScheduledTask Prevent-SystemIdle Send-KeyboardInput Send-MouseInput Get-PSMJRecommendedMethods
PSEditions
Dependencies
This module has no dependencies.
Release Notes
Version 3.0.0 (breaking changes)
- Refocused the module on visible, authorized VDI session-retention testing.
- Replaced the GUI with independent provider controls, run history, and CSV export.
- Configuration is now saved per user; existing legacy configuration is read
when no per-user configuration exists.
- Fixed hardware mouse SendInput and made the legacy installer preserve user files.
- Removed Start-MovementPattern and its nonfunctional Stop-MovementPattern.
Use Start-PSMouseJiggler -Methods MouseSoftware and Stop-PSMouseJiggler instead.
Its Random pattern generates random offsets rather than rotating among patterns.
- The Keyboard provider uses SendInput for the F15 key. These events enter the system
input stream and may be handled by the focused application; the module does not
capture typed content.
- Send-KeyboardInput accepts -VirtualKeyCode (UInt16 virtual-key code, default
0x7E / VK_F15).
Version 2.0.0 (BREAKING CHANGES)
- Removed Start-KeepAwake. Use Start-PSMouseJiggler -Methods / -Strategy instead:
- Old: Start-KeepAwake -Methods @('MouseHardware','SystemAPI')
- New: Start-PSMouseJiggler -Methods @('MouseHardware','SystemAPI')
- Added -Methods and -Strategy parameters directly to Start-PSMouseJiggler, unifying
basic mouse jiggling and multi-method keep-awake into a single entry point
- Added the legacy 'AppKeepAlive' strategy (SystemAPI + Keyboard). It selects
providers but does not guarantee application activity or broker acceptance.
- Saved profiles no longer use a 'Mode' field (MouseJiggler/KeepAwake); profiles now
simply carry Interval/Duration/MovementPattern/Methods/Strategy/Incognito and are
started with Start-PSMJProfile
Version 1.1.0 (October 2025)
- Added modern tabbed GUI interface with three main tabs:
- Basic Mode: Simple mouse jiggling controls
- Advanced Mode: Multi-method keep-awake configuration
- Quick Launch: Five pre-configured profiles for common scenarios
- Implemented Quick Launch profiles:
- [Mouse] Basic Discrete: Random movements with incognito mode
- [Lock] Maximum Security: Hardware + System API for strict policies
- [Key] Keyboard Only: Non-visual keep-awake method
- [API] System API Only: Minimal resource usage
- [MAX] All Methods: Maximum reliability
- Added advanced keep-awake methods:
- Hardware-level mouse input using SendInput API
- Keyboard input simulation (F15 key presses)
- Direct Windows power management (SetThreadExecutionState API)
- Created Start-KeepAwake function for multi-method keep-awake
- Added -Incognito parameter to Start-PSMouseJiggler and Start-KeepAwake
- Implemented Prevent-SystemIdle, Send-KeyboardInput, and Send-MouseInput functions
- Enhanced GUI with incognito mode support (minimizes window, clears console)
- Fixed emoji encoding issues in GUI (replaced with text labels)
- Improved GUI state management for reopening after console start
- Renamed scheduled task functions with PSMJ prefix (already in v1.0.3)
- Comprehensive documentation updates across all README and USAGE files
- Updated Get-Help comments with new parameters and examples
- Requires .NET Framework 4.7.2+ for P/Invoke features
Version 1.0.4
- Add Incognito Mode feature for discrete operation in GUI and console by @PowerShellYoungTeam in #13
Version 1.0.3
- Renamed scheduled task functions to prevent conflicts with other modules:
- Get-ScheduledTasks → Get-PSMJScheduledTasks
- New-ScheduledTask → New-PSMJScheduledTask
- Remove-ScheduledTask → Remove-PSMJScheduledTask
- Start-ScheduledTask → Start-PSMJScheduledTask
- Stop-ScheduledTask → Stop-PSMJScheduledTask
- Fixed PSScriptAnalyzer warning
- Improved module compatibility with other PowerShell modules
Version 1.0.2
- Added advanced keep-awake methods: combines mouse, keyboard, and system API techniques for reliable anti-idle functionality
- Introduced hardware-level input simulation for broader compatibility with strict power management
- New API functions: Prevent-SystemIdle, Send-KeyboardInput, Send-MouseInput, Start-KeepAwake for custom automation and integration
- Updated GUI layout: supports advanced keep-awake options and method selection
- Enhanced configuration management: improved loading, saving, and updating of user preferences
- Improved scheduled task support for automated jiggling
- Fixed variable naming to avoid PowerShell built-in conflicts
- Minor bug fixes and usability improvements
- Ready for PowerShell Gallery distribution
FileList
- PSMouseJiggler.nuspec
- PSMouseJiggler.psd1
- PSMouseJiggler.psm1
- Private\Export-PSMJTestRun.ps1
- Private\Providers\MouseMovement.ps1
- Private\Providers\SendInputKeyboard.ps1
- Private\Providers\SystemApi.ps1
- Private\Providers\VirtualKey.ps1
- Private\TestRun.ps1
- README.md
- config\default.json
- ui\PSMouseJiggler.xaml