Search This Blog

Monday, October 19, 2009

Sharepoint 2007 blob cache

Sharepoint OOB comes with Blob cache disabled. You can enable it - http://office.microsoft.com/en-us/sharepointserver/HA101762841033.aspx

and cache jpg and other files in local server disk and free SQL DB resources.

Tuesday, October 6, 2009

Sharepoint error ID 10016

We had the error logged in eventlog on MOSS 2007:

Log Name: System
Source: Microsoft-Windows-DistributedCOM
Date: 10/6/2009 2:38:02 AM
Event ID: 10016
Task Category: None
Level: Error
Keywords: Classic
User: xx\WSSServiceGeneric
Computer: xxx
Description:
The application-specific permission settings do not grant Local Activation permission for the COM Server
application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user xx\WSSServiceGeneric SID (S-1-5-21-2609680699-1071808428-3414302311-1015)
from address LocalHost (Using LRPC). This security permission can be modified using the Component Services
administrative tool.
Event Xml:


EventSourceName="DCOM" />
10016
0
2
0
0
0x80000000000000

47708


System
xxx



application-specific
Local
Activation
{61738644-F196-11D0-9953-00C04FD919C1}
xx
WSSServiceGeneric
S-1-5-21-2609680699-1071808428-3414302311-1015
LocalHost (Using LRPC)



And it looks looks the solution is

http://geekswithblogs.net/mhamilton/archive/2006/12/19/101568.aspx

to add security to misterious IIS WAMREG admin service

Monday, October 5, 2009

Cisco VPN client on 192.168.1.0

As you know if VPN client connected to 192.168.1.0 or any other local LAN subnet will connect to a remote LAN that use 192.168.1.0 or other subnet that is the same as local LAN, then there will be an IP range conflict. If you do full tunneling to remote LAN then you need to make sure that routing for remote LAN has lower metric than local LAN. You can use this script to fix the metric:



@ECHO off

%Windir%\system32\ipconfig.exe > %temp%\ipconfig.txt
type %temp%\ipconfig.txt|findstr /c:"IP Address" > %temp%\ip.txt
type %temp%\ip.txt|findstr /v "0.0.0.0" > %temp%\ip1.txt
FOR /F "delims=: tokens=2" %%I in (%temp%\ip1.txt) DO ECHO %%I > %temp%\justip.txt
FOR /F "delims=. tokens=1" %%A in (%temp%\justip.txt) DO SET octet1=%%A
FOR /F "delims=. tokens=2" %%B in (%temp%\justip.txt) DO SET octet2=%%B
FOR /F "delims=. tokens=3" %%C in (%temp%\justip.txt) DO SET octet3=%%C
FOR /F "delims=. tokens=4" %%D in (%temp%\justip.txt) DO SET octet4=%%D
del /q %temp%\ip1.txt
del /q %temp%\ip.txt
del /q %temp%\ipconfig.txt
del /q %temp%\justip.txt

Set IPAddress=%octet1%.%octet2%.%octet3%.%octet4%

REM ECHO %IPAddress%

%Windir%\system32\route.exe change 192.168.1.0 mask 255.255.255.0 %IPAddress% METRIC 1




As you know if in routing talbe there are two similair routes with different gateway then the last installed interface will get prority. Re-install Cisco VPN client and it will get priority over other interfaces, no need then for script above.