Skip to content
Provides the Microsoft.Windows.Compatibility Pack to PowerShell Core
PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src/PSCoreWindowsCompat
.gitignore
LICENSE
Module.PSDeploy.ps1
README.md
appveyor.yml
build.ps1
build.psm1
psake.ps1

README.md

PSCoreWindowsCompat

Build status

Provides the Microsoft.Windows.Compatibility Pack to PowerShell Core on Windows. This module does not provide any functions but serves as a convenient way to add the Microsoft.Windows.Compatibility Pack to PowerShell Core. This will only work on windows systems in 64-bit PowerShell Core.

Installation

The PSCoreWindowsCompat Module is available on the PowerShell Gallery

Install-Module PSCoreWindowsCompat -Scope CurrentUser

Quick Start

Install-Module PSCoreWindowsCompat -Scope CurrentUser
Import-Module PSCoreWindowsCompat

# Search AD for the logged in user
$DirectorySearcher = [System.DirectoryServices.DirectorySearcher]"(sAMAccountName=$env:USERNAME)"
$Me = $DirectorySearcher.FindOne()
$Me.Properties['DisplayName']

Result:

Mark Kraus
You can’t perform that action at this time.