PrepAway - Latest Free Exam Questions & Answers

Which cmdlet should you run next?

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.
You generate hashes for the file shares on Server1.
Which cmdlet should you run next?

PrepAway - Latest Free Exam Questions & Answers

A.
Add-BCDataCacheExtension

B.
Set-BCCache

C.
Publish-BCFileContent

D.
Export-BCCachePackage

Explanation:
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 Publish-BCFileContent 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 Import-BCCachePackage command.

4 Comments on “Which cmdlet should you run next?

  1. pikapoka says:

    I think the answer is D – Export-BCCachePackage.

    Export-BCCachePackage: https://technet.microsoft.com/itpro/powershell/windows/branchcache/export-bccachepackage

    Example 1: Export content
    PS C:\> Export-BCDataPackage -Destination “D:\temp”
    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.

    As seen in the example …” command exports all content that has been hashed by using the Publish-BCFileContent…”
    In the Q it is said: “You generate hashes for the file shares on Server1. Which cmdlet should you run next?”
    The way I understand this is :
    1st Publish-BCFileContent to hash the content <– done in our case already
    2nd Export-BCCachePackage <– our next step according to the Q.

    Am I right? Any suggestions/comments/remarks?




    1



    0
  2. Rwing says:

    To verify that the local server has been configured as a hosted cache server, use the
    Get-BCStatus cmdlet.

    At this point, it’s advisable to preload the web or file content information from Branch-
    Cache-enabled web and file servers to your hosted cache server or servers. To do so, you first have to generate hashes of the content to stage the data on each content server, then export the staged data into a package, and then import the package on each hosted cache server. You perform these three steps by using Windows PowerShell:

    1- For each folder and file you want to preload, on each content server, first generate
    hashes to stage the data for export by running either the Publish-BCFileContent or the
    Publish-BCWebContent cmdlet (depending on whether the BranchCache content is file
    content or web content).

    2- After you’ve generated hashes to stage the data, you need to produce a package of
    this staged data by using the Export-BCCachePackage cmdlet.

    3- Transfer the package to the hosted cache server by using the method of your choice.
    Then, import the data package file on the hosted cache server. To do so, use the
    Import-BCCachePackage cmdlet.

    So, the answer ís (C) Publish-BCFileContent because de right order.




    0



    0
    1. Rwing says:

      Sorry, the correct answer is D
      Because the question says: “You generate hashes for the file shares on Server1”, so we should go to second step: Export-BCCachePackage cmdlet.




      1



      0
  3. John says:

    Answer is D the question states “You generate hashes for the file shares on Server1” looking at the TechNet article for
    BranchCache Cmdlets in Windows PowerShell
    https://technet.microsoft.com/itpro/powershell/windows/branchcache/branchcache

    The Publish-BCFileContent cmdlet generates hashes, also called content information, for files in shared folders on file servers

    So you have already done that

    The Export-BCCachePackage cmdlet exports a cache package that contains all content that has been hashed by using the Publish-BCFileContent and Publish-BCWebContent cmdlets.

    it is of worth to note however that the TechNet example uses Export-BCDataPackage which I could find no other reference to….




    1



    0

Leave a Reply