microsoft / microsoft/MSLab

Suggestion - Add a way for checking the User Rights

Open
#489 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1.3k
Forks
304
PR merge metrics
No merged PRs in 30d

Description

Really cool work here!
I found a possible enhancement. My VM host had a hardening to User Right and local administrator didnt get the "Manage auditing and security log" (Only DA do) and this give access error (A required privilege is not held by the client. (Exception from HRESULT: 0x80070522)) at the "Applying image to VHDX" part. Maybe checking User Rights at the begining of the 2_createParentDisks.ps1

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 by reading 2_createParentDisks.ps1, especially the beginning and the "Applying image to VHDX" stage. Trace how the script currently surfaces the privilege error, then define the early user-rights check and its failure message. Done means a missing "Manage auditing and security log" right is identified before image application begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.