A PowerShell module consisting of an assortment of useful scripts.
- PowerShell 3.0 (or later)
Some functions require a later PowerShell version
The module is published to the PowerShell Gallery:
Install-Module -Name PSWinGlue
Download the ZIP file of the latest release and unpack it to one of the following locations:
- Current user:
C:\Users\<your.account>\Documents\WindowsPowerShell\Modules\PSWinGlue
- All users:
C:\Program Files\WindowsPowerShell\Modules\PSWinGlue
You can also clone the repository into one of the above locations if you'd like the ability to easily update it via Git.
You can check that PowerShell is able to locate the module by running the following at a PowerShell prompt:
Get-Module PSWinGlue -ListAvailable
This module has been written to support two methods of using the functions it includes:
- As a regular PowerShell module (i.e. install module and call the commands it exports)
- Calling individual functions directly via their script file independent of the module
To support the latter, each exported function resides in its own script file and has no dependencies on code elsewhere in the module. This allows for easy usage of the functions in scenarios where it may not be desirable to install the entire module (e.g. logon scripts or in other automated contexts). A given script can simply be copied to the desired location and directly called, typically with no additional setup beyond any documented external dependencies.
Adds a VPN connection using the VPNv2 CSP via the MDM Bridge WMI Provider.
Supported OS(s) | Windows 10 1607 or later |
Minimum PowerShell version | 5.1 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Locates orphan dependency packages in the system package cache.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Check Windows domain GPOs and AGPM server controlled GPOs are in sync.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | GroupPolicy Microsoft.Agpm |
Required 3rd-party software | None |
Retrieves registered fonts.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Retrieves installed programs.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Retrieves events matching the specified IDs from the Task Scheduler event log.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Hides Silverlight updates.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Installs Excel add-ins.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | Microsoft Excel |
Installs a specific font or all fonts from a directory.
Supported OS(s) | Windows |
Minimum PowerShell version | 4.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Install a Visual Studio Tools for Office (VSTO) add-in.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | Microsoft Visual Studio Tools for Office (VSTO) Runtime |
Register the Microsoft Update service with the Windows Update Agent.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Remove common unwanted alternate data streams from files.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Removes orphan dependency packages in the system package cache.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Configures Shared PC Mode using the SharedPC CSP via the MDM Bridge WMI Provider.
Supported OS(s) | Windows 10 1607 or later |
Minimum PowerShell version | 5.1 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Lexically sorts the exported values for each registry key in a Windows Registry export.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Uninstalls a specific font by name.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | None |
Uninstalls obsolete PowerShell modules.
Supported OS(s) | Linux, macOS, Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | PowerShellGet |
Required 3rd-party software | None |
Uninstall a Visual Studio Tools for Office (VSTO) add-in.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | Microsoft Visual Studio Tools for Office (VSTO) Runtime |
Updates a Git repository.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | Git |
Update OneDrive during Windows image creation.
Supported OS(s) | Windows |
Minimum PowerShell version | 3.0 |
Required 3rd-party module(s) | None |
Required 3rd-party software | Microsoft OneDrive |
All content is licensed under the terms of The MIT License.