programming4us
programming4us
WEBSITE

Sharepoint 2013 : Farm Management - Remove a Managed Path, Merge Log Files, End the Current Log File

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

Remove a Managed Path


Scenario/Problem: You need to delete a managed path from a specific web application on your SharePoint farm.


Solution: Use the Remove-SPManagedPath cmdlet.

Using the Remove-SPManagedPath cmdlet enables you to remove a managed path from the specified web application, as shown in Listing 1.

Listing 1. Removing a Managed Path


Remove-SPManagedPath -Identity "departments"
-WebApplication "SharePoint - 80"



Tip

You may also remove a managed path using the HostHeader parameter instead of the WebApplication parameter. Remove-SPManagedPath has two parameter sets for this purpose.


The Identity parameter is simply the name of the relative URL used to generate the managed path, which becomes the name of the managed path. Use the Get-SPManagedPath cmdlet to review the names.

Merge Log Files


Scenario/Problem: You need to trace an issue but don’t want to have to review the logs on each server in the farm.


Solution: Use the Merge-SPLogFile cmdlet.

The Merge-SPLogFile cmdlet is a wonderful process that consolidates the logs from all servers in the farm into one log file. This makes tracing and finding issues easier. Listing 2 shows a sample command line.

Listing 2. Merging Log Files


Merge-SPLogFile -Path E:\Logs\MergedLog.log -StartTime "1/19/2013"
-Overwrite


The Path parameter is the path and filename of the log file you want to create. If it already exists, the cmdlet will fail unless you include the Overwrite switch parameter. You should use the StartTime parameter (and/or the EndTime parameter) to specify the range of the log entries to gather and merge.

Several other parameters can help you narrow the log search:

Area

Category

ContextFilter

Correlation

Level

EventID

Message

Process

ThreadID

End the Current Log File


Scenario/Problem: You want SharePoint to be finished with the current log file and start a new one.


Solution: Use the New-SPLogFile cmdlet.

The New-SPLogFile cmdlet stops the current log file and starts a new one. This is helpful if you are tracing an issue and do not need more entries in the log file or do not want any issues with the log file being in use. Simply issue the New-SPLogFile cmdlet without any parameters on the server where you want to start a new log file, as shown in Listing 3.

Listing 3. Start a New Log File


New-SPLogFile

Other  
  •  Sharepoint 2013 : Introducing jQuery for SharePoint developers (part 2) - Understanding jQuery methods,Understanding jQuery event handling
  •  Sharepoint 2013 : Introducing jQuery for SharePoint developers (part 1) - Referencing jQuery, Understanding the global function, Understanding selector syntax
  •  Sharepoint 2013 : Introducing JavaScript for SharePoint developers (part 3) - Creating custom libraries
  •  Sharepoint 2013 : Introducing JavaScript for SharePoint developers (part 2) - Understanding JavaScript functions, Understanding JavaScript closures, Understanding JavaScript prototypes
  •  Sharepoint 2013 : Introducing JavaScript for SharePoint developers (part 1) - Understanding JavaScript namespaces, Understanding JavaScript variables
  •  Sharepoint 2013 : List and library essentials - Creating and deleting lists
  •  Sharepoint 2013 : List and library essentials - Using your apps
  •  Sharepoint 2013 : Developing Applications Using Office Services - What’s New in Access Services
  •  Sharepoint 2013 : Developing Applications Using Office Services - The New Machine Translation Services
  •  Sharepoint 2013 : Developing Applications Using Office Services - Word Automation Services and the New PowerPoint Automation Services
  •  
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us
    programming4us
     
     
    programming4us