Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify integrity of already installed resources #1646

Open
o-l-a-v opened this issue Apr 29, 2024 · 0 comments
Open

Verify integrity of already installed resources #1646

o-l-a-v opened this issue Apr 29, 2024 · 0 comments

Comments

@o-l-a-v
Copy link
Contributor

o-l-a-v commented Apr 29, 2024

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants