Guest User

Untitled

a guest
Jun 25th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <Extensions>
  2. <desktop:Extension Category="windows.fullTrustProcess" Executable="powershell.exe">
  3.  
  4. <desktop:ParameterGroup GroupId="RestartPC" Parameters="Restart-Computer"/>
  5.  
  6. string commandID = "RestartPC";
  7.  
  8. IAsyncAction operation = FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync(commandID);
Add Comment
Please, Sign In to add comment