https://github.com/powershell/windowscompatibility
Module that allows Windows PowerShell Modules to be used from PSCore6
https://github.com/powershell/windowscompatibility
Last synced: about 1 month ago
JSON representation
Module that allows Windows PowerShell Modules to be used from PSCore6
- Host: GitHub
- URL: https://github.com/powershell/windowscompatibility
- Owner: PowerShell
- License: other
- Archived: true
- Created: 2017-12-01T22:32:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-09T02:08:33.000Z (about 5 years ago)
- Last Synced: 2025-01-21T12:35:55.925Z (10 months ago)
- Language: PowerShell
- Homepage:
- Size: 98.6 KB
- Stars: 139
- Watchers: 20
- Forks: 33
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Windows PowerShell Compatibility
This module provides PowerShell Core 6 compatibility with existing Windows PowerShell scripts and modules by:
- Enable adding the Windows PowerShell PSModulePath
- Note that some Windows PowerShell modules (like CDXML based) will work fine with PowerShell Core 6, but others may not be fully compatible
- Enable using implicit remoting to utilize Windows PowerShell cmdlets from PowerShell Core 6 for modules that are not compatible directly
## PowerShell 7
Note that there is a planned [feature](https://github.com/PowerShell/PowerShell-RFC/pull/226) in PowerShell 7 to include
the capabilities of this module as part of the engine making this module unnecessary for PowerShell 7.
Please review that RFC and add your feedback.
## Installation
The WindowsCompatibility Module is available in the [PowerShell Gallery][PSGallery].
To install the module, run the following from PowerShell:
```powershell
Install-Module WindowsCompatibility -Scope CurrentUser
```
[PSGallery]: https://www.powershellgallery.com/packages/WindowsCompatibility/
## Quick Start
Viewing the local computer's Event Log from PowerShell Core:
```powershell
Import-WinModule Microsoft.PowerShell.Management
Get-EventLog -Newest 5 -LogName "Application"
```
View the Event Log on a remote computer from PowerShell Core:
```powershell
$Credential = Get-Credential
Initialize-WinSession -ComputerName SQLSERVER01 -Credential $Credential
Import-WinModule Microsoft.PowerShell.Management
Get-EventLog -Newest 5 -LogName "Application"
```
View more in the [Quick Start Guide][QuickStart].
[QuickStart]: ./docs/QuickStart.md
## Documentation
The project documentation is located in the [docs][ProjectDocs] directory.
[ProjectDocs]: ./docs/
## Maintainers
- Mark Kraus ([markekraus](https://github.com/markekraus))
- Steve Lee ([stevel-msft](https://github.com/stevel-msft))
- Bruce Payette ([brucepay](https://github.com/brucepay))