-
Notifications
You must be signed in to change notification settings - Fork 40
fix hw_report.ps1, add hw_report.cmd pl_PL.h lang. translate. #75
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
Conversation
- Force Large ProcessStartInfo + StandardOutputEncoding = UTF8 - Never mix Encoding Default with UTF8 - Windows Forms TextBox accepts and displays Unicode correctly - Remove manual encoding conversions - be sure WinAPI.Window is loaded before Add-Type
Run hw_report.cmd to properly invoke the PS script with admin rights.
a1ive
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please preserve the original indentation format.
a1ive
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PowerShell script already includes logic to automatically run with administrator privileges, so adding an extra batch file is unnecessary.
Lines 8 to 11 in 2a3e5ad
| if (!([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList "-File `"$($MyInvocation.MyCommand.Path)`" `"$($MyInvocation.MyCommand.UnboundArguments)`"" | |
| Exit | |
| } |
|
@a1ive done |
|
Thanks! |

Changes in
hw_report.ps1hw_report.cmdRun hw_report.cmd to properly invoke the PS script with admin rights.pl_PL.h- translate GUI to Polish language.