The "PureInvoke" module is a wrapper around Win32 APIs. It attempts to hide the complexities of such calls from callers. The majority of its implementation is in pure PowerShell with a minimum amount in a compiled .NET assembly.
- Windows PowerShell 5.1 and .NET 4.6.1+
- PowerShell 6+ on Windows
To install globally:
Install-Module -Name 'PureInvoke'
Import-Module -Name 'PureInvoke'To install privately:
Save-Module -Name 'PureInvoke' -Path '.'
Import-Module -Name '.\PureInvoke'Although some of the module's code is compiled into a .NET assembly, the assembly's types and implementation should be considered private and not used. Only the exported PowerShell functions from this module are considered public.
LookupAccountName:Invoke-AdvApiLookupAccountNameLookupAccountSid:Invoke-AdvApiLookupAccountSidLsaAddAccountRights:Invoke-AdvApiLsaAddAccountRightsLsaClose:Invoke-AdvApiLsaCloseLsaEnumerateAccountRights:Invoke-AdvApiLsaEnumerateAccountRightsLsaFreeMemory:Invoke-AdvApiLsaFreeMemoryLsaNtStatusToWinError:Invoke-AdvApiLsaNtStatusToWinErrorLsaOpenPolicy:Invoke-AdvApiLsaOpenPolicyLsaRemoveAccountRights:Invoke-AdvApiLsaRemoveAccountRights
Invoke-KernelFindFileNameInvoke-KernelGetVolumePathName