PowerShell Studio 5.4.145
Windows 10 x64 systems
Behind a button I have the following code. How do I run openfiles.exe with an Elevated Prompt (i.e. Admin) ?
$pc = $PCNameBox.Text
$ID = $FileID.Text
$richtextbox_Output.Clear()
$richtextbox_Output.SelectionColor = 'Blue'
$statusbar1.text = 'Closing open file, please wait.'
$results = openfiles /disconnect /ID $ID /s $pc
$richtextbox_Output.appendtext("This file was closed" + " " + $results)
run as Admin?
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.