---
title: "SIFをリモートで実行"
slug: "run-sif-remotely"
abstract: ""
---
# SIFをリモートで実行

PowerShell RemotingはリモートコンピュータでSIF設定を実行できます。

## Enable PowerShell remoting

PowerShellリモートを有効にするには:

-   リモートコンピュータで、PowerShellコマンドラインで Enable-PSRemoting コマンドレットを実行します。

> !注インストールを完了するユーザーに対してPowerShellリモートを有効にし、そのユーザーはインストールを実行するための管理者権限を持っている必要があります。リモートアクセスのためのコンピュータの安全確保や設定の詳細については、[Microsoftのドキュメント](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-6)をご覧ください。
> 
> SIFはSSLを使ってリモートPowerShellセッションを作成します。Windowsリモート管理(WinRM)をHTTPS上で動作させるように設定する必要があります。詳細は[Microsoftサポート](https://support.microsoft.com/en-us/help/2019527/how-to-configure-winrm-for-https)をご覧ください。

## リモートインストールを開始する

リモート展開を開始するには:

1.  リモートのパソコンにSIFをインストールしてください。
    
2.  PowerShellコマンドラインで、新しいリモートセッションを作成します:
    
    $session = New-PSSession -ComputerName <RemoteComputerName>
    
3.  必要なすべてのパッケージとSIF設定ファイルをリモートコンピュータにコピーするには、パスを指定し、次のコマンドレットを実行します:
    
    Copy-Item -Path <sourcefile> -Destination -<remotePath> -ToSession $session
    
4.  インストールを開始するには、以下のコマンドレットを実行してください:
    
    $session = New-PSSession -ComputerName <RemoteComputerName>
    
    Invoke-Command -Session $session { Import-Module SitecoreInstallFramework }
    
    Invoke-Command -Session $session { Install-SitecoreConfiguration -Path <configurationpath> }
    

> !注Invoke-Commandコマンドレットの詳細については、[PowerShellドキュメント](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/invoke-command?view=powershell-6)をご覧ください。