Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Move and Resize the Hosted Cache (Optional)

Published: November 14, 2012

Updated: November 14, 2012

Applies To: Windows 8, Windows 8 Enterprise, Windows 8 Pro, Windows Server 2012



You can use this procedure to move the hosted cache to the drive and folder that you prefer, and to specify the amount of disk space that the hosted cache server can use for the hosted cache.

This procedure is optional. If the default cache location (%windir%\ServiceProfiles\NetworkService\AppData\Local\PeerDistPub) and size – which is 5% of the total hard disk space – are appropriate for your deployment, you do not need to change them.

You must be a member of the Administrators group to perform this procedure.

  1. On the server computer desktop, in the Taskbar, right-click the Windows PowerShell icon, right-click the words Windows PowerShell, and then click Run as Administrator.

    noteNote
    If you have previously run Windows PowerShell as an Administrator on this computer, you do not need to right-click the words Windows PowerShell, because Run as Administrator is present as a right-click menu option.

  2. Windows PowerShell opens. Type the following command to move the hosted cache to another location on the local computer, and then press ENTER.

    ImportantImportant
    Before running the following command, replace parameter values, such as –Path and –MoveTo, with values that are appropriate for your deployment.

    Set-BCCache -Path C:\datacache –MoveTo D:\datacache
    
  3. Type the following command to resize the hosted cache –specifically the datacache - on the local computer. Press ENTER.

    ImportantImportant
    Before running the following command, replace parameter values, such as -Percentage, with values that are appropriate for your deployment.

    Set-BCCache -Percentage 20
    
  4. To verify the hosted cache server configuration, type the following command and press ENTER.

    Get-BCStatus
    

    The results of the command display status for all aspects of your BranchCache installation. Following are a few of the BranchCache settings and the correct value for each item:

    • DataCache | CacheFileDirectoryPath: Displays the hard disk location that matches the value you provided with the –MoveTo parameter of the SetBCCache command. For example, if you provided the value D:\datacache, that value is displayed in the command output.

    • DataCache | MaxCacheSizeAsPercentageOfDiskVolume: Displays the number that matches the value you provided with the –Percentage parameter of the SetBCCache command. For example, if you provided the value 20, that value is displayed in the command output.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.