microsoft / MSLab

Azure Stack HCI, Windows 10 and Windows Server rapid lab deployment scripts
MIT License
1.18k stars 285 forks source link

Suggestion - Add a way for checking the User Rights #489

Open Mrkuff opened 2 years ago

Mrkuff commented 2 years ago

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

jaromirk commented 2 years ago

good idea! @machv want to take a look?