├── .gitattributes ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── CHANGELOG.md ├── LICENSE ├── PSPrivilege.build.ps1 ├── README.md ├── ScriptAnalyzerSettings.psd1 ├── docs └── en-US │ ├── Add-WindowsRight.md │ ├── Clear-WindowsRight.md │ ├── Disable-ProcessPrivilege.md │ ├── Enable-ProcessPrivilege.md │ ├── Get-ProcessPrivilege.md │ ├── Get-WindowsRight.md │ ├── PSPrivilege.md │ ├── Remove-ProcessPrivilege.md │ ├── Remove-WindowsRight.md │ └── about_PSPrivilege.md ├── module ├── PSPrivilege.Format.ps1xml ├── PSPrivilege.psd1 └── PSPrivilege.psm1 ├── requirements-dev.psd1 ├── src ├── Commands │ ├── ProcessPrivilege.cs │ └── WindowsRight.cs ├── Lsa.cs ├── Native │ ├── Advapi32.cs │ └── Kernel32.cs └── PSPrivilege.csproj ├── tests ├── Add-WindowsRight.Tests.ps1 ├── Clear-WindowsRight.Tests.ps1 ├── Disable-ProcessPrivilege.Tests.ps1 ├── Enable-ProcessPrivilege.Tests.ps1 ├── Get-ProcessPrivilege.Tests.ps1 ├── Get-WindowsRight.Tests.ps1 ├── Remove-ProcessPrivilege.Tests.ps1 ├── Remove-WindowsRight.Tests.ps1 └── common.ps1 └── tools └── PesterTest.ps1 /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/LICENSE -------------------------------------------------------------------------------- /PSPrivilege.build.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/PSPrivilege.build.ps1 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/README.md -------------------------------------------------------------------------------- /ScriptAnalyzerSettings.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/ScriptAnalyzerSettings.psd1 -------------------------------------------------------------------------------- /docs/en-US/Add-WindowsRight.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/Add-WindowsRight.md -------------------------------------------------------------------------------- /docs/en-US/Clear-WindowsRight.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/Clear-WindowsRight.md -------------------------------------------------------------------------------- /docs/en-US/Disable-ProcessPrivilege.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/Disable-ProcessPrivilege.md -------------------------------------------------------------------------------- /docs/en-US/Enable-ProcessPrivilege.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/Enable-ProcessPrivilege.md -------------------------------------------------------------------------------- /docs/en-US/Get-ProcessPrivilege.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/Get-ProcessPrivilege.md -------------------------------------------------------------------------------- /docs/en-US/Get-WindowsRight.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/Get-WindowsRight.md -------------------------------------------------------------------------------- /docs/en-US/PSPrivilege.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/PSPrivilege.md -------------------------------------------------------------------------------- /docs/en-US/Remove-ProcessPrivilege.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/Remove-ProcessPrivilege.md -------------------------------------------------------------------------------- /docs/en-US/Remove-WindowsRight.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/Remove-WindowsRight.md -------------------------------------------------------------------------------- /docs/en-US/about_PSPrivilege.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/docs/en-US/about_PSPrivilege.md -------------------------------------------------------------------------------- /module/PSPrivilege.Format.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/module/PSPrivilege.Format.ps1xml -------------------------------------------------------------------------------- /module/PSPrivilege.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/module/PSPrivilege.psd1 -------------------------------------------------------------------------------- /module/PSPrivilege.psm1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/module/PSPrivilege.psm1 -------------------------------------------------------------------------------- /requirements-dev.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/requirements-dev.psd1 -------------------------------------------------------------------------------- /src/Commands/ProcessPrivilege.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/src/Commands/ProcessPrivilege.cs -------------------------------------------------------------------------------- /src/Commands/WindowsRight.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/src/Commands/WindowsRight.cs -------------------------------------------------------------------------------- /src/Lsa.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/src/Lsa.cs -------------------------------------------------------------------------------- /src/Native/Advapi32.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/src/Native/Advapi32.cs -------------------------------------------------------------------------------- /src/Native/Kernel32.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/src/Native/Kernel32.cs -------------------------------------------------------------------------------- /src/PSPrivilege.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/src/PSPrivilege.csproj -------------------------------------------------------------------------------- /tests/Add-WindowsRight.Tests.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/Add-WindowsRight.Tests.ps1 -------------------------------------------------------------------------------- /tests/Clear-WindowsRight.Tests.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/Clear-WindowsRight.Tests.ps1 -------------------------------------------------------------------------------- /tests/Disable-ProcessPrivilege.Tests.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/Disable-ProcessPrivilege.Tests.ps1 -------------------------------------------------------------------------------- /tests/Enable-ProcessPrivilege.Tests.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/Enable-ProcessPrivilege.Tests.ps1 -------------------------------------------------------------------------------- /tests/Get-ProcessPrivilege.Tests.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/Get-ProcessPrivilege.Tests.ps1 -------------------------------------------------------------------------------- /tests/Get-WindowsRight.Tests.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/Get-WindowsRight.Tests.ps1 -------------------------------------------------------------------------------- /tests/Remove-ProcessPrivilege.Tests.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/Remove-ProcessPrivilege.Tests.ps1 -------------------------------------------------------------------------------- /tests/Remove-WindowsRight.Tests.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/Remove-WindowsRight.Tests.ps1 -------------------------------------------------------------------------------- /tests/common.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tests/common.ps1 -------------------------------------------------------------------------------- /tools/PesterTest.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/PSPrivilege/HEAD/tools/PesterTest.ps1 --------------------------------------------------------------------------------