Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



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

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 ?
Answer
?

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

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"

about_Functions | Microsoft Docs
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

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.