Publish-BCWebContent
Publish-BCWebContent
Creates hashes for web content when deploying content servers that are running Windows Server® 8 Beta with the Web Services (IIS) server role installed.
構文
Parameter Set: Publish_BCWebHashes13
Publish-BCWebContent [-Path] <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-Force] [-Recurse] [-ReferenceFile <String> ] [-StageData] [-StagingPath <String> ] [-ThrottleLimit <Int32> ] [-UseVersion <UInt32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Publish-BCWebContent cmdlet creates hashes for web content when content servers are deployed running Windows Server® 2012 with the Web Services (IIS) server role installed. In addition, the web server must be configured as a BranchCache content server by installing the BranchCache feature.
パラメーター
-AsJob
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-CimSession<CimSession[]>
リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。
エイリアス |
Session |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Force
Runs the cmdlet without prompting for confirmation. By default the cmdlet asks for confirmation from the user before proceeding.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Path<String[]>
Specifies the file path, or the path to a directory containing files, that will be hashed.
エイリアス |
なし |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-Recurse
Specifies that hashes are created for content in subfolders. If this parameter is not used, then hashes are created only for content in the top folder; no hashes are created for content in subfolders..
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ReferenceFile<String>
Specifies a reference file from a previous run.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StageData
Specifies that the hashes should be saved to a staging area for future export. Use this parameter if a data package is created for export. If this parameter is not specified, then hashes are generated for data, but data is not prepared for export.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StagingPath<String>
Specifies the folder location where staging data is stored.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ThrottleLimit<Int32>
このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0
を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UseVersion<UInt32>
Specifies the version of the BranchCache hashing scheme to use. If the specified version is 1
, then the content information is generated according to the scheme used by clients. If the specified version is 2
, then the content information is generated according to the more efficient hashing scheme used by client computers that are running operating systems later than Windows® 7.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- None
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- None
例
EXAMPLE 1
This example pre-hashes the contents of wwwroot, so that hashes are available as soon as requests are made.
PS C:\> Publish-BCWebContent –Path D:\inetpub\wwwroot -Recurse
EXAMPLE 2
This example adds data to a data package, that can later be exported and preloaded on a remote hosted cache server.
PS C:\> Publish-BCWebContent –Path D:\inetpub\wwwroot -StageData