about_PowerShell_Ise_exe

簡単な説明

PowerShell_Ise.exe コマンドライン ツールの使用方法について説明します。

詳細な説明

PowerShell_Ise.exeは、Windows PowerShell Integrated Scripting Environment (I Standard Edition) セッションを開始します。 Cmd.exeと Windows PowerShell で実行できます。

PowerShell_I Standard Edition.exeを実行するには、「PowerShell_I Standard Edition.exe、PowerShell_I Standard Edition、または I Standard Edition」と入力します。

構文

PowerShell_Ise[.exe]
PowerShell_ISE[.exe]
ISE[.exe]
[-File]<FilePath[]> [-NoProfile] [-MTA]
-Help | ? | -? | /? Displays the syntax and describes the command-line switches.

パラメーター

-File

Windows PowerShell I Standard Edition で指定したファイルを開きます。 パラメーター名 ("-File") は省略可能です。 複数のファイルを一覧表示するには、引用符で囲まれた 1 つのテキスト文字列を入力します。 コンマを使用して、文字列内のファイル名を区切ります。

次に例を示します。

PowerShell_I Standard Edition -File "File1.ps1,File2.ps1,File3.xml"。

ファイル名の間のスペースは Windows PowerShell で許可されますが、Cmd.exeなどの他のプログラムでは正しく解釈されない場合があります。

このパラメーターを使用すると、Windows PowerShell スクリプト ファイルや XML ファイルなど、任意のテキスト ファイルを開くことができます。

-Mta

マルチスレッド アパートメントを使用して Windows PowerShell I Standard Edition を起動します。 このパラメーターは、Windows PowerShell 3.0 で導入されました。 シングル スレッド アパートメント (STA) が既定です。

-NoProfile

Windows PowerShell プロファイルは実行しません。 既定では、Windows PowerShell プロファイルはすべてのセッションで実行されます。

このパラメーターは、異なるプロファイルを持つシステムで実行される関数やスクリプトなどの共有コンテンツを記述する場合に推奨されます。 詳細については、「about_Profiles」を参照してください。

-ヘルプ-。/。

PowerShell_I Standard Edition.exeのヘルプを表示します。

これらのコマンドは、Windows PowerShell I Standard Edition を起動します。 コマンドは等価であり、同じ意味で使用することができます。

PS C:> PowerShell_ISE.exe
PS C:> PowerShell_ISE
PS C:> ISE

これらのコマンドは、Windows PowerShell I Standard Edition で Get-Profile.ps1 スクリプトを開きます。 コマンドは等価であり、同じ意味で使用することができます。

PS C:> PowerShell_ISE.exe -File .\Get-Profile.ps1
PS C:> ISE -File .\Get-Profile.ps1
PS C:> ISE .\Get-Profile.ps1

このコマンドを実行すると、Windows PowerShell I Standard Edition で Get-Backups.ps1 スクリプトと Get-BackupInstance.ps1 スクリプトが開きます。 複数のファイルを開くには、コンマを使用してファイル名を区切り、ファイル名の値全体を引用符で囲みます。

PS C:> ISE -File ".\Get-Backups.ps1,Get-BackupInstance.ps1"

このコマンドは、プロファイルなしで Windows PowerShell I Standard Edition を起動します。

PS C:> ISE -NoProfile

このコマンドは、PowerShell_I Standard Edition.exeのヘルプを取得します。

PS C:> ISE -help

関連項目