Skip to content

Unable to find type [Privileges] #13

Description

@jmbreuer

I'm trying to use PoshPrivilege on Windows 10 (22H2, 10.0.19045), PowerShell 7.6.3 (since I need a working Set-Acl -LiteralPath in conjunction with this, the shipped PS 5.1 is not an option).

After installing via Install-Module -Name PoshPrivilege, when trying to run any of the provided commands, I get (for example):

PS> Get-Privilege
InvalidOperation: \\local.domain\DFS\User$\Home\...\PowerShell\Modules\PoshPrivilege\0.3.0.0\Scripts\Get-Privilege.ps1:101
Line |
 101 |          [Privileges[]]$Privilege,
     |          ~~~~~~~~~~~~~~
     | Unable to find type [Privileges].

What am I missing to make this work?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions