*PowerShell バージョン *bat wsh の次 *拡張子 ps1 !PowerShell の UI *CUI powershell.exe *GUI powershell_ise.exe !実行ポリシーの変更 *PowerShell ISE を管理者権限で実行 PS C:\Windows\system32> get-executionpolicy Restricted PS C:\Windows\system32> set-executionpolicy remotesigned PS C:\Windows\system32> get-executionpolicy RemoteSigned *ExecutionPolicy を Restricted から RemoteSigned に変更した。 !!!参考サイト !Windows PowerShell コマンドレットのタスク別ガイド / Microsoft スクリプトセンター *http://technet.microsoft.com/ja-jp/scriptcenter/dd772285.aspx !PowerShell 関連 / アプ研 *http://www.upken.jp/kb/tag/PowerShell !スクリプトファイルの場所 / PowerShell log *http://kawasaki-shingo-ps.blog.so-net.ne.jp/archive/20081221 ""結論を先に述べてしまうと、自ファイルの場所の取得には次のような記述が便利です。これで変数 myd に実行中のスクリプトファイルの場所が取得できます。 $myd = & { Split-Path $myInvocation.ScriptName } !Windows PowerShellの勉強その4 / 徒然なるままに *http://norimaki2000.blog48.fc2.com/blog-entry-847.html ""日付や時刻を取得して、それをファイル名にするための方法は?。 ""それは-formatオプションで指定できる。 PS C:\> get-date -format yyyyMMdd 20090920