Your company has a main office and a branch office.
The main office contains a file server named Server1. Server1 has the BranchCache for Network Files
role service installed. The branch office contains a server named Server2. Server2 is configured as a
BranchCache hosted cache server.
You need to preload the data from the file shares on Server1 to the cache on Server2.
What should you run first?
A.
Publish-BCFileContent
B.
Add- BCDataCacheExtension
C.
Set-BCCache
D.
Export-BCCachePackage
Explanation:
See step 2 below.
To prehash content and preload the content on hosted cache servers
Log on to the file or Web server that contains the data that you wish to preload, and identify the
folders and files that you wish to load on one or more remote hosted cache servers.
Run Windows PowerShell as an Administrator. For each folder and file, run either the PublishBCFileContent command or the Publish-BCWebContent command, depending on the type of content
server, to trigger hash generation and to add data to a data package.
After all the data has been added to the data package, export it by using the Export-BCCachePackage
command to produce a data package file.
Move the data package file to the remote hosted cache servers by using your choice of file transfer
technology. FTP, SMB, HTTP, DVD and portable hard disks are all viable transports.Import the data package file on the remote hosted cache servers by using the ImportBCCachePackage command.
Prehashing and Preloading Content on Hosted Cache Servers (Optional)
It is: between A & D
You should run the Publich-BCFileContent (A) first.
Then you can run the Export-BCCachePackage
https://technet.microsoft.com/en-us/library/jj572970.aspx
Publish-BCFileContent -StageData
Specifies that the data should be saved to a staging area for future export using the Export-BCCachePackage cmdlet. Use this parameter if a data package for export is being created.
If this parameter in not specified, then hashes are generated for data, but the data is not prepared for export.
The Publish-BCFileContent cmdlet generates hashes, also called content information, for files in shared folders on file servers that have BranchCache enabled and the BranchCache for Network Files role service installed.
This cmdlet is also used to stage data for the creation of a data preloading package. Run this cmdlet with the StageData parameter on one or more collections of files, then call the Export-BCCachePackage cmdlet to produce a data package containing all the staged data. This data package can be imported on remote hosted cache computers.
https://technet.microsoft.com/en-us/library/hh848412(v=wps.630).aspx
Sanan says:
March 25, 2016 at 4:42 pm
Publish-BCFileContent -StageData
Specifies that the data should be saved to a staging area for future export using the Export-BCCachePackage cmdlet. Use this parameter if a data package for export is being created.
If this parameter in not specified, then hashes are generated for data, but the data is not prepared for export.
Detailed Description:
The Publish-BCFileContent cmdlet generates hashes, also called content information, for files in shared folders on file servers that have BranchCache enabled and the BranchCache for Network Files role service installed.
This cmdlet is also used to stage data for the creation of a data preloading package. Run this cmdlet with the StageData parameter on one or more collections of files, then call the Export-BCCachePackage cmdlet to produce a data package containing all the staged data. This data package can be imported on remote hosted cache computers.
https://technet.microsoft.com/en-us/library/hh848412(v=wps.630).aspx
It is not D. It is A. To prelaod the data from the file share. It didn’t ask for exporting.
PS C:\> Publish-BCFileContent -Path D:\share -StageData
This command exports all content that has been hashed by using the Publish-BCFileContent and Publish-BCWebContent cmdlets. The command exports the package that contains this data to D:\temp.
PS C:\> Export-BCDataPackage -Destination “D:\temp”
The issue is in the used syntax to hash the data:
This command only generates hashes and nothing more:
PS C:\> Publish-BCFileContent -Path D:\share
In this case the answer is indeed A
This command generates hashes AND prestages the data:
PS C:\> Publish-BCFileContent -Path D:\share -StageData
In this case the answer would have been D