Friday, May 29, 2009

Disable MySite and MyLinks in Sharepoint (MOSS) 2007

Post from: http://geekswithblogs.net/RogueCoder/archive/2006/11/01/95766.aspx


In order to turn off or disable the MySite or MyLinks functionality you need to be an Sharepoint administrator.

Go to the Central Administration Web Page
Click on the link for Shared Services Administration
--If you have more than one SSP, select the one that is running the MySites functionality
Under "User Profiles and My Sites" click Personalization Services Permissions

Select the group you want to limit the functionality for. More than likely you will just have NTAuthority\Authenticated Users.

In the next screen you will see a list of checkboxes,
--To disable MySites uncheck "Create Personal Site"
--To disable MyLinks uncheck "Use Personal Features"

Thursday, May 28, 2009

Launching VPN at startup

Post from: http://geekswithblogs.net/thibbard/archive/2005/04/27/38581.aspx

If you need to connect to a Virtual Private Network at windows startup, and you don't want to have the user push connect or enter the password do the following:

1) On the VPN Connect screen, check "Save this user name and password for the following users"
2) Select the "Anyone who uses this computer" radio button
3) Click "Properties" on the VPN Connect screen
4) On the "Options" tab, uncheck: -"Display progress while connecting" -"Prompt for name and password, certificate,etc."
5) In Windows Explorer, browse to C:\Documents and Settings\All Users\Start Menu\Programs\Startup
6) Open a new Windows Explorer and browse to Control Panel\Network Connections
7) Drag the icon of your VPN connection to the Startup folder. This will create a shortcut

Now at Windows startup, the VPN will launch and connect silently.

Monday, May 25, 2009

Check For Outlook Subject

Post from http://vsivakumar.wordpress.com/2006/02/13/outlook-blank-subject-warning/

1. Open your outlook

2. Press Alt+F11. This opens the Visual Basic editor

3. On the Left Pane, one can see “Microsoft Outlook Objects” or “Project1″, expand this. Now one can see the “ThisOutLookSession”.

4. Double click on “ThisOutLookSession”. It will open up a code pane.

5. Copy and Paste the following code in the right pane.(Code Pane)

‘============================================================================

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

Dim strSubject As String

strSubject = Item.Subject

If Len(Trim(strSubject)) = 0 Then

Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?"

If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then

Cancel = True

End If

End If

End Sub

Wednesday, May 13, 2009

The file is checked out or locked for editing by

using (SPSite site = new SPSite("siteAddress"))

{

using (SPWeb web = site.OpenWeb("webAddress"))

{

SPListItem listItem = web.Lists["Project Documents"].GetItemById(_id);

try

{

listItem.File.CheckIn("Checked in by force");

listItem.Update();

}

catch (Exception ex)

{

Console.WriteLine(ex.Message);

Console.ReadKey();

}

}

}

Monday, May 11, 2009

Add WSS templates in MOSS

stsadm –o addtemplate –filename MyCustomSite.stp –title “Custom Site Template” –description “Use this template to create a new team site"

Friday, May 8, 2009

When using inline code in master page

Add an extra PageParserPath:

<pageparserpath allowserversidescript="true" compilationmode="Always" includesubfolders="true" virtualpath="/sitedirectory/marketing/_catalog/masterpage/*">

Your license for Microsoft Search Server has expired

The fix is to run one more time the SharePoint Products and Technologies Configuration Wizard

Your search cannot be completed because this site is not assigned to an indexer

1. Central Adminnistration

2. Application Management

3. SharePoint Web Application Management Content databases

4. Ensure your web application is the one selected

5. Select your content database name

6. Under Search Server - select your server

Thursday, May 7, 2009

Code snippets do not appear in Visual Studio

1. In Visual Studio, on the Tools menu, click Code Snippets Manager.
2. Change the language to XML.
3. Add [System]:\Program Files\Microsoft Visual Studio 8\Xml\1033\Snippets\Windows SharePoint Services Workflow to your snippets.

Wednesday, May 6, 2009

Could not access the Search service. SharePoint Configuration Wizard Step 5

1. On the Start menu, click Run. In the Open box, type regedit and thenclick OK.

2. In the Registry Editor, navigate to the following subkey, and then deleteit:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web ServerExtensions\12.0\WSS\Services\Microsoft.SharePoint. Search.Administration.SPSearchService

3. Run the SharePoint Products and Technologies Configuration Wizard again.