Date and Month display

To Take DLL backup & Audience compilation and Flush Blob Cache

=====************To Take DLL backup============Start***GAC/ DLL backup*****************************************************************
1-->Open the Command Prompt and Type :
        # Here C:\GacDump is a folder in your local machine for all GAC/DLL backup
2-->cd  c:\windows\assembly\GAC_MSIL

3-->xcopy . C:\GacDump /s /y

4. You will get entire DLL backup in your local

=====************============End***GAC/ DLL backup**************************************************************************************

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=====************============Start***Audiance Compilation Powershell Script==========***************************************************


Add-PSSnapin Microsoft.SharePoint.Powershell  -EV Err  -EA "SilentlyContinue"

$runjob=[Microsoft.Office.Server.Audience.AudienceJob]::RunAudienceJob($args);

#Get the Application ID of the respective User Profile Service Application

#For e.g., f4c2b7e2-ce7b-465d-868f-66164af37013

#To stop Audiance Profile, execute:

Audiencejob.exe f4c2b7e2-ce7b-465d-868f-66164af37013 0

#Note: Application ID and 0 or 1 indicates Stop or Start

#After we successfully stopped the audience job we then started a full compilation executing following

Audiencejob.exe f4c2b7e2-ce7b-465d-868f-66164af37013 1

#Once we execute the above command the audiences will compile successfully

=====************============End***Audience Compilation Powershell Script==========***************************************************


|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


=====************============Start***FlushBlobCache @ Web Application Level==========**************************************************

Add-PSSnapin Microsoft.SharePoint.Powershell  -EV Err  -EA "SilentlyContinue"

$webApp = Get-SPWebApplication "https://ms.contoso.net"
[Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp)
Write-Host "Flushed the BLOB cache for:" $webApp


=====************============End***FlushBlobCache @ Web Application Level==========****************************************************

No comments:

Post a Comment