PowerShellでPowerShell管理者として実行(A)!

by ちあき 25. 10月 2009 09:01


$strTitle = "`$Host.UI.RawUI.WindowTitle='こんにちは!管理者です!!'"
Start-Process "$psHome\powershell.exe" -ArgumentList "-noexit $strTitle" -Verb Runas

▼ Bing検索結果
powershell シェル変数 - Bing ←$Hostと$psHome
powershell Start-Process - Bing ←"-Verb Runas"で管理者として実行(A)

最新のブログ

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

コメント

コメントを書く


 

  Country flag

biuquoteredbluegreenyellowPowerShellTextFile
  • コメント
  • プレビュー
Loading



Calendar

<<  3月 2010  >>
月曜火曜水曜木曜金曜土曜日曜
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010 PowerShell from Japan!!