Programmatically Setting IIS Log Fields

IIS 6.0 VBScript: Set IIsWebServerObj = GetObject("IIS://localhost/W3SVC") For Each Object In IIsWebServerObj     If (Object.Class = "IIsWebServer") Then          WScript.Echo "Updating: " & Object.ServerComment                Set IIsWebSiteObj = GetObject("IIS://localhost/W3SVC/" & Object.Name)         IIsWebSiteObj.Put "LogExtFileDate",             True         IIsWebSiteObj.Put "LogExtFileTime",             True         IIsWebSiteObj.Put "LogExtFileClientIp",         True         IIsWebSiteObj.Put "LogExtFileUserName",         True         IIsWebSiteObj.Put "LogExtFileSiteName",         True         IIsWebSiteObj.Put "LogExtFileComputerName",    …

1

Get-SPWeb : Access to this Web site has been blocked.

If you are using PowerShell to enumerate SPSite or SPWeb objects in your farm, you may have encountered an “Access to this Web site has been blocked” error message, similar to this example: Get-SPWeb : Access to this Web site has been blocked. Please contact the administrator to resolve this problem. At line:1 char:61 +…

0

How to Change the RetryDeliveryInterval for SharePoint 2010

  SharePoint 2010 introduced several new APIs in SP1, one of which is the RetryDeliveryInterval on the SPIncomingEmailService class.  This value represents the number of hours the incoming email service will attempt to process an invalid email message in the drop folder before the email message is permanently deleted.  The primary reason an email message…

0

Application Log Warning – ILM Certificate Could not be Created

If you see these either or both of the warnings messages below in your Application Event Logs after provisioning the SharePoint 2010 User Profile Synchronization Service (ILM/FIM), don’t be concerned.  These warnings are thrown when the ILM/FIM client is trying to ACL the two endpoints it creates, but since the User Profile Synchronization Service has…

3

How To Set the Daily Time Window for Large Queries Settings in PowerShell

  Here’s a quick script to set the “Daily Time Window for Large Queries” for all the web applications in a SharePoint 2010 farm via Windows PowerShell. #The start hour in the default time zone or in the local time zone. If the DefaultTimeZone property for the Web application is set, #the hour refers to…

0

Add a User or Group to the SPWebApplication User Policy for all Web Applications in the farm

  Here are some PowerShell example to add a domain user or group to the User Policy for a SharePoint 2010 Web Application. In this example, we’ll give domain\user01 “FullRead” permissions to the SharePoint Web Application http://sharepoint2010. This could be useful if you need to grant a domain account FullRead for searching. $userOrGroup = "domain\user01"…

2

How to Update the SequenceNumber on an SPEventReceiver via PowerShell

The following will demonstrate how to update the SequenceNumber on an SPEventReceiver via Windows PowerShell. First, we need to get a reference to the SPList that has our SPEventReceiver registered on it, which can be done with the following PowerShell sample: PS C:\> $web = Get-SPWeb http://sharepoint2010 PS C:\> $list = $web.Lists["Shared Documents"] We now…

1