Skip to content

2.0.0

Latest

Choose a tag to compare

@whsdevops whsdevops released this 27 Jul 21:38
d6e9e4e

Upgrade Instructions

  • Replace usages of Invoke-AdvApiLookupPrivilegeName function's LUID parameter with the new LuidLowPart and
    LuidHighPart parameters.
  • Remove usages of the Invoke-AdvApiLsaOpenPolicy function's ObjectAttribute parameter. Its not used by the
    LsaOpenPolicy function.
  • Minimum .NET version is now 4.6.

Added

  • LuidLowPart and LuidHighPart parameters to the Invoke-AdvApiLookupPrivilegeName function.
  • Invoke-AdvApiOpenSCManager function for calling the advapi32.dll library's OpenSCManager function.
  • Invoke-AdvApiCloseServiceHandle function for calling the advapi32.dll library's CloseServiceHandle function.
  • Invoke-AdvApiOpenService function for calling the advapi32.dll library's OpenService function.
  • Invoke-AdvApiQueryServiceConfig function for calling the advapi32.dll library's QueryServiceconfig function.
  • Invoke-AdvApiQueryServiceConfig2 function for calling the advapi32.dll library's QueryServiceconfig2 function.
  • Invoke-AdvApiQueryServiceObjectSecurity function for calling the advapi32.dll library's QueryServiceObjectSecurity
    function.
  • Invoke-AdvApiSetServiceObjectSecurity function for calling the advapi32.dll library's SetServiceObjectSecurity
    function.
  • Invoke-KernelGetNumaHighestNodeNumber function for calling the kernel32.dll library's GetNumaHighestNodeNumber
    function.

Changed

PureInvoke now uses Add-Type to compile its P/Invoke C# code at runtime instead of using a pre-compiled assembly.
Internally, uses dynamic type names to prevent type collisions if different versions of PureInvoke are loaded. Types are
only compiled when needed.

Fixed

PureInvoke can fail to import if a version of PureInvoke is loaded that has a different pre-compiled assembly.

Removed

  • The Invoke-AdvApiLookupPrivilegeName function's LUID parameter. Use the new LuidLowPart and LuidHighPart
    parameters.
  • The Invoke-AdvApiLsaOpenPolicy function's ObjectAttribute parameter.