Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

Change SharePoint drafts folder location by logon script 
Saturday, October 31, 2009, 11:53 - SharePoint
Posted by Administrator
In this previous post I explained how to change the default SharePoint drafts folder from
My documents/SharePoint Drafts to another location.

If you have to change this settings for more than 300 users this is not a job you want to do by hand, so here is a possible solution that might work:

Create 2 files:

1) sharepointdraftslocation.reg, this file contains the register keys that need to be added or altered.


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\Common\Offline\Options]
"Local"=dword:00000001
"Location"="C:\\Users\\tom.vangaever.NEOMATICS\\Documents\\Other SharePoint Drafts\\"


2) sharepointdraftslocation.bat, this file will use the builtin REGEDIT.EXE application to add the correct register values in to the register.

@ECHO OFF
REGEDIT.EXE -S sharepointdraftslocation.reg
cls


By using an active directory group policy you can make sure that this sharepointdraftslocation.bat script is started each time the user logins in on a computer.
add comment ( 3 views )   |  permalink   |   ( 3 / 170 )
Change SharePoint drafts folder location 
Saturday, October 31, 2009, 11:10 - SharePoint
Posted by Administrator
Scenario:

The infrastructure team decided several years ago that all the "my documents" folders redirect to a network share where you can store your files in order to make this files accessible on any other computer the user has access on.

The downside of this decision is that users in this scenario doesn't have the permissions to create new folders in their documents folder, in other words... SharePoint drafts or SharePoint-concepten in a dutch environment can't be created and by this issue users cannot check out any document from sharepoint...

Solution:

You are able to define a new location for draft documents at 2 places:

1) Open Word 2007 > Word options > Save > Server Drafts locations



2) Register values, this can be useful when you want to distribute these changes using a logon script...

Run > Regedit > HKEY_CURRENT_USER\Software\Microsoft\Office\Common\Offline\Options

in the register there are 2 values that need to be set:

This screen shows the result when the default value is used:


This screen shows the result when the value is altered to a custom location:





add comment ( 3 views )   |  permalink   |   ( 2.9 / 552 )
SharePoint automatic resource file translator 
Saturday, October 24, 2009, 19:30 - SharePoint
Posted by Administrator
finally the release of SPResourceTranslator tool. this WPF application will automatically translate your resource files from one language to another language.

Download the tool from here



More information on CodePlex:

http://spresourcetranslator.codeplex.com/
http://spresourcetranslator.codeplex.com/wikipage
add comment ( 3 views )   |  permalink   |  related link   |   ( 3 / 618 )
Same sharepoint list multiple times in view all site content 
Thursday, October 22, 2009, 12:06 - SharePoint
Posted by Administrator
A few weeks ago I posted a question on the MSDN forum about a rather strange bug.

Although nobody seemed to know the answer, we were able to find the problem.

When we opened the view all site content on a sharepoint website, we noticed that our custom document library showed 3 times on the screen. Each link redirected to the same list.

When we created the custom views in the schema.xml, we didn't change the DefaultView="TRUE" to FALSE.

It seems that when more than 1 view is set as DefaultView, the list is showed more than once in the view all site content page.

when we changed the DefaultView to FALSE and left only A View as default.The other 'ghost' document libraries dissapeared.
add comment ( 3 views )   |  permalink   |   ( 3 / 662 )
Using BPOS smtp relay in order to send mails using C# 
Friday, October 16, 2009, 15:44 - BPOS
Posted by Administrator

string const string SMTPADDRESS= "stp.mail.emea.microsoftonline.com";

try
{
  MailMessage mail = new MailMessage();
  mail.from = new MailAddress("from@company.be");
  mail.To.Add("customer1@company.be");
  mail.To.Add("customer2@company.be");
  mail.Subject = "Mail sent using BPOS SMTP relay";
  mail.Body= "This mail has been sent using ssl";

  SmtpClient smtpServer = new SmtpClient(SMTPADDRESS)
  smtpServer.Port = 587;
  //TODO: put these configurations in config files.
  smtpServer.Credentials = new System.Net.NetworkCredentials("from@company.be","password");
  smtpServer.EnableSsl = true;
  smtpServer.Send(mail);
  return true;
}
catch(Exception ex)
{
  return ex.ToString();
}




http://msdn.microsoft.com/en-us/library ... ssage.aspx
http://msdn.microsoft.com/en-us/library ... lient.aspx
add comment ( 6 views )   |  permalink   |   ( 3 / 782 )

<<First <Back | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Next> Last>>