I have my main form, and currently it is a PC gathering info tool ( Yet Another PC gathering tool?!), (UG! The "Hello World! of Windows Forms. ) but also have some buttons to build-in windows apps, tools, etc...
So far, it runs all the commands apparently without a problem, or really freezing or locking up.
When I run Windows "System File Checker" it runs the utility and does complete, and ( Good News Does NOT crash my GUI),
but it locks up the whole GUI until SFC completes.
Code: Select all
$picturebox58_Click={
#TODO: Place custom script here
Start-Process -FilePath "${env:Windir}\System32\SFC.EXE" -ArgumentList '/scannow' -Wait -Verb RunAs
}
Any learning, links, direction is greatly appreciated.