PowerShell / PowerShell/PSResourceGet

Verify integrity of already installed resources

Open
#1,646 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Install feature_request
Dominant language
C#
Stars
576
Forks
114
Avg merge
1d 2h
Merged PRs (30d)
7

Description

Summary of the new feature / enhancement

Would be cool with the ability to verify the integrity of already installed resources, also if they aren't signed. As in, make sure no changes has been made to the <ModuleName>\<ModuleVersion> directory and all its' content.

Proposed technical implementation details (optional)

Cmdlet:

  • On scope: Verify-PSResource -Name '<name>' -Version '<version>' -Scope '<AllUsers|CurrentUser>'
  • With path: Verify-PSResource -Path 'C:\some\path\<ModuleName>\<ModuleVersion>'

Options/logic:

  • Create some comparison logic that checks that all files are present (and no other files are added) with correct checksum?
  • If any file is changed, added or is missing, nuke the directory and install it fresh with a switch -Remediate.
  • If no PS info XML file is found, require parameter -Repository to be specified in the cmdlet.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the proposed Verify-PSResource cmdlet entry point and review how installed resources and their <ModuleVersion> directories are represented. Define verification for missing, added, or changed files, including the unsigned-resource and -Repository cases; done means the command reports integrity and -Remediate reinstalls when requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.