Question
How start a function with Run as Administrator option ?

For example, the following function starts PowerShell with the Run as Administrator option.

function Start-PSAdmin {Start-Process PowerShell -Verb RunAs}


To use the function, type: Start-PSAdmin

Question
How start a function with Run as Administrator option ?
?

Question
How start a function with Run as Administrator option ?

For example, the following function starts PowerShell with the Run as Administrator option.

function Start-PSAdmin {Start-Process PowerShell -Verb RunAs}


To use the function, type: Start-PSAdmin

If you want to change selection, open document below and click on "Move attachment"

ctions_Advanced_Parameters . Simple Functions Functions do not have to be complicated to be useful. The simplest functions have the following format: function <function-name> {statements} <span>For example, the following function starts PowerShell with the Run as Administrator option. function Start-PSAdmin {Start-Process PowerShell -Verb RunAs} To use the function, type: Start-PSAdmin To add statements to the function, type each statement on a separate line, or use a semi-colon ; to separate the statements. For example, the following function finds all .jpg files in

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions