SkillAgentSearch skills...

PSCoreWindowsCompat

Provides the Microsoft.Windows.Compatibility Pack to PowerShell Core

Install / Use

/learn @markekraus/PSCoreWindowsCompat
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars17
CategoryDevelopment
Updated5y ago
Forks2

Languages

PowerShell

Security Score

75/100

Audited on Mar 24, 2021

No findings