tag:blogger.com,1999:blog-36407527241828631332024-03-14T05:09:05.253+13:00SharePointNativeShare Points from Muralikrishna Anumanchipalli<BR>
(Information on Future Operating System for Business Productivity--MOSS)mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.comBlogger43125tag:blogger.com,1999:blog-3640752724182863133.post-55895212012980034032011-01-16T01:00:00.002+13:002011-01-16T01:02:10.102+13:00MCTS-2010Started to work on SharePoint 2010 ...completed the first step- cleared MCTS 70-667.<br />Will push the content now.mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-69213115406355963032010-02-03T14:15:00.010+13:002010-02-03T17:47:44.516+13:00Data View Web Part- Update the ListI got a requirement in which the client manager want to present the user with a contactform. And want to track the submitted data in the portal. And the main requirement is to use Out of Box features without much delay and with branding imposed.Then I prefered to use data view web part to achieve this solution in less than 1 hour.<br /><br /><u>Steps to achieve this quick solution.</u><br /><br />1) Open the page in Sharepoint designer<br /><br />2) Click on Insert->Sharepoint Controls->Data View web part to the page.<br /><br />3) Data source library would be displayed(if not displayed, choose from Task Panes)<br /><br />4) Select the required "List Name" from the displayed data sources, as shown here<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWS1FdJ2SyVSq3y_5K0XS4jkfaW3lfKqAsUnaHm_V9COMtT-agkaJzQWM357u92_S6v1xBbxCmR4ycPoW4KWXsun6DgEnr9qzOoc4M8qr9IZRD5Zj_gc6efDg7RRMvtYy-akmHYjlJqYCx/s1600-h/1.JPG"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 188px; height: 199px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWS1FdJ2SyVSq3y_5K0XS4jkfaW3lfKqAsUnaHm_V9COMtT-agkaJzQWM357u92_S6v1xBbxCmR4ycPoW4KWXsun6DgEnr9qzOoc4M8qr9IZRD5Zj_gc6efDg7RRMvtYy-akmHYjlJqYCx/s320/1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5433865167900921122" /></a><br /><br />5) Click on "Show data" in the context menu displayed when right-clicked on the "List Name"<br /><br />6) Fields and their data would be displayed in the column "Current Data source"<br /><br />7) Highlight Rows<br /><br />8) Click on the "Insert Selected Fields as" to display dropdown.<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigm0Q_Gwjv11WlV3tyJE1yasChIR2O1CqmicvajvXYqrwlqpg1S7nc-qbR83G08Dw3jRCHM6KHwFJRhQV5KZCyRBDplYtvJHHzO4FqcIN3kip0boslHXFRQKJ2bIcyouX8ZboR4P2rqJ8a/s1600-h/2.JPG"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 167px; height: 245px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigm0Q_Gwjv11WlV3tyJE1yasChIR2O1CqmicvajvXYqrwlqpg1S7nc-qbR83G08Dw3jRCHM6KHwFJRhQV5KZCyRBDplYtvJHHzO4FqcIN3kip0boslHXFRQKJ2bIcyouX8ZboR4P2rqJ8a/s320/2.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5433866266431039314" /></a><br /><br />9) Click on "New Item form"<br /><br />10) Automatically SharePoint Designer embeds the field controls with their field name.<br /><br />11) Save the page & publish changes<br /><br />12) Navigate to the page in Browser and test it<br /><br /><u>Some more customizations</u><br /><br />1) I created a list which has four columns (FullName(text), Contact(text), Email(text), Phone(text))<br /><br />2) Inserted the data view web part as detailed in above steps.<br /><br />3) Now after step 10, Right click on the text controls generated for more options<br /><br />4) Choose as text box.<br />Or replace the entire line of <br /><sharepoint:formfield runat="server"....<br />with<br /><asp:TextBox runat="server" id="ff1{$Pos}" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}" BorderColor="#25a5cc" BorderStyle="Solid" BorderWidth="1px" /><br /><br />5) Save the changes and refresh the browser, then we can see the excellent form control which would update the data into the list<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbRUBo4owfzQNZZqwKrUS09CkWUT_4FJcxC-4LUkWHXViMwirNAqjuXLcClGBlxE6COWUVrFgLRRPnhTXLxkNbGfJ-Q3BIEi6JY4jCbur8hWZXGClrGz5WfzUIqPuTj-aMyBNC5UNBnxAY/s1600-h/3.JPG"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 130px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbRUBo4owfzQNZZqwKrUS09CkWUT_4FJcxC-4LUkWHXViMwirNAqjuXLcClGBlxE6COWUVrFgLRRPnhTXLxkNbGfJ-Q3BIEi6JY4jCbur8hWZXGClrGz5WfzUIqPuTj-aMyBNC5UNBnxAY/s320/3.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5433871425538771986" /></a><br /><br />6) And we can even regular asp validator controls to validate and impose the mandatory field checks. This can also be achieved by making that field compulsary in List <br /><br />7) To check whether the email field has a valid email address, add the following line after the Email field control<br /><asp:RegularExpressionValidator runat="server" ErrorMessage="Invalid Email !" id="RegularExpressionValidator1" ControlToValidate="ff2{$Pos}" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" /><br /><br />* You can customize the errormessage also.<br /><br />8) Now save the changes and refresh the browser to see the result.<br /><br />9) On entering the in correct data, the Email field throws the error message and prevents user from saving the data.<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8ihd1dzAa7lEj6FS1PtJLVCQyceAmrshFuYOn4CRzdxT1JaEOwyOD_-LlmaP_tAd1P7HjO0LT2HCI1wVrDeCwXb3ySImUDlCIBjJkzSW5O3eusbXVIbvZKUexlpCV24f2EHIOO1d3rslX/s1600-h/4.JPG"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 102px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8ihd1dzAa7lEj6FS1PtJLVCQyceAmrshFuYOn4CRzdxT1JaEOwyOD_-LlmaP_tAd1P7HjO0LT2HCI1wVrDeCwXb3ySImUDlCIBjJkzSW5O3eusbXVIbvZKUexlpCV24f2EHIOO1d3rslX/s320/4.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5433872116734372354" /></a><br /><br /><br /><br /><br />Cheers! Am done.<br /><br />Enjoy SPD'ing<br /><br />**************************************************************************************<br /><br /><br />Refer this link for displaying the <a href="http://sanmuki.blogspot.com/2008/04/using-dataformwebpart-to-render-list.html">list data in the data view web part</a>mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-74333932397382902472010-01-25T12:07:00.003+13:002010-01-25T13:51:51.967+13:00Common Errors with SharePoint and their SolutionsI thought to create a ground for listing out most of the MOSS errors I have encountered and their solutions, so that they might be useful to some of the MOSS developer buddies.<br />And this list would be appended as I encounter the issues and their resolutions.<br /><br />************************************************************************************************<br />#1)<b>Connecting the Portal with sharepoint designer</b><br />The first error I encountered when trying to open the Portal using Sharepoint Designer is as follows:<br />"The Folder xxxxxx isint accessible. The folder might be located in unavailable location,protected with a password, or the file name contains a/ or \".<br /><br />After struggling with issue for a while, I found that there are a quite a few locations in Central Administration which will help us to resolve this error. <br /><br /><ul>Steps Of resolution:</ul><br />1) Log into Central Administration<br />2) Navigate to Applications -- > Application Security -- User permissions for Web Applications.<br />3) Select this option<br />"Use Remote Interfaces - Use SOAP, Web DAV, or SharePoint Designer interfaces to access the Web site"<br />3) Navigate to Applications-- > Application Security -- Authentication Providers<br />4) Choose the appropriate zone and click on that<br />5) Choose "YES" for Enable Client Integration<br /><br />It did the trick and after that am able to connect to the portal with SPD without any issues.<br />************************************************************************************************mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com1tag:blogger.com,1999:blog-3640752724182863133.post-82996770936617151082009-12-01T14:24:00.008+13:002009-12-03T20:44:59.202+13:00Remove Inactive Accounts from MOSSA common problem which we regularly encounter in MOSS Intra-Net websites. "Importing the profiles from Corporate Active Directory". As the people move in and out, the active directory will be updated and modified continuously so as MOSS Profiles. And when we search for the people using MOSS search, it looks awkward if we are still showing inactive accounts ie, details of the people who have moved out of our organisations. So in order to get the active users from LDAP, we need to configure the following filter<br /><br /><b>(&(objectCategory=person)(objectClass=user)( !(userAccountControl:1.2.840.113556.1.4.803:=2)))</b><br /><br />Steps for this:<br />1) Log into Central Administration --Shared Services Provider Application.<br /><br />2) Click on Userprofiles and properties.<br /><br />3) Click on View Import Connections to edit them (http://[SharedServices:Port]/ssp/admin/_layouts/EditDSServer.aspx?dn=xxxx)<br /><br />4) Locate user Filter text field and then enter the following line:<br /><b>(&(objectCategory=person)(objectClass=user)( !(userAccountControl:1.2.840.113556.1.4.803:=2)))</b><br /><br />Now let us see what is the userAccountControl<br/><br /><br /><b>userAccountControl:1.2.840.113556.1.4.803</b> specifies the user control to be queried against LDAP objects to get the field values which has value of 2 (bit value)-- means Disabled Accounts. As we are specifying ! (not) before, means Do not get the Inactive accounts.<br />Ampersand & before the variables means we are joining the different conditions with AND clause.<br />To specify more UserAccountControl values, refer this Link : <a href="http://msdn.microsoft.com/en-us/library/aa772300(VS.85).aspx">http://msdn.microsoft.com/en-us/library/aa772300(VS.85).aspx</a>;<br /><br />5)Click on Start Full Import<br /><br />6)As we have included the filter for not importing Inactive Accounts, we can see the total count of Inactive profiles and Active Profiles in http://[SSP:Port]/ssp/admin/_layouts/ProfMngr.aspx?ConsoleView=Active<br /><br />7) Select the Inactive Profiles in the drop down and then select all of them (if they are any), and delete them from that View.(or doing a full import 3 times would delete inactive profiles)<br /><br />8)Try to import again and see that this time no Inactive profiles are shown. <br /><br />9)we can even delete these profiles from MOSS databases, but I would prefer to comply with MOSS strict recommendation of NOT TOUCHING DB.<br /><br />10)After confirming the profiles, navigate to search administration in SSP<br /><br />11)Timer jobs would have quick synchronisation jobs running to sync the profile details to portal.<br /><br />12)Reset the crawled content and perform a full search.<br /><br /><s>I will add more for specifying more attributes to this LDAP filter. As the requirements are unique for each corporate.</s><br /><br /><br />Adding more attributes is more interesting thing for this LDAP Filters.<br />1) (&(K1)(K2)(K3)) -- this means join the conditions in brackets with AND operator<br />2) (|(K1)(K2)(K3)) --- obviously joining with OR operator.<br />3) Now the combination of them<br /> (|(&(K1)(K2)(K3))(&(K4)(K5)))<br /> means (K1 AND K2 AND K3) OR (K4 AND K5)<br /><br />More information on this is available at <a href="http://msdn.microsoft.com/en-us/library/aa746475(VS.85).aspx">MSDN Location</a><br /><br />Details of available <a href="http://www.computerperformance.co.uk/Logon/LDAP_attributes_active_directory.htm">LDAP Attributes</a>mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-75112722890649385522009-10-20T11:26:00.005+13:002011-01-16T00:57:58.949+13:00Sharepoint 2010So finally the information of SHAREPOINT -2010 is getting unveiled.<br />Some of my tutors and friends started to update their blogs with this.<br />Refer : <br /><a href="http://manish-sharepoint.blogspot.com/2009/10/wss-40-is-now-sharepoint-foundation.html"><br />Manish Speaks out about 2010<br /></a><br /><br />MSDN : <br /><a href="http://msdn.microsoft.com/en-us/sharepoint/ee513147.aspx"><br />Begin with me<br /></a><br /><br />Exciting things to enjoy<br /><br />Moving to <a href="http://anumanchipalli.blogspot.com">Anumanchipalli</a> <br />Cheers!<br />Happy SPD'ingmukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-7189787317842481702009-09-08T11:30:00.011+12:002010-02-03T14:12:56.195+13:00Content Editor Web Part Tricks1)<u>Apply the styles dynamically using Content Editor Web part</u><br /><br />I got a requirement, which needs to update the style dynamically on the page load for a specific tool bar item in the LIVE environment. <br />As the time we have is very limited, I thought of using java script to apply the required style.<br /><br />Steps to achieve this<br /><br />1. Added the Content Editor Web Part to the page<br />2. Added the following script<br /> <script type = "text/javascript"><br />window.onload=function()<br />{<br /> document.getElementById('[Id of tool bar Item]').style.background = "#BADDAD";<br />}<br /><br /> </script ><br />3. Content Editor web part is hidden.<br /><br />Cheers we are done!.<br /><p>*****************************************************************************************</p><br />2) <u>Create a Upload Multiple Files Control using CEWP </u><br /><br />Refer this for using <a href="http://sanmuki.blogspot.com/2009/05/content-editor-webpart-to-upload.html">Content Editor Web part for uploading Multiple Documents into your desired library</a><br /><br /><p>*****************************************************************************************</p><br /><br />3)<u>Display your outlook emails using CEWP </u><br />With the following script you can access the Outlook Inbox from Content Editor Web part<br /><br />1) Add Content Editor Web part to the page<br />2) Add the following code into the webpart<br /><br /><object classid="clsid:0006F063-0000-0000-C000-000000000046" <br />id="ViewCtlFolder" width="100%" height="200" <br />codetype="application/x-oleobject" <br />codebase="http://activex.microsoft.com/activex/controls/office/outlctlx.CAB#ver..."> <br /><param name="Namespace" value="MAPI"> <br /><param name="Folder" value="Inbox">//(you can replace this Inbox value with your required folder in Outlook box) <br /><param name="Restriction" value=""> <br /><param name="DeferUpdate" value="0"> <br /></object> <br /><br />3) Click OK to see your outlook mails getting displayed in your page.<br />This needs outlook to be available on the box,where this page is being viewed.<br /><br /><p>*****************************************************************************************</p><br /><br />4) <u>Display the Flash files in Sharepoint Pages</u><br /><br />1) Upload the desired Flash File to the Image Library and ensure that its approved <br /><br />2) Add the Content Editor Web part to the required page in Portal.<br /><br />3) Click on the webpart menu to open the tool part and click on "Source Editor"<br /><br />4) Paste the following code<br /><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" <br />codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="240" id="Yourfilename" ALIGN=""><br /><PARAM NAME=movie VALUE="FLASHFILENAMEWITHPATH.swf"> <br /><PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333399> <br /><EMBED src="FLASHFILENAMEWITHPATH.swf" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="240" NAME="Yourfilename" <br />ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"><br /></EMBED> <br /></OBJECT><br /><br />5) Fill the values of "FLASHFILENAMEWITHPATH.swf" with your flash file path from step 1.<br /><br />6) Click on "OK"<br /><br />Then the flash file would be displayed.<br /><br /><br /><p>*****************************************************************************************</p><br /><br /><br /><br />Happy SPD'ingmukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-44660241693579512512009-07-03T14:08:00.004+12:002009-07-03T14:42:56.084+12:00Create custom reports using Site Content and StructureI got a cute requirement from my content team manager, asking to find out a simple way to find out the pages Approved,Rejected,Pending,Draft,scheduled to any one in the team.<br />After doing some research on existing reports provided by MOSS--"Manage Content and Site Structure", I thought we can do some thing over there.<br />Finally I deduced a way to add the new report to existing reports.<br />Steps are as follows:<br />1) Locate "Content and Structure Reports" list.<br />2) Add a new item for that list<br />3) Enter the following values in the new form displayed<br /> Title = "All Documents(Aspx)"<br /> CAML Query = "<Where><Eq><FieldRef Name='DocIcon' /><Value Type='Computed'>aspx</Value></Eq></Where>"<br /><br />4) Now Navigate to "Site Actions-->Manage Content Structure"<br />5) Select View on the top toolbar and select "All Documents(Aspx)" from drop down.<br />Then the view would be displayed with all the pages in the portal.<br />Total number of results can be modified by choosing relevant number on the tool bar.<br /><br />If we want to show only pages only with <br />a) <strong>Approved</strong> <br />Query: <Where><Eq><FieldRef ID="{fdc3b2ed-5bf2-4835-a4bc-b885f3396a61}"></FieldRef><Value Type="Number"><strong>0</strong></Value></Eq></Where><br />b)<strong> Rejected </strong><br />Query: <Where><Eq><FieldRef ID="{fdc3b2ed-5bf2-4835-a4bc-b885f3396a61}"></FieldRef><Value Type="Number"><strong>1 </strong></Value></Eq></Where><br />c) <strong>Pending </strong><br />Query: <Where><Eq><FieldRef ID="{fdc3b2ed-5bf2-4835-a4bc-b885f3396a61}"></FieldRef><Value Type="Number"><strong>2</strong></Value></Eq></Where><br />d) <strong>Draft </strong><br />Query: <Where><Eq><FieldRef ID="{fdc3b2ed-5bf2-4835-a4bc-b885f3396a61}"></FieldRef><Value Type="Number"><strong>3</strong></Value></Eq></Where><br />e)<strong> Scheduled </strong> <br />Query: <Where><Eq><FieldRef ID="{fdc3b2ed-5bf2-4835-a4bc-b885f3396a61}"></FieldRef><Value Type="Number"><strong>4</strong></Value></Eq></Where><br /><br /><br />Cheers!We are done<br />Happy SPD'ingmukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com1tag:blogger.com,1999:blog-3640752724182863133.post-52333996246339089552009-06-27T18:42:00.006+12:002009-06-27T19:47:06.590+12:00Host EXE files in MOSSI got a typical requirement from my product manager. They are planning to host some of the MSI Installers and executables inside our current internet facing MOSS portal. As we are aware MOSS doesnt entertain EXE's, Even though we can remove them from exception list from Central Admin and can host them, it makes a vulnerable security leak in portal. As the site is Internet facing, virus infected EXE's can be uploaded into portal in that exception. So after some research I found a way where we can host the EXE's files in the MOSS.<br /><br /><br />1) Create a folder in the shared location on the web server (should be repeated on all Front end servers)<br />2) Provide the web-sharing for that folder and add an alias name for that by selecting the Relevant Sharepoint Web Application in the web-sharing properties tab<br />3) Add every one to that folder from security tab with "READ" access only<br />4) Open IIS and browse this newly created folder properties and ensure that "Anonymous access" is enabled.<br />5) Add the link as follows in any content enabled pages <br />Download your executable from here: "<a href = "[servername]/[websharedfoldername]/[exename]">"EXEName" </a><br /><br />Cheers!! we are done<br />Happy SPD'ingmukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-27788115362578228232009-05-09T17:12:00.008+12:002009-09-07T18:06:54.645+12:00Content Editor WebPart to Upload Multiple Documents to SharePoint LibraryToday I got a cute requirement from my client manager to upload a huge bunch of documents to sharepoint library, for which they are unable to get "Multiple Upload" feature.<br />Then as an immediate resolution I have added an content Editor Web Part and added this piece of code chunks into that.<br />In this we are using the existing Upload file which can be found at 12 hive\Layouts.<br /><br /><SCRIPT LANGUAGE="javascript"><br /><br />function FilesUpload()<br />{<br /> document.getElementById('idUploadCtl').MultipleUpload();<br /> alert('File Uploading Completed');<br />}<br /></SCRIPT><br /><br /><INPUT TYPE="hidden" NAME="Cmd" VALUE="Save"><br /><INPUT TYPE="hidden" NAME="NextUsing" VALUE="http://[Server]/[Document Library]/Forms/AllItems.aspx"><br /><INPUT TYPE="hidden" VALUE="New"><br /><INPUT TYPE="hidden" NAME="putopts" VALUE="true"><br /><INPUT TYPE="hidden" NAME="destination" VALUE="http://[Server]/[Document Library]"><br /><INPUT TYPE="hidden" NAME="Confirmation-URL" VALUE="http://[Server]/[Document Library]/Forms/AllItems.aspx"><br /><INPUT TYPE="hidden" NAME="PostURL" VALUE="http://[Server]/_vti_bin/shtml.dll/_layouts/UpLoad.aspx" /><br /><INPUT TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><br /><br /><DIV ID='MukiDidAgain' ><br /><P CLASS="ms-toolbar"><br /> <A HREF="javascript:FilesUpload()"<br /> TARGET="_self">Save Files</A><br /></P><br /><OBJECT id=idUploadCtl name=idUploadCtl CLASSID=CLSID:07B06095-5687-4d13-9E32-12B4259C9813 WIDTH='100%' HEIGHT='350px'></OBJECT><br /></DIV><br /><br />! Replace [Server] with your server URL and [Document Library] with the desired document library<br /><br /><br /><br />Cheers! we are done<br />Happy SPD'ing.mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-76406120777689620242009-02-11T12:34:00.032+13:002009-09-08T11:58:34.574+12:00MOSS Developer handy dandy tipsThe most common tips which a MOSS Developer may need :<br />1)<u>Access STSADM from any directory while in command prompt. </u><br /><li>Start -> All Programs -> Control Panel -> Advanced-->System </li><li>Click the Environment Variables -->variable Path -->Edit button. </li><li>;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN </li><li>Click OK. Dont forget ; before the variable path. </li>******************************************************************************<br />2) <u>Recyle the Application Pool with command prompt. </u><br /><li>Open the command prompt and then type in following line. </li>%windir%\system32\cscript.exe c:\windows\system32\iisapp.vbs /a "[Name of your App Pool]" /r.<br /><li>In placeholder of Name --write your application pool which you wish to recycle. </li>There is also a small custom tool which would do this.<a href="http://www.harbar.net/apm/apm2.zip">http://www.harbar.net/apm/apm2.zip</a>.<br />******************************************************************************<br />3) <u>Grab the Public Key Token while in Visual Studio Environment. </u><br /><li>In Visual Studio 2005, click Tools -> External Tools... </li><li>Click Add and enter the following into the different fields as displayed in the following </li>Title: Grab Public Key value<br />Command: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe<br />Arguments: -Tp "$(TargetPath)"<br />Check Output window option.</u><br />Now when we have a signed project, and after building that project, just click on the Tools-->Grab Public Key value button, then we can see that value in the output window.<br />******************************************************************************<br />4)<u>Display all the Search Results before applying our custom XSLT/Styling</u><br />a) Open the Search Results Page in Edit Mode.<br />b) Click on "Modify Shared WebPart" link on "Search Core Results" web part.<br />c) Click on XSL Editor button and in the Opened Editor window paste the following code.<br /><xsl:stylesheet version="1.0" xmlns:xsl="<span style="font-size:0;">http://www.w3.org/1999/XSL/Transform > <xsl:output</span> method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"><br /><xmp><br /><xsl:copy-of select="*"/><br /></xmp><br /></xsl:template><br /></xsl:stylesheet><br /><br />d) Click OK and then refresh the page with search key word again then we can see the full results without any styling or customizations.<br />******************************************************************************<br />5)<u>Search for specific command in <a href="http://sanmuki.blogspot.com/2008/04/stsadm-command-line-tool.html">STSADM list</a> at command prompt</u><br /><li>We all often have seen when we type STSADM at its command prompt would show the huge list of its commands including the custom commands if we have any. It would be tiresome if we wanna run through the entire list to choose only one command which we forget that complete semantic.</li><li>For example if we want to create a site using STSADM then we can type in<br />stsadm -help createsite. This shows the command with parameters.<br />But if we want to rename the site then it would be tough for us trying to remember the correct operation Name. </li><li>But there is a way in which we can find all the relevant commands with keyword "site".<br />Simply type in <b>STSADM FIND "SITE" </b>(with quotes, STSADM and Find are seperated using pipe symbol ) at the command prompt. It lists out all the commands which has word "site" in them. </li>Then pick your required command from them.<br /><br /><li>Check this link for all <a href="http://sanmuki.blogspot.com/2008/04/stsadm-command-line-tool.html">STSADM Commands</a> and their purpose.</li><br /><br />******************************************************************************<br />6) <u>Export the (My)sites list to end user with less effort.</u><br /><li>Recently I had a request from one of my client where they want to see all the MYSites of their corpnet users and their storage limits/details in XML format.</li><li>As usual STSADM came to my rescue with its wonderful command "enumsites".<br />Just type in <b>STSADM -o enumsites -url <span style="font-size:0;">http://moss:xxxxx </span><b></b>>>c:\MySitesList.xml</b><br />And you are done. When the Operation is completed, then simply open C:\MySitesList.xml file for the details.<br /><p>******************************************************************************</p><br /><p>7)<u>Display Time at your Command prompt</u></p>While executing the one of the STSADM commands, I found it took long time, but how much. We cant always look at the system time or your watch before executing command. I felt there should be some way in command window itself to show the command execution time.<li>Then after a small research, I found we can get the command executed time. Steps are following..</li><li>Open command prompt. Type in <b>PROMPT $T $_ $P </b>. And click enter. <li>Then the command prompt shows time before each command. Now we can find the total time of execution. </li><br /><p>****************************************************************************** </p><br /><p>8) <u>To Open Central Admin from command prompt</u></p><li>Make sure that "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\" is entered into environment variables as I mentioned earlier.</li><li>Then open command prompt type in psconfigui.exe -cmd showcentraladmin.</li><li>It opens the Central Admin quickly.</li><br /><p>****************************************************************************** </p><br /><p>9) <u>To perform mass publishing for documents/Images</u></p><li>Once the files are uploaded and every file is checked out, then go to that Library settings</li><li>Click on Versioning settings</li><li>Click on 'NO' for content Approval and click OK</li><br /><li>Select Site Actions--Manage Content and Structure</li><br /><li>And select the library and the items of the library would be displayed on the right pane. Select all of them and right click to find option "Publish".</li><br /><li>It will do the trick. Once you are done then turn back Content Approval on</li><br /><li>Even though this not a best practice, some times it help us</li><br /><p>******************************************************************************</p><br /><p>10) <u>Saving output of STSADM command </u><br />To save the output of STSADM Command into a text file use the following :<br />eg:stsadm -o addsolution -filename MySoln.wsp >>output.txt 2>&1<br />(Dont remove 2>&1--these are standard dos error handlers.)<br />If we are using -immediate or -time or -local (Asynchronous commands) with STSADM command, then next STSADM command would fail. Like:<br />stsadm -o retractsolution -name Mysolution.wsp -immediate<br />stsadm -o deletesolution -name Mysolution.wsp<br />The second command should execute after the first command has executed completely. But here it would fail.In order to avoid that we have two solutions<br />Solution One:<br /><li> echo some text pause</li><br />Solution Two:<br /><li> <a href="http://technet.microsoft.com/en-us/library/cc262783.aspx">Execadmsvcjobs</a> command.But this should be used very carefully because it would execute all the administrative jobs immediately</li><br /><p>******************************************************************************</p><br /><br /><p>11) <u>Opening the Multiple Upload Window </u><br /><br />Sometimes, I have seen in the client environment, "MultipleUpload" link is not shown in document libraries,which we will discuss later, but as a simple trick to enable that, try to do following<br /><br />1. Open the document Library for which they cannot see "MultipleUpload"<br />2. Click on "UploadDocument" and the window opens with URL /_layouts/Upload.aspx?=[ListID and some blah blah]<br />3. Now add the "&MultipleUpload=1" at the end of the URL and press enter.<br /><br />It would open the MultipleUpload screen, still if you are unable to see "MultipleUpload", then refer the "<a href="http://sanmuki.blogspot.com/2009/09/apply-style-dynamically.html">Content Editor Web Part tricks</a>" in Interesting Links.<br /><br /><p>******************************************************************************</p><br /><br /><br /><br />Happy SPD'ingmukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com1tag:blogger.com,1999:blog-3640752724182863133.post-21220163338945845122009-01-27T15:25:00.005+13:002009-01-27T16:58:03.776+13:00Steps to Create a Alert WebControl and deploy to MOSSAfter many days I got an opportunity to create a webcontrol which creates the Alerts for the Logged in user. As my client insisted that they dont want to strain users by navigating inside the Sharepoint application page to create a alert, they want to create an alert with a single mouse click.<br /><br /><br />Steps involved in creating a webcontrol:<br />1) Create a button control,intialize it on the Page load, Assign the click event to that<br />And attach code for that event handler.<br /><br />Code goes like this.<br /><br /><br />namespace AlertMeWC<br />{<br /><br />[ToolboxData("<{0}:ManageAlerts runat=server>")]<br />public class ManageAlerts : WebControl<br />{<br /><br /><br />private System.String btnCreateAlert;<br />private LinkButton btnCreate;<br /><br />public System.String btnCreateAlertID<br />{<br />get<br />{<br />return btnCreateAlert;<br />}<br />set<br />{<br />btnCreateAlert = value;<br />}<br />}<br /><br />private void CreateAlert(object sender, EventArgs e)<br />{<br /><br />try<br />{<br />SPSecurity.RunWithElevatedPrivileges(delegate(){<br /><br />SPSite _site = SPContext.Current.Site;<br />SPWeb _web = _site.OpenWeb();<br />SPAlert newalert = _web.Alerts.Add();<br />newalert.AlertType = SPAlertType.Item;<br />newalert.AlertFrequency = SPAlertFrequency.Immediate;<br />newalert.DynamicRecipient = Get the Logged in user details.<br /><br />if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("/pages"))<br />{<br />newalert.Item = _web.GetListItem(HttpContext.Current.Request.Url.ToString()); newalert.Title = "Pages: FirstPage.aspx";<br />newalert.Update();<br />_web.AllowUnsafeUpdates = true;<br />_web.Update();<br />_web.AllowUnsafeUpdates = false;<br />}<br />});<br />}<br />catch (Exception ex)<br />{<br />Page.Response.Write("Error in ManageAlerts " + ex.Message.ToString());<br />}<br />finally<br />{<br />//Dispose web<br />}<br />}<br /><br />private void InitializeControls()<br />{<br />btnCreate = InitializeControls<linkbutton>("btnCreateAlert", btnCreateAlert);<br />}<br /><br />private T InitializeControls<t>(string strPropertyName, string strControlID)<br />{<br />object _BaseControl = null;<br />T _Return = default(T);<br /><br />if (String.IsNullOrEmpty(strControlID))<br />{<br />throw new ApplicationException("ManageAlerts Initialization failed: The " + strPropertyName + " attribute must specify a valid " + typeof(T).ToString() + ". The attribute was not specified.");<br />}<br /><br />_BaseControl = this.NamingContainer.FindControl(strControlID);<br /><br />if (_BaseControl == null)<br />{<br />throw new ApplicationException("ManageAlerts Initialization failed: The " + strPropertyName + " attribute must specify a valid " + typeof(T).ToString() + ". The control " + strControlID + " cannot be found.");<br />}<br /><br />if (!(_BaseControl is T))<br />{<br />throw new ApplicationException("ManageAlerts Initialization failed: The " + strPropertyName + " attribute must specify a valid " + typeof(T).ToString() + ". The control " + strControlID + " is a " + _BaseControl.GetType().ToString() + ", and is not supported.");<br />}<br /><br />_Return =(T)_BaseControl;<br />Return _Return;<br />}<br /><br />protected override void OnLoad(EventArgs e)<br />{<br /><br />base.OnLoad(e);<br />try<br />{<br />InitializeControls();<br /><br />btnCreate.Click += new EventHandler(this.CreateAlert);<br /><br />}<br />catch (Exception ex)<br />{<br />Page.Response.Write("Error: " + ex.Message.ToString());<br />}<br />finally<br />{<br />}<br /><br />}<br /><br /><br />}<br />}<br /><br /><br />2)Assign the strong name, GAC and grab public key token.<br />3)Navigate to your site where we would like to stick this webcontrol on.<br />4)Create a new page and edit that page in Sharepoint designer.<br />Add the following lines to that Page in SPD.<br /><@ Register Tagprefix="muki" Namespace="AlertMeWC" Assembly="AlertmeWC, Version=1.0.0.0, Culture=neutral, PublicKeyToken=#$@$%@$%@#%@5" %><br />Add this in body tag.<br /><muki:ManageAlerts ID="ManageAlerts" runat="server" btnCreateReportID ="btnCreate"/><br /><br />When ever the user clicks on this link, then automatically alerts are created<br />Enjoy SPD'ing!!mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-56613679114214862392008-12-15T16:23:00.004+13:002008-12-15T17:06:09.840+13:00Adding Site Collection Administrators programaticallyOne of my team mates had a question whether we can add site collection Administrators to the site through object model. <br />Its fairly simple and easy.<br />code chunks:<br />****************************************************************************<br />SPSite _site = null;<br />SPUser user = null;<br />SPWeb _web = null;<br />try<br /> {<br /> <br /> SPSecurity.RunWithElevatedPrivileges(delegate()<br /> {<br /> <br /> _site = new SPSite("siteURL");<br /> <br /> _web = _site.OpenWeb();<br /> _web.AllowUnsafeUpdates = true;<br /> _web.SiteUsers.Add(@"mossbox\user1", "user1@email.com", "user1", "Added via object model");<br /> _web.Update();<br /> user = _web.SiteUsers[@"mossbox\user1"];<br /> _site.SecondaryContact = user;<br /> user.Update();<br /> _web.AllowUnsafeUpdates = false;<br /> });<br /> }<br /> catch (Exception ex)<br /> {<br /><br /> MessageBox.Show("Error in Adding Site Collection Administrators " + ex.Message.ToString());<br /><br /> <br /> }<br /> finally <br /> {<br /> if (_site != null)<br /> {<br /> _site.Dispose();<br /> }<br /> if (_web != null)<br /> {<br /> _web.Dispose();<br /> }<br /><br /> }<br /><br /><br /> }<br /><br />****************************************************************************mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com2tag:blogger.com,1999:blog-3640752724182863133.post-40737267974125362882008-08-28T12:09:00.006+12:002008-08-28T13:27:28.004+12:00Host ASP.NET UserControls in MOSSI got an interesting change request from my client manager, where they want to host the ASP.NET user control as is in MOSS(This has DLL available). I googled around and found five different ways to do and one mukiway(my way)<br />1. Deploy the Usercontrol using Smart Part<br />2. Wrap the UserControl with webpart<br />3. Modify the UserControl as Webcontrol and deploy the control<br />4. Recreate this UserControl as new Webpart<br />5. Deploy this control into 12 hive controltemplates folder along with .cs file <br /><br />Mukiway:<br />1. Copy the control and its files into _Layouts/MukiControl/<br />2. Create a test page in ASP.NET and host the UserControl in that test page<br /><% Register src="UserControl.ascx" tagname="mukicontrol" tagprefix="muki" %><br />In the body tag<br /><muki:UserControl ID="UserControl" runat="server"/><br />save this page as test.aspx<br /><br />3. GAC the UserControl DLL<br />3. Mark that DLL as safe entry in web.config file of the hosting site collection<br />4. Perform IISReset.<br />5. Add a PageViewer Webpart<br />6. Select Web Page as option and in the URL field give /_Layouts/MukiControl/test.aspx<br /><br />Cheers! you are done.mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-25906502300172048912008-08-15T10:07:00.004+12:002008-08-15T10:25:47.993+12:00Prevent users from viewing Application PagesAs a part of security measure, we have been asked to restrict the people accessing the default application pages like /Forms/Allitems.aspx,/_layouts/mcontent.aspx, Userdisp.aspx. <br />I ve heard about viewlockdownfeature but also heard that there are some issues with that. So I thought we can do this task by a custom http handler. <br />In order to make this handler configurable instead of hardcoding the URL's I made an entry in <AppSettings> node of web.config file and redirect those URL's to desired page.<br />The code for Http Handler goes like this :<br /><br />******************************************************************<br />// Description:<br />// This HTTP handler redirects the Application pages to desired page defined in <AppSettings>node in web.config file<br />// <br />// Implementation :<br />//<httpModules><br />//<add name="ReRoutePages" type="muki.ReRouteAppPages, ForceSSL,Version=1.0.0.0, Culture=neutral,PublicKeyToken=XXXXX" /><br />//</httpModules><br />//<appsettings><br />//<add key ="ApplicationPages" value="/Forms/AllItems.aspx,/_layouts/settings.aspx"/><br />//<add key ="AdminPagesReRoutedURL" value ="http://servername/Pages/DontSeethosePages.aspx"/><br />//</appsettings><br /><br />*******Code begins***********************<br />namespace muki<br />{<br /> class ReRouteAppPages : System.Web.IHttpModule<br /> {<br /> #region IHttpModule Members<br /><br /> public void Dispose()<br /> {<br /> throw new NotImplementedException();<br /> }<br /><br /> public void Init(System.Web.HttpApplication context)<br /> {<br /> context.BeginRequest += new EventHandler(context_BeginRequest);<br /> }<br /><br /> #endregion<br /> void context_BeginRequest(object sender, EventArgs e)<br /> {<br /> ReRoutePages(System.Web.HttpContext.Current.Request.Url.PathAndQuery);<br /> }<br /> public void ReRoutePages(string pageURL)<br /> {<br /> //check for the current page exists in the group of pages requiring ReRouting<br /> //if page is found in ReRoute group then redirect page to desired page as per web.config entry<br /> try<br /> {<br /> bool found = false;<br /> string AppPages = System.Configuration.ConfigurationSettings.AppSettings["ApplicationPages"];<br /> string destURL = System.Configuration.ConfigurationSettings.AppSettings["AdminPagesReRoutedURL"];<br /> char[] separator;<br /> separator = new char[] { ',' };<br /> string[] pages;<br /> pages = AppPages.Split(separator);<br /><br /> for (int i = 0; i < pages.Length; i++)<br /> {<br /> if (pageURL.ToLower().Contains(pages[i].ToLower()))<br /> {<br /> found = true;<br /> break;<br /> }<br /> }<br /> if (found)<br /> {<br /> HttpContext.Current.Response.Redirect(destURL);<br /> }<br /><br /> }<br /> catch (Exception ex)<br /> {<br /> <br /> HttpContext.Current.Response.Write("An error has occured in ReRouting Application Pages" + ex.InnerException.ToString());<br /> }<br /><br /> }<br /> }<br />}<br /><br />******************************************************************<br /><br />2.Strong Name the assembly and GAC it.<br />3.Refer the Implementation<br />4.Perform IISReset.<br /><br /> We are done right!mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-16418673276580785422008-08-06T15:49:00.004+12:002009-02-12T16:41:52.028+13:00Restrict access to MOSS Web ServicesAs a part of Security measure, we need to block the access to MOSS Web Services.<br />Every MOSS Developer knows how to access the exposed web services of MOSS.<br /><em><strong>http://servername/_vti_bin/Lists.asmx</strong></em> ...<br />This would open up the entire webservice and available methods in that.<br /><br />In order to restrict that we can add an entry in web.config file of that Site Collections web application.<br /><br />Add the following block<br /><br /><location path="_vti_bin"><br /><system.web><br /><authorization><br /><allow users="mossserver\Myuser" /><br /><deny users="*" /><br /></authorization><br /></system.web><br /></location><br /><br />Its blocked!! Right?<br /><p>*** But beware, you cannot open the Site in SharePoint designer if you block webservices for all users. So please allow atleast one account for accessing webservices.**</p><p> </p><p> </p>mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com1tag:blogger.com,1999:blog-3640752724182863133.post-90776865462957419592008-08-06T15:43:00.004+12:002008-08-06T15:48:55.313+12:00Restrict Access to MOSS CustomizationsIf we need to make sure that a user is logged in before accessing our customizations in MOSS and then redirected back after login, I found a inbuilt way<br /><br /><strong>Microsoft.SharePoint.Utilities.SPUtility.EnsureAuthentication();</strong> <br />This will redirect unauthenticated users to the login screen and show users access denied screens if applicable.<br /> <br />It's that simple.mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-41363179021079989452008-07-25T08:43:00.011+12:002008-08-15T10:27:22.352+12:00Enable SSL for selected Pages in MOSS<em><strong>An article on automatically switching between HTTP and HTTPS protocols without hard-coding absolute URLs </strong></em><br /><br />I came across a change request of my client who wants to enable SSL on selected pages in MOSS site collection. we all know that we can create SSL enabled web application from scratch. But here the requirement is unique and client requirement says he should be able to Enable SSL on pages of his choice. So it should be configurable and at same time we should be able to maintain session state across http and https. Amazingly MOSS has that ability to support session state when switching across HTTP and HTTPS. I followed the steps below and was able to achieve result<br />1) Wrote a custom HTTP handler which redirects http to https for selected pages.<br /><br />2) The page list is read from web.config file.<br />****** Source code for HTTP handler************************<br />using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Text;<br />using System.Web.Security;<br />using System.Diagnostics;<br /><br />namespace muki.ForceSSL<br />{<br /> public class ForceSSL : System.Web.IHttpModule<br /> {<br /> #region IHttpModule Members<br /><br /> public void Dispose()<br /> {<br /> throw new NotImplementedException();<br /> }<br /><br /> public void Init(System.Web.HttpApplication context)<br /> {<br /> context.BeginRequest += new EventHandler(context_BeginRequest);<br /><br /> }<br /><br /> #endregion<br /><br /> void context_BeginRequest(object sender, EventArgs e)<br /> {<br /> RedirectSSL(System.Web.HttpContext.Current.Request.Url.PathAndQuery);<br /> }<br /> public void RedirectSSL(string pageURL)<br /> {<br /> //check for the current page exists in the group of pages requiring SSL<br /> //if page is found in ssl group then redirect using https:// otherwise redirect with http://<br /> bool found = false;<br /> string sslPages = System.Configuration.ConfigurationSettings.AppSettings["SSLPages"];<br /> char[] separator;<br /> separator = new char[] { ',' };<br /> string[] pages;<br /> pages = sslPages.Split(separator);<br /> for (int i = 0; i < pages.Length; i++)<br /> {<br /> <br /> if( pageURL.ToLower().Contains(pages[i].ToLower()))<br /> {<br /> found = true;<br /> break;<br /> }<br /> }<br /> if (found)<br /> {<br /> if (System.Web.HttpContext.Current.Request.Url.Scheme.ToString() == "http")<br /> {<br /> string sURL = System.Web.HttpContext.Current.Request.Url.ToString();<br /> sURL = sURL.Replace("http://", "https://");<br /> System.Web.HttpContext.Current.Response.Redirect(sURL);<br /><br /> }<br /> }<br /> else<br /> {<br /> if (System.Web.HttpContext.Current.Request.Url.Scheme.ToString() == "https")<br /> {<br /> string sURL = System.Web.HttpContext.Current.Request.Url.ToString();<br /> sURL = sURL.Replace("https://", "http://");<br /> System.Web.HttpContext.Current.Response.Redirect(sURL);<br /> }<br /> }<br /><br /> }<br /> }<br /><br /> <br /><br />}<br />**********************************Source code for Http handler ends**************<br />4) Sign this assembly and GAC it.<br /><br />5) Add this line <httpmodules> section and see that this line is first among all<br /><add name="ForceSSL" type="muki.ForceSSL.ForceSSL, ForceSSL,Version=1.0.0.0, Culture=neutral,PublicKeyToken=xxxxxxxx" /><br />Add key in Appsettings of web.config file like this.<br /><add key="SSLPages" value="/SitesWithSSL/Pages/SSL1.html,/subsite/Pages/SSL1.aspx" /><br />we can add as many pages we need for this. All these pages would be SSL enabled.<br /><br />6)Now come to IIS-->WebApplication which needs SSL enabling for selected pages<br /><br />7)Navigate to Properties--Directory Settings--Secure Communications--Server Certificate-->Assign the existing certificate.<br /><a href="http://www.dabcc.com/miab/miab30/Implementation-Phase-15.-2.-How-to-Enable-SSL-on-an-IIS-Web-Server-MIAB-3.aspx">More Details on SSL enabling</a><br /><br />8)Assign port 443 for SSL ( we can choose port of our choice, but we should be aware that 443, 80 doesnt require ports to be mentioned in URL, otherwise we have to tweak our code settings to read through those ports)<br /><br />9)Please be sure that in Directory settings-->SecureCommunications-->Edit-->Require Secure Channel is NOT SELECTED.<br /><br />10)Now come back to Central Administration-->Operations-->Alternate Access Mappings<br /><br />11)Add the new URL via internal URL's link. <br />https://servername//.<br /><br />12)Perform IISReset-->Now Browse Application..<br />we can see our selected pages(as specified in web.config) are over SSL mode and the rest are under normal HTTP.<br /><br />Cheers! we are donemukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com26tag:blogger.com,1999:blog-3640752724182863133.post-43543757536099247522008-06-23T10:12:00.003+12:002008-06-23T11:32:48.068+12:00Debugging in MOSS applicationIf you're building a new Web Part, in order to debug it, <br />1)You have to manually attach the Visual Studio debugger to the W3SVC.EXE process<br />2)Select Debug -> Attached to Process... <br />3)And then selecting one or more instances of the W3SVC.EXE process, and click Attach.<br /><br />Some times this throws error message saying "Cannot load symbols" and our code lines are not hit by debugger.<br />Then in that case we have to point the debugger to symbols in following way.<br />1)Copy the PDB file we have with our application and move to put the debugging symbols in the same location as the assembly.<br />2)Start » Run then type in run command prompt "%systemroot%\assembly\gac "<br />This will open the GAC folder. Now select your file of choice which is in following format<br /> [assembly file name -.DLL extention]\[assembly version in format of #.#.#.#]__[assembly public key token].<br /><br />3)Copy the PDB file to that folder and then attach the debugger.mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-14145151628795476882008-06-20T16:10:00.003+12:002008-06-20T16:18:46.780+12:00How to Identify the Search Settings for the FarmSteps to Identify the Search Settings for farm<br />1) Open command prompt<br />2) stsadm -o spsearch action list..<br />This details the primary information about the search settings of the farm.<br /><br />To identify the search settings of SSP.<br />1) Open central admin<br />2) Navigate to "Manage this farms Shared services"<br />3) Right click the SSP Name for its "Edit Properties" link.mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-13359593109779511762008-06-10T15:00:00.001+12:002008-06-10T15:00:28.202+12:00Calculate difference between two datesToday I had a cute requirement which is pretty small. The user want to see the time difference between two different time stamps.<br />Steps to do this<br />1) Create a column Date1 of DateTime<br />2) Create a column Date2 of DateTime<br />3) Create another column of Datatype Calculated type.<br />then enter the following formula in that column settings<br />=TEXT([DATE2]-[DATE1],"H:MM").<br /><br />then you are donemukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com4tag:blogger.com,1999:blog-3640752724182863133.post-55843212653991393562008-05-22T13:56:00.006+12:002008-05-22T14:09:13.715+12:00Some windows Run CommandsI knew this is deviation from MOSS. Since am fond of the windows commands, I prefered to share with my technical siblings across.<br /><br /><script type="text/javascript">var rowVisible = true;function toggleDisplay(tbl) {var tblRows = tbl.rows;for (i = 0; i < tblRows.length; i++) {if (tblRows[i].className != "headerRow1") {tblRows[i].style.display = (rowVisible) ? "none" : "";}}rowVisible = !rowVisible;}</script><input type="button" value="Click me to hide/expand below table" onclick="toggleDisplay(document.getElementById('MyTable1'))" /><table id="MyTable1" cellspacing="0" cellpadding="0" width="635" border="1"><colgroup><col width="303"><col width="332"></colgroup><tbody><tr class="headerRow1" height="21"><br /> <tr height="20" style="height:15.0pt"> <td height="20" width="430" style="height: 15.0pt; width: 323pt" class="style1"> <div name="SpaceTemplateRegion"> <div cat="Microsoft" ca="true" cns="cns!DCDF9D5EB854DF61!156"> To Access</div> </div> </td> <td width="183" style="width: 137pt" class="style1">Run Command</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Accessibility Controls</td> <td class="style1">access.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Add Hardware Wizard</td> <td class="style1">hdwwiz.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Add/Remove Programs</td> <td class="style1">appwiz.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Administrative Tools control</td> <td class="style1">admintools</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Automatic Updates</td> <td class="style1">wuaucpl.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Bluetooth Transfer Wizard</td> <td class="style1">fsquirt</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Calculator</td> <td class="style1">calc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Certificate Manager</td> <td class="style1">certmgr.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Character Map</td> <td class="style1">charmap</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Check Disk Utility</td> <td class="style1">chkdsk</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Clipboard Viewer</td> <td class="style1">clipbrd</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Command Prompt</td> <td class="style1">cmd</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Component Services</td> <td class="style1">dcomcnfg</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Computer Management</td> <td class="style1">compmgmt.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Date and Time Properties</td> <td class="style1">timedate.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">DDE Shares</td> <td class="style1">ddeshare</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Device Manager</td> <td class="style1">devmgmt.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Direct X Control Panel (If Installed)*</td> <td class="style1">directx.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Direct X Troubleshooter</td> <td class="style1">dxdiag</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Disk Cleanup Utility</td> <td class="style1">cleanmgr</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Disk Defragment</td> <td class="style1">dfrg.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Disk Management</td> <td class="style1">diskmgmt.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Disk Partition Manager</td> <td class="style1">diskpart</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Display Properties</td> <td class="style1">control desktop</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Display Properties</td> <td class="style1">desk.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Display Properties (w/Appearance Tab Preselected)</td> <td class="style1">control color</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Dr. Watson System Troubleshooting Utility </td> <td class="style1">drwtsn32</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Driver Verifier Utility</td> <td class="style1">verifier</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Event Viewer</td> <td class="style1">eventvwr.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">File Signature Verification Tool</td> <td class="style1">sigverif</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Findfast</td> <td class="style1">findfast.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Folders Properties</td> <td class="style1">control folders</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Fonts control</td> <td class="style1">fonts</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Fonts Folder</td> <td class="style1">fonts</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Free Cell Card Game</td> <td class="style1">freecell</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Game Controllers</td> <td class="style1">joy.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Group Policy Editor (XP Prof)</td> <td class="style1">gpedit.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Hearts Card Game</td> <td class="style1">mshearts</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Iexpress Wizard</td> <td class="style1">iexpress</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Indexing Service</td> <td class="style1">ciadv.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Internet Properties</td> <td class="style1">inetcpl.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">IP Configuration (Display Connection Configuration)</td> <td class="style1">ipconfig /all</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">IP Configuration (Display DNS Cache Contents)</td> <td class="style1">ipconfig /displaydns</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">IP Configuration (Delete DNS Cache Contents)</td> <td class="style1">ipconfig /flushdns</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">IP Configuration (Release All Connections)</td> <td class="style1">ipconfig /release</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">IP Configuration (Renew All Connections)</td> <td class="style1">ipconfig /renew</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">IP Configuration (Refreshes DHCP & Re-Registers DNS)</td> <td class="style1">ipconfig /registerdns</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">IP Configuration (Display DHCP Class ID)</td> <td class="style1">ipconfig /showclassid</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">IP Configuration (Modifies DHCP Class ID)</td> <td class="style1">ipconfig /setclassid</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Java Control Panel (If Installed)</td> <td class="style1">jpicpl32.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Java Control Panel (If Installed)</td> <td class="style1">javaws</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Keyboard Properties</td> <td class="style1">control keyboard</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Local Security Settings</td> <td class="style1">secpol.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Local Users and Groups</td> <td class="style1">lusrmgr.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Logs You Out Of Windows</td> <td class="style1">logoff</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Microsoft Chat</td> <td class="style1">winchat</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Minesweeper Game</td> <td class="style1">winmine</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Mouse Properties</td> <td class="style1">control mouse</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Mouse Properties</td> <td class="style1">main.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Network Connections</td> <td class="style1">control netconnections</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Network Connections</td> <td class="style1">ncpa.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Network Setup Wizard</td> <td class="style1">netsetup.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Notepad</td> <td class="style1">notepad</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Nview Desktop Manager (If Installed)</td> <td class="style1">nvtuicpl.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Object Packager</td> <td class="style1">packager</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">ODBC Data Source Administrator</td> <td class="style1">odbccp32.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">On Screen Keyboard</td> <td class="style1">osk</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Opens AC3 Filter (If Installed)</td> <td class="style1">ac3filter.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Password Properties</td> <td class="style1">password.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Performance Monitor</td> <td class="style1">perfmon.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Performance Monitor</td> <td class="style1">perfmon</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Phone and Modem Options</td> <td class="style1">telephon.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Power Configuration</td> <td class="style1">powercfg.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Printers and Faxes</td> <td class="style1">control printers</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Printers Folder</td> <td class="style1">printers</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Private Character Editor</td> <td class="style1">eudcedit</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Quicktime (If Installed)</td> <td class="style1">QuickTime.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Regional Settings</td> <td class="style1">intl.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Registry Editor</td> <td class="style1">regedit</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Registry Editor</td> <td class="style1">regedit32</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Remote Desktop</td> <td class="style1">mstsc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Removable Storage</td> <td class="style1">ntmsmgr.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Removable Storage Operator Requests</td> <td class="style1">ntmsoprq.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Resultant Set of Policy (XP Prof)</td> <td class="style1">rsop.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Scanners and Cameras</td> <td class="style1">sticpl.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Scheduled Tasks control</td> <td class="style1">schedtasks</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Security Center</td> <td class="style1">wscui.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Services</td> <td class="style1">services.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Shared Folders</td> <td class="style1">fsmgmt.msc</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Shuts Down Windows</td> <td class="style1">shutdown</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Sounds and Audio</td> <td class="style1">mmsys.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Spider Solitare Card Game</td> <td class="style1">spider</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System Configuration Editor</td> <td class="style1">sysedit</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System Configuration Utility</td> <td class="style1">msconfig</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System File Checker Utility (Scan Immediately)</td> <td class="style1">sfc /scannow</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System File Checker Utility (Scan Once At Next Boot)</td> <td class="style1">sfc /scanonce</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System File Checker Utility (Scan On Every Boot)</td> <td class="style1">sfc /scanboot</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System File Checker Utility (Return to Default Setting)<span style="mso-spacerun:yes"> </span></td> <td class="style1">sfc /revert<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System File Checker Utility (Purge File Cache)<span style="mso-spacerun:yes"> </span></td> <td class="style1">sfc /purgecache<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System File Checker Utility (Set Cache Size to size x)<span style="mso-spacerun:yes"> </span></td> <td class="style1">sfc /cachesize=x<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">System Properties</td> <td class="style1">sysdm.cpl</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Task Manager<span style="mso-spacerun:yes"> </span></td> <td class="style1">taskmgr<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Telnet Client<span style="mso-spacerun:yes"> </span></td> <td class="style1">telnet</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Te7SQL Client Configuration<span style="mso-spacerun:yes"> </span></td> <td class="style1">cliconfg</td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">User Account Management<span style="mso-spacerun:yes"> </span></td> <td class="style1">nusrmgr.cpl<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Utility Manager</td> <td class="style1">utilman<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Windows Firewall<span style="mso-spacerun:yes"> </span></td> <td class="style1">firewall.cpl<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Windows Magnifier<span style="mso-spacerun:yes"> </span></td> <td class="style1">magnify<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Windows Management Infrastructure<span style="mso-spacerun:yes"> </span></td> <td class="style1">wmimgmt.msc<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Windows System Security Tool<span style="mso-spacerun:yes"> </span></td> <td class="style1">syskey<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Windows Update Launches<span style="mso-spacerun:yes"> </span></td> <td class="style1">wupdmgr<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Windows XP Tour Wizard<span style="mso-spacerun:yes"> </span></td> <td class="style1">tourstart<span style="mso-spacerun:yes"> </span></td> </tr> <tr height="20" style="height:15.0pt"> <td height="20" style="height: 15.0pt;" class="style1">Wordpad<span style="mso-spacerun:yes"> </span></td> <td class="style1">write<span style="mso-spacerun:yes"> </span> </td> </tr></table>mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com1tag:blogger.com,1999:blog-3640752724182863133.post-1244889742509408922008-05-08T12:48:00.002+12:002008-05-08T12:56:06.265+12:00How to redirect the user from userdisplay page to MySite pageToday I came across a strange request from client. They want the users to be redirected to My Profile page of MySite of individual users when they click on user name.<br />Eg:Contact : <u>abc</u>. Clicking on abc should be redirected to abc profile page instead of regular MOSS page http://servername/userdisp.aspx.<br /><br />I found a way for this after some explore:<br />1. Go to Site Actions--Site Settings<br />2. Go to PortalConnections under Site Collection Administration tab.<br />3. Give the URL like http://URL of Mysite/personal.aspx.<br /><br />you are done. <br />pretty simple right?mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-4128842873671951432008-04-30T15:59:00.004+12:002008-04-30T16:03:52.257+12:00Tips & Tricks for using STSADM commandTo save the output of STSADM Command into a text file use the following :<br />eg:stsadm -o addsolution -filename MySoln.wsp >>output.txt 2>&1<br />(Dont remove 2>&1--these are standard dos error handlers.)<br /><br />If we are using -immediate or -time or -local (Asynchronous commands) with STSADM command, then next STSADM command would fail. Like:<br />stsadm -o retractsolution -name Mysolution.wsp -immediate<br />stsadm -o deletesolution -name Mysolution.wsp<br />The second command should execute after the first command has executed completely. But here it would fail.In order to avoid that we have two solutions<br />Solution One:<br /><li> echo some text pause</li><br />Solution Two:<br /><li> <a href="http://technet.microsoft.com/en-us/library/cc262783.aspx">Execadmsvcjobs</a> command.But this should be used very carefully because it would execute all the administrative jobs immediately</li>mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0tag:blogger.com,1999:blog-3640752724182863133.post-65071366493336247732008-04-29T15:29:00.019+12:002009-07-30T23:52:51.551+12:00STSADM Command Line ToolTo use STSADM command line<br /><ul><li>You must be a member of the local Administrators group on the server. When you invoke Stsadm.</li><li>You supply an operation and a set of command-line parameters in the form: <strong>-operation OperationName -parameter value</strong></li><li>For more additional Information : <a href="http://technet.microsoft.com/en-us/library/cc261956.aspx">STSADM Operations</a></ul><br />For more tips and tricks with <a href="http://sanmuki.blogspot.com/2009/02/spdeveloper-handy-dandy-tips.html">STSADM refer this link </a><br /><script type="text/javascript">var rowVisible = true;function toggleDisplay(tbl) {var tblRows = tbl.rows;for (i = 0; i < tblRows.length; i++) {if (tblRows[i].className != "headerRow") {tblRows[i].style.display = (rowVisible) ? "none" : "";}}rowVisible = !rowVisible;}</script><input type="button" value="Click me to hide/expand below table" onclick="toggleDisplay(document.getElementById('MyTable'))" /><table id="MyTable" cellspacing="0" cellpadding="0" width="635" border="1"><colgroup><col width="303"><col width="332"></colgroup><tbody><tr class="headerRow" height="21"><br /><td width="303" height="21">STSCOMMAND</td><td width="332">Description</td></tr><br /><tr height="21"><td width="303" height="21">Activatefeature </td><td width="332">Activates a feature in the feature collection.</td></tr><tr height="46"><td width="303" height="46">Addalternatedomain</td><td width="332">Adds an internal URL and maps it to one of the five URL zones of a Web application or external resource.</td></tr><tr height="46"><td width="303" height="46">Addcontentdb</td><td width="332">Creates a new content database or adds a database that needs to be upgraded when the <span style="font-size:0px;">url and databasename parameters are specified.</span></td></tr><tr height="46"><td width="303" height="46">Adddataconnectionfile</td><td width="332">Adds a new DataConnectionFile to the DataConnectionFiles collection for InfoPath Forms Services.</td></tr><tr height="31"><td width="303" height="31">Add-ecsfiletrustedlocation</td><td width="332">Lets an administrator add a file to the trusted location list.</td></tr><tr height="31"><td width="303" height="31">Add-ecssafedataprovider</td><td width="332">Lets an administrator add a supported provider type to the safe provider list.</td></tr><tr height="21"><td width="303" height="21">Add-ecstrusteddataconnectionlibrary</td><td width="332">Adds a trusted data connection to a library.</td></tr><tr height="21"><td width="303" height="21">Add-ecsuserdefinedfunction</td><td width="332">Adds a user defined function.</td></tr><tr height="61"><td width="303" height="61">Addexemptuseragent</td><td width="332">Adds a user agent, which is typically in the form of a search bot, to receive the XML file that contains the data of the form for indexing instead of the HTML rendering of the form.</td></tr><tr height="31"><td width="303" height="31">Addpath</td><td width="332">Adds a managed path inclusion to a Web application.</td></tr><tr height="46"><td width="303" height="46">Addpermissionpolicy</td><td width="332">Adds a user to a policy role for the Web application based on the specified permission level name and corresponding zone.</td></tr><tr height="21"><td width="303" height="21">Addsolution</td><td width="332">Adds a solution file to the solution store.</td></tr><tr height="21"><td width="303" height="21">Addtemplate</td><td width="332">Adds a site template to the template gallery.</td></tr><tr height="46"><td width="303" height="46">Adduser</td><td width="332">Adds a user account to the specified site collection and assigns it to the specified site group.</td></tr><tr height="31"><td width="303" height="31">Addwppack</td><td width="332">Adds a Web Part package to the server Web Part gallery.</td></tr><tr height="46"><td width="303" height="46">Addzoneurl</td><td width="332">Configures the public URL and maps it to one of the five URL zones of a Web application or external resource.</td></tr><tr height="61"><td width="303" height="61">Allowuserformwebserviceproxy</td><td width="332">Determines whether a user form template (that is, a non-administrator deployed form template published to a content type or a document library) can use the proxy.</td></tr><tr height="31"><td width="303" height="31">Allowwebserviceproxy</td><td width="332">Turns on or off the Web service proxy for the specified Web application.</td></tr><tr height="61"><td width="303" height="61">Authentication</td><td width="332">Authentication provides the user identity input to the authorization process which determines what actions the current user is allowed to perform on a given object.</td></tr><tr height="20"><td width="303" height="41">Backup</td><td width="332">Describes how to back up a site collection, an individual database, a Web application, or an entire farm.</td></tr><tr height="31"><td width="303" height="31">Backuphistory</td><td width="332">Displays a history of backup and restore operations that have been run.</td></tr><tr height="21"><td width="303" height="21">Binddrservice</td><td width="332">Registers a data retrieval service adapter.</td></tr><tr height="46"><td width="303" height="46">Blockedfilelist</td><td width="332">Enables an administrator to add or delete a file type to the blocked file types list for a Web application.</td></tr><tr height="46"><td width="303" height="46">Changepermissionpolicy</td><td width="332">Updates the Web application policy level for a user to enable a change to specific permission levels the user is assigned.</td></tr><tr height="61"><td width="303" height="61">Copyappbincontent</td><td width="332">Copies Web application–specific files, such as page resource (*.resx) files from their respective locations in the 12\CONFIG folder to the correct location in each Web application on the computer.</td></tr><tr height="31"><td width="303" height="31">Createadminvs</td><td width="332">Displays the port number to the SharePoint Central Administration Web site.</td></tr><tr height="46"><td width="303" height="46">Createcmsmigrationprofile</td><td width="332">Creates a migration profile by providing a profile name, database server name, database name, and database user name.</td></tr><tr height="31"><td width="303" height="31">Creategroup</td><td width="332">Lets site collection administrators create new groups from any site collection.</td></tr><tr height="61"><td width="303" height="61">Createsite</td><td width="332">Creates a site collection at the specified Uniform Resource Locator (URL) with the specified user as site collection owner and site collection administrator.</td></tr><tr height="61"><td width="303" height="61">Createsiteinnewdb</td><td width="332">Creates a site at the specified Uniform Resource Locator (URL) and creates a new content database using the user name and password you specify.</td></tr><tr height="31"><td width="303" height="31">Createssp</td><td width="332">Creates a new Shared Services Provider (SSP) in the farm.</td></tr><tr height="31"><td width="303" height="31">Createweb</td><td width="332">Creates a subsite at the specified Uniform Resource Locator (URL).</td></tr><tr height="46"><td width="303" height="46">Databaserepair</td><td width="332">Detects and removes orphaned items from content databases in Windows SharePoint Services.</td></tr><tr height="21"><td width="303" height="21">Deactivatefeature</td><td width="332">Deactivates a feature in the feature collection.</td></tr><tr height="31"><td width="303" height="31">Deleteadminvs</td><td width="332">Unprovisions the SharePoint Central Administration Web site from the local machine.</td></tr><tr height="21"><td width="303" height="21">Deletealternatedomain</td><td width="332">Deletes an internal URL from a URL zone.</td></tr><tr height="21"><td width="303" height="21">Deletecmsmigrationprofile</td><td width="332">Deletes the named migration profile.</td></tr><tr height="46"><td width="303" height="46">Deleteconfigdb</td><td width="332">Unprovisions the local machine from the farm and deletes the configuration database (but does not drop the configuration database).</td></tr><tr height="46"><td width="303" height="46">Deletecontentdb</td><td width="332">Detaches a content database when the Web application, database name, and database server are specified.</td></tr><tr height="31"><td width="303" height="31">Deletegroup</td><td width="332">Deletes a group created in Microsoft Office SharePoint Server 2007.</td></tr><tr height="31"><td width="303" height="31">Deletepath</td><td width="332">Removes an included path from the list of paths managed by Windows SharePoint Services.</td></tr><tr height="46"><td width="303" height="46">Deletepermissionpolicy</td><td width="332">Deletes a permission policy for a user from the site collection by specifiying the URL name and user login.</td></tr><tr height="31"><td width="303" height="31">Deletesite</td><td width="332">Deletes the site collection with the specified URL from the Web application.</td></tr><tr height="31"><td width="303" height="31">Deletesolution</td><td width="332">Removes a Windows SharePoint Services Solution Package (*.wsp) from the solution store.</td></tr><tr height="46"><td width="303" height="46">Deletessp</td><td width="332">Deletes a Shared Services Provider (SSP) in a Web application when the <span style="font-size:0px;">title parameter is specified.</span></td></tr><tr height="31"><td width="303" height="31">Deletessptimerjob</td><td width="332">Deletes all of the timer jobs in the Shared Services Provider (SSP).</td></tr><tr height="31"><td width="303" height="31">Deletetemplate</td><td width="332">Deletes a specified site template from the site template gallery.</td></tr><tr height="31"><td width="303" height="31">Deleteuser</td><td width="332">Deletes a user account from the specified site collection and specified site.</td></tr><tr height="31"><td width="303" height="31">Deleteweb</td><td width="332">Deletes a subsite using the specified Uniform Resource Locator (URL).</td></tr><tr height="31"><td width="303" height="31">Deletewppack</td><td width="332">Removes the Web Parts in a Web Part package from a virtual server.</td></tr><tr height="31"><td width="303" height="31">Deletezoneurl</td><td width="332">Deletes a public URL and the zone to which it is mapped.</td></tr><tr height="46"><td width="303" height="46">Deploysolution</td><td width="332">Deploys files related to a solution from the configuration database to individual front-end Web servers in the farm.</td></tr><tr height="21"><td width="303" height="21">Deploywppack</td><td width="332">Deploys a Web Part package.</td></tr><tr height="31"><td width="303" height="31">Disablessc</td><td width="332">Disables Self-Service Site Creation for the specified Web application.</td></tr><tr height="31"><td width="303" height="31">Displaysolution</td><td width="332">Displays specific solution or Web Part information in a solution store.</td></tr><tr height="46"><td width="303" height="46">Editcmsmigrationprofile</td><td width="332">Edits a migration profile by providing a profile name, database server name, database name, and database user name.</td></tr><tr height="21"><td width="303" height="21">Editcontentdeploymentpath</td><td width="332">Edits and manages a content deployment path.</td></tr><tr height="45"><td width="303" height="146" rowspan="5">Editssp</td><td width="332">Allows the site collection administrator for the Shared Services Administration site to perform the following functions:</td></tr><tr height="30"><td width="332" height="30">Change the databases that a Shared Services Provider (SSP) uses.</td></tr><tr height="30"><td width="332" height="30">Change the SQL credentials associated with the SSP databases.</td></tr><tr height="20"><td width="332" height="20">Modify the service account credentials.</td></tr><tr height="21"><td width="332" height="21">Rename an SSP.</td></tr><tr height="46"><td width="303" height="46">Enablecmsurlredirect</td><td width="332">Activates the Uniform Resource Locator (URL) redirection feature for URLs in Microsoft Content Management Server 2002.</td></tr><tr height="31"><td width="303" height="31">Enablessc</td><td width="332">Enables Self-Service Site Creation for the specified Web application.</td></tr><tr height="31"><td width="303" height="31">Enumalternatedomains</td><td width="332">Lists the internal URLs and specifies the URL zones and public URLs to which they are mapped.</td></tr><tr height="31"><td width="303" height="31">Enumcontentdbs</td><td width="332">Enumerates all content databases in the Web application.</td></tr><tr height="31"><td width="303" height="31">Enumdataconnectionfiledependants</td><td width="332">Enumerates all form that are dependent on the specified data connection file.</td></tr><tr height="31"><td width="303" height="31">Enumdataconnectionfiles</td><td width="332">Enumerates all of the DataConnectionFiles in the collection in alphabetical order.</td></tr><tr height="31"><td width="303" height="31">Enumdeployments</td><td width="332">Enumerates all pending and active deployments in the farm.</td></tr><tr height="31"><td width="303" height="31">Enumexemptuseragents</td><td width="332">Returns the rendering content of the form as an XML instead HTML.</td></tr><tr height="31"><td width="303" height="31">Enumformtemplates</td><td width="332">Lists the administrator-deployed form templates on the farm.</td></tr><tr height="31"><td width="303" height="31">Enumgroups</td><td width="332">Lists all the groups in Microsoft Office SharePoint Server 2007.</td></tr><tr height="31"><td width="303" height="31">Enumroles</td><td width="332">Lists the site groups that are available for use in a particular site or subsite.</td></tr><tr height="31"><td width="303" height="31">Enumservices</td><td width="332">Lists all the services in the Web application within a farm.</td></tr><tr height="46"><td width="303" height="46">Enumsites</td><td width="332">Displays a list of sites that are hosted in a Web application. To find the sites that need to be upgraded, use the <span style="font-size:0px;">redirectedsites parameter.</span></td></tr><tr height="61"><td width="303" height="61">Enumsolutions</td><td width="332">Enumerates the list of Windows SharePoint Services Solution Package (*.wsp) and Web Part packages located in the solution store of the farm.</td></tr><tr height="31"><td width="303" height="31">Enumssp</td><td width="332">Lists all the details of the Shared Services Providers (SSPs) in the farm or of a single SSP.</td></tr><tr height="31"><td width="303" height="31">Enumssptimerjobs</td><td width="332">Enumerates all of the timer jobs in the Shared Services Provider (SSP).</td></tr><tr height="31"><td width="303" height="31">Enumsubwebs</td><td width="332">Lists the subsites that have been created immediately below a particular site.</td></tr><tr height="31"><td width="303" height="31">Enumtemplates</td><td width="332">Lists the site templates that have been submitted to the global site template catalog.</td></tr><tr height="31"><td width="303" height="31">Enumusers</td><td width="332">Lists the users of a particular site collection or subsite.</td></tr><tr height="31"><td width="303" height="31">Enumwppacks</td><td width="332">Lists the Web Part packages currently in the server Web Part gallery.</td></tr><tr height="31"><td width="303" height="31">Enumzoneurls</td><td width="332">Lists all of the public URL and the zones to which they are mapped.</td></tr><tr height="31"><td width="303" height="31">Email</td><td width="332">Sets the e-mail configuration settings for your server.</td></tr><tr height="61"><td width="303" height="61">Execadmsvcjobs</td><td width="332">Permits a user to run any administrative service job in which the Windows SharePoint Services Administration (SPAdmin) service has been disabled.</td></tr><tr height="31"><td width="303" height="31">Export</td><td width="332">Exports site and subsite data from your Microsoft Office SharePoint Server 2007 installation.</td></tr><tr height="31"><td width="303" height="31">Extendvs</td><td width="332">Extends a Windows SharePoint Services 3.0 Web application and creates a new content database.</td></tr><tr height="31"><td width="303" height="31">Extendvsinwebfarm</td><td width="332">Extends a Windows SharePoint Services 3.0 Web application for use in a server farm</td></tr><tr height="31"><td width="303" height="31">Forcedeletelist</td><td width="332">Allows a user to delete a list that might appear to be in a corrupted state.</td></tr><tr height="31"><td width="303" height="31">Formtemplatequiescestatus</td><td width="332">Displays the status of the quiesce process of a form template.</td></tr><tr height="31"><td width="303" height="31">Getadminport</td><td width="332">Returns the administration port for Windows SharePoint Services.</td></tr><tr height="31"><td width="303" height="31">Getdataconnectionfileproperty</td><td width="332">Displays the file property of each data connection file in the store of InfoPath Forms Services.</td></tr><tr height="31"><td width="303" height="31">Getformtemplateproperty</td><td width="332">Retrieves properties on individual InfoPath Form Services templates.</td></tr><tr height="31"><td width="303" height="31">Getsitedirectoryscanschedule</td><td width="332">Displays the current schedule of all site directory links scan jobs to be run.</td></tr><tr height="21"><td width="303" height="21">Getsitelock</td><td width="332">Retrieves the lock status of a site.</td></tr><tr height="31"><td width="303" height="31">Import</td><td width="332">Imports site and subsite data from your Microsoft Office SharePoint Server 2007 installation.</td></tr><tr height="21"><td width="303" height="21">Installfeature</td><td width="332">Installs a feature.</td></tr><tr height="46"><td width="303" height="46">Listlogginglevels</td><td width="332">Lists the current event log and trace log logging levels for each diagnostic logging category that is registered in a farm.</td></tr><tr height="21"><td width="303" height="21">Listregisteredsecuritytrimmers</td><td width="332">Lists all registered security trimmers in the farm.</td></tr><tr height="31"><td width="303" height="31">Localupgradestatus</td><td width="332">Displays the farm and local server components that need to be upgraded.</td></tr><tr height="31"><td width="303" height="31">Managepermissionpolicylevel</td><td width="332">Enables an administrator to manage the policy levels for a Web application.</td></tr><tr height="84"><td width="303" height="84">Mergecontentdbs</td><td width="332">Permits a site collection to be moved from one content database to another when the <span style="font-size:0px;">souredatabasename and destinationdatabasename parameters are specified.</span></td></tr><tr height="31"><td width="303" height="31">Migrateuser</td><td width="332">Migrates a user account in Windows SharePoint Services 3.0 to a new user name and binary ID.</td></tr><tr height="31"><td width="303" height="31">Osearch</td><td width="332">Manages the Office SharePoint Server Search service.</td></tr><tr height="31"><td width="303" height="31">Osearchdiacriticsensitive</td><td width="332">Enables or disables the diacritic sensitivity setting.</td></tr><tr height="31"><td width="303" height="31">Peoplepicker-getsiteuseraccountdirectorypath</td><td width="332">Retrieves the user account directory path setting for the site collection.</td></tr><tr height="65"><td width="303" height="65">Peoplepicker-setsiteuseraccountdirectorypath</td><td width="332">Sets the site user account directory path to a specific Organizational Unit (OU) in the same domain when the <span style="font-size:0px;">url and path parameters are specified.</span></td></tr><tr height="61"><td width="303" height="61">Preparetomove</td><td width="332">Prepares sites and content databases before moving to a new Web application by setting up the profile and membership synchronization service.</td></tr><tr height="31"><td width="303" height="31">Profilechangelog</td><td width="332">Maintains a change log that records the changes made to the user profiles.</td></tr><tr height="31"><td width="303" height="31">Profiledeletehandler</td><td width="332">Gives an administrator a chance to run a workflow when a user is about to be deleted.</td></tr><tr height="31"><td width="303" height="31">Provisionservice</td><td width="332">Starts or stops the SPService on the local computer or a custom service.</td></tr><tr height="46"><td width="303" height="46">Quiescefarm</td><td width="332">Temporartily suspends the farm’s ability to accept new sessions that are essential to rendering infopath forms on a server.</td></tr><tr height="21"><td width="303" height="21">Quiescefarmstatus</td><td width="332">Displays the quiesce status of the server farm.</td></tr><tr height="21"><td width="303" height="21">Quiesceformtemplate</td><td width="332">Temporarily takes a form template offline.</td></tr><tr height="31"><td width="303" height="31">Reconvertallformtemplates</td><td width="332">Upgrades the form template cached data to run on the upgraded server.</td></tr><tr height="61"><td width="303" height="61">Refreshdms</td><td width="332">Refreshes the Directory Management Service if a database is restored or moved to a location where the incoming e-mail settings are not correct.</td></tr><tr height="31"><td width="303" height="31">Refreshsitedms</td><td width="332">Performs the same function as the <span style="font-size:0px;">Refreshdms operation but on a site collection level.</span></td></tr><tr height="46"><td width="303" height="46">Registersecuritytrimmer</td><td width="332">Enterprise Search in Microsoft Office SharePoint Server 2007 performs security trimming of search results at query time.</td></tr><tr height="46"><td width="303" height="46">Registerwsswriter</td><td width="332">Enables the Windows SharePoint Services VSS Writer service (known as WSS Writer service) on any front-end Web server.</td></tr><tr height="31"><td width="303" height="31">Removedataconnectionfile</td><td width="332">Removes all DataConnectionFiles from the DataConnectionFiles collection.</td></tr><tr height="31"><td width="303" height="31">Removedrservice</td><td width="332">Removes a data retrieval service from the list of data retrieval services.</td></tr><tr height="31"><td width="303" height="31">Remove-ecsfiletrustedlocation</td><td width="332">Lets an administrator remove a file from the trusted location list.</td></tr><tr height="31"><td width="303" height="31">Remove-ecssafedataprovider</td><td width="332">Lets an administrator remove a supported provider type to the safe provider list.</td></tr><tr height="21"><td width="303" height="21">Remove-ecstrusteddataconnectionlibrary</td><td width="332">Removes a trusted data connection from a library.</td></tr><tr height="31"><td width="303" height="31">Remove-ecsuserdefinedfunction</td><td width="332">Removes a user-defined function from Excel Calculation Services.</td></tr><tr height="46"><td width="303" height="46">Removeexemptuseragent</td><td width="332">Removes a user agent, which is typically in the form of a search bot, from the ExemptUserAgent collection.</td></tr><tr height="46"><td width="303" height="46">Removesolutiondeploymentlock</td><td width="332">Removes the solution deployment lock for the specified server or all servers from the back-end database.</td></tr><tr height="31"><td width="303" height="31">Renameserver</td><td width="332">Changes the name of the specified server in the configuration database.</td></tr><tr height="31"><td width="303" height="31">Renamesite</td><td width="332">Changes a URL of a host-named site collection to a new URL.</td></tr><tr height="21"><td width="303" height="21">Renameweb</td><td width="332">Changes the URL of a subsite.</td></tr><tr height="46"><td width="303" height="46">Restore</td><td width="332">Explains how a restoration of a site collection, an individual database, a Web application, or an entire farm is performed.</td></tr><tr height="31"><td width="303" height="31">Restoressp</td><td width="332">Creates a Shared Service Provider using a restored database.</td></tr><tr height="31"><td width="303" height="31">Retractsolution</td><td width="332">Retracts the specified solution’s deployment, and removes files from the front-end Web server.</td></tr><tr height="31"><td width="303" height="31">Retractwppack</td><td width="332">Retracts the deployment of a specified Web Part package.</td></tr><tr height="31"><td width="303" height="31">Runcmsmigrationprofile</td><td width="332">Runs a named migration profile. The profile name is the only required parameter.</td></tr><tr height="21"><td width="303" height="21">Runcontentdeploymentjob</td><td width="332">Runs a named deployment job.</td></tr><tr height="31"><td width="303" height="31">Scanforfeatures</td><td width="332">Scans for new features in the file system, and if new features are present, installs them.</td></tr><tr height="46"><td width="303" height="46">Setadminport</td><td width="332">Changes the default zone Uniform Resource Locator (URL) and/or application pool located on the SharePoint Central Administration Web site.</td></tr><tr height="31"><td width="303" height="31">Setbulkworkflowtaskprocessingschedule</td><td width="332">Sets the schedule for when tasks are processed by using the <span style="font-size:0px;">Process all tasks option.</span></td></tr><tr height="46"><td width="303" height="46">Setconfigdb</td><td width="332">Creates a new configuration database in a farm or joins the local computer to an existing farm's configuration database.</td></tr><tr height="31"><td width="303" height="31">Setcontentdeploymentjobschedule</td><td width="332">Enables the user to create an advanced schedule to run a deployment job.</td></tr><tr height="31"><td width="303" height="31">Setdataconnectionfileproperty</td><td width="332">Sets a file property to a data connection file in the store of InfoPath Forms Services.</td></tr><tr height="31"><td width="303" height="31">Setdefaultssp</td><td width="332">Sets a Shared Services Provider (SSP) as the default SSP in a farm.</td></tr><tr height="31"><td width="303" height="31">Set-ecsexternaldata</td><td width="332">Lets an administrator set an external data connection to Excel Calculation Services.</td></tr><tr height="31"><td width="303" height="31">Set-ecsloadbalancing</td><td width="332">Lets an administrator define load balancing for Excel Calculation Services.</td></tr><tr height="31"><td width="303" height="31">Set-ecsmemoryutilization</td><td width="332">Lets an administrator determine memory allocation for Excel Calculation Services.</td></tr><tr height="31"><td width="303" height="31">Set-ecssecurity</td><td width="332">Lets an administrator set security settings for Excel Calculation Services.</td></tr><tr height="31"><td width="303" height="31">Set-ecssessionmanagement</td><td width="332">Lets an administrator set session management settings for Excel Calculation Services.</td></tr><tr height="46"><td width="303" height="46">Set-ecsworkbookcache</td><td width="332">Lets an administrator set workbook cache settings on disk and in memory for Excel Calculation Services.</td></tr><tr height="31"><td width="303" height="31">Setformtemplateproperty</td><td width="332">Sets the properties of an individual form template.</td></tr><tr height="46"><td width="303" height="46">Setholdschedule</td><td width="332">Sets the schedule to process all records that are on hold (records whose retention schedules are suspended).</td></tr><tr height="46"><td width="303" height="46">Setlogginglevel</td><td width="332">Sets the Windows event log and trace log logging level for one or more diagnostic logging categories registered in the farm.</td></tr><tr height="46"><td width="303" height="46">Setpolicyschedule</td><td width="332">Sets the schedule for processing changes to a policy on the items that are impacted by that policy.</td></tr><tr height="46"><td width="303" height="46">Setrecordsrepositoryschedule</td><td width="332">Sets the schedule to process all records that have been submitted to Records Center sites in the farm.</td></tr><tr height="31"><td width="303" height="31">Setsearchandprocessschedule</td><td width="332">Sets the schedule for when the search and process timer job runs.</td></tr><tr height="31"><td width="303" height="31">Setsitedirectoryscanschedule</td><td width="332">Sets a schedule for a job to run the site directory links scan.</td></tr><tr height="46"><td width="303" height="46">Setsitelock</td><td width="332">Sets a value that specifies whether the site collection is locked and unavailable for read or write access.</td></tr><tr height="76"><td width="303" height="76">Setsspport</td><td width="332">Updates the port or ports for the shared Microsoft Internet Information Services (IIS) Web site, "Office Server Web Services", which used by Microsoft Office SharePoint Server 2007 Web services.</td></tr><tr height="21"><td width="303" height="21">Setworkflowconfig</td><td width="332">Enables or disables the workflow settings.</td></tr><tr height="31"><td width="303" height="31">Siteowner</td><td width="332">Sets the primary or secondary administrator of a site collection.</td></tr><tr height="61"><td width="303" height="61">Sync</td><td width="332">Configures the Windows SharePoint Services 3.0 synchronization job. Normally, this operation is used in conjunction with the <span style="font-size:0px;">preparetomove operation</span></td></tr><tr height="61"><td width="303" height="61">Syncsolution</td><td width="332">Performs a synchronization of the Windows SharePoint Services Solution Package (WSP) solutions stored in the configuration database with the files stored on disk.</td></tr><tr height="46"><td width="303" height="46">Tzmove</td><td width="332">Allows an administrator to update data that is affected by a change in the start and/or end of Daylight Saving time (DST).</td></tr><tr height="31"><td width="303" height="31">Unextendvs</td><td width="332">Removes Windows SharePoint Services 3.0 from a particular Web application.</td></tr><tr height="31"><td width="303" height="31">Uninstallfeature</td><td width="332">Removes the specified feature definition from the collection of feature definitions in the farm.</td></tr><tr height="46"><td width="303" height="46">Unquiescefarm</td><td width="332">Resumes the farm’s ability to accept new sessions that are essential to rendering InfoPath forms on a server.</td></tr><tr height="31"><td width="303" height="31">Unquiesceformtemplate</td><td width="332">Restores a specific form template for use on the server.</td></tr><tr height="31"><td width="303" height="31">Unregistersecuritytrimmer</td><td width="332">Unregisters a custom security trimmer when the <span style="font-size:0px;">ssp and id parameters are specified.</span></td></tr><tr height="46"><td width="303" height="46">Unregisterwsswriter</td><td width="332">Disables the Windows SharePoint Services VSS Writer service (known as WSS Writer service) on any front-end Web server.</td></tr><tr height="21"><td width="303" height="21">Updateaccountpassword</td><td width="332">Updates the Web application pool passwords.</td></tr><tr height="61"><td width="303" height="61">Updatefarmcredential</td><td width="332">Updates the Web application pool for the SharePoint Central Administration Web site and the Windows SharePoint Services Timer service (SPTimer).</td></tr><tr height="31"><td width="303" height="31">Upgrade</td><td width="332">Upgrades the specified site collection during a gradual upgrade.</td></tr><tr height="76"><td width="303" height="76">Upgradesolution</td><td width="332">Upgrades an existing solution. The solution to be upgraded could be either deployed or not deployed; however, the <span style="font-size:0px;">immediate or time parameters apply only if the solution has been deployed.</span></td></tr><tr height="106"><td width="303" height="106">Upgradetargetwebapplication</td><td width="332">Prepares the environment for the gradual upgrade of a specific version 2.0 Web application by moving the existing version 2.0 Web application to a new URL and making a new version 3.0 Web application that is based on the existing version 2.0 Web application and associated settings.</td></tr><tr height="21"><td width="303" height="21">Userrole</td><td width="332">Adds or deletes permission levels to site groups.</td></tr><tr height="31"><td width="303" height="31">Verifyformtemplate</td><td width="332">Verifies that the form template can be browser-enabled.</td></tr><tr height="21"><td height="21"><a name="RANGE!A178">Properties</a></td><td></td></tr><tr height="21"><td width="303" height="21">Property name</td><td width="332">Description</td></tr><tr height="21"><td width="303" height="21">Alerts-enabled</td><td width="332">Turns alerts on or off.</td></tr><tr height="31"><td width="303" height="31">Alerts-limited</td><td width="332">Specifies the number of alerts to which a user can create.</td></tr><tr height="31"><td width="303" height="31">Alerts-maximum</td><td width="332">Specifies the maximum number of alerts a user can create.</td></tr><tr height="31"><td width="303" height="31">Avallowdownload</td><td width="332">Specifies whether users can download infected documents to their local computers.</td></tr><tr height="31"><td width="303" height="31">Avcleaningenabled</td><td width="332">Specifies whether antivirus cleaning is enabled or disabled.</td></tr><tr height="31"><td width="303" height="31">Avdownloadscanenabled</td><td width="332">Specifies whether documents are scanned when they are downloaded.</td></tr><tr height="31"><td width="303" height="31">Avnumberofthreads</td><td width="332">Specifies the number of threads to use for antivirus processes.</td></tr><tr height="31"><td width="303" height="31">Avtimeout</td><td width="332">Specifies how long to wait before an antivirus process times out.</td></tr><tr height="31"><td width="303" height="31">Avuploadscanenabled</td><td width="332">Specifies whether documents are scanned when they are uploaded.</td></tr><tr height="81"><td width="303" height="81">Change-log-expiration-enabled</td><td width="332"><a onclick="javascript:Track('ctl00_rs1_mainContentContainer_ctl00ctl00_rs1_mainContentContainer_ctl183',this);" href="http://technet.microsoft.com/en-us/library/cc261921.aspx">Specifies whether change logs are deleted after the time span defined in the Change-log-retention-period: Stsadm property (Office SharePoint Server) property.</a></td></tr><tr height="31"><td width="303" height="31">Change-log-retention-period</td><td width="332">Specifies the amount of time to preserve change logs</td></tr><tr height="31"><td width="303" height="31">Command-line-upgrade-running</td><td width="332">Specifies whether the upgrade process has already been started.</td></tr><tr height="21"><td width="303" height="21">Data-retrieval-services-enabled</td><td width="332">Turns data retrieval services on or off.</td></tr><tr height="46"><td width="303" height="46">Data-retrieval-services-inherit</td><td width="332">Specifies whether the Web application inherits data retrieval service settings that are located on the SharePoint Central Administration Web site.</td></tr><tr height="21"><td width="303" height="21">Data-retrieval-services-oledb-providers</td><td width="332">Obsolete.</td></tr><tr height="31"><td width="303" height="31">Data-retrieval-services-response-size</td><td width="332">Specifies the response size of the data source that is returned to the data retrieval service.</td></tr><tr height="21"><td width="303" height="21">Data-retrieval-services-timeout</td><td width="332">Specifies the request time out setting.</td></tr><tr height="21"><td width="303" height="21">Data-retrieval-services-update</td><td width="332">Turns the support for update queries on or off.</td></tr><tr height="31"><td width="303" height="31">Data-source-controls-enabled</td><td width="332">Turns the data source controls on the server on or off.</td></tr><tr height="46"><td width="303" height="46">Database-command-timeout</td><td width="332">Retrieves or sets the wait time before terminating the attempt to execute a command and generating an error.</td></tr><tr height="31"><td width="303" height="31">Database-connection-timeout</td><td width="332">Retrieves an open connection or sets a connection to a Microsoft SQL Server database.</td></tr><tr height="31"><td width="303" height="31">Days-to-show-new-icon</td><td width="332">Specifies the number of days to display the "New" icon for items added to a Web site.</td></tr><tr height="31"><td width="303" height="31">Dead-site-auto-delete</td><td width="332">Turns on or off the setting to delete the site collection</td></tr><tr height="31"><td width="303" height="31">Dead-site-notify-after</td><td width="332">Specifies the number of days to wait before sending notifications</td></tr><tr height="21"><td width="303" height="21">Dead-site-num-notifications</td><td width="332">Specifies the number of notifications to send</td></tr><tr height="46"><td width="303" height="46">Defaultquotatemplate</td><td width="332">Specifies the default quota template to be used when creating new site collection on a specified Web application.</td></tr><tr height="31"><td width="303" height="31">Defaulttimezone</td><td width="332">Specifies the time zone for sites that are created in a Web application.</td></tr><tr height="21"><td width="303" height="21">Delete-web-send-email</td><td width="332">Deletes the site collection if use is not confirmed</td></tr><tr height="31"><td width="303" height="31">Irmaddinsenabled</td><td width="332">Specifies a rights management platform other than Windows Rights Management Server.</td></tr><tr height="31"><td width="303" height="31">Irmrmscertserver</td><td width="332">Specifies the location of the Windows Rights Management Services server.</td></tr><tr height="46"><td width="303" height="46">Irmrmsenabled</td><td width="332">Controls whether the server should use the Windows RMS infrastructure instead of another rights management platform.</td></tr><tr height="76"><td width="303" height="76">Irmrmsusead</td><td width="332">Specifies that Microsoft Office SharePoint Server 2007 should use the location of the RMS server that is stored in Active Directory, rather than an administrator manually specifying the location of the Windows RMS.</td></tr><tr height="46"><td width="303" height="46">Job-ceip-datacollection</td><td width="332">Specifies the time schedule for when Customer Experience Improvement Program (CEIP) data is collected.</td></tr><tr height="31"><td width="303" height="31">Job-change-log-expiration</td><td width="332">Specifies the time schedule when the change log timer job occurs.</td></tr><tr height="31"><td width="303" height="31">Job-config-refresh</td><td width="332">Specifies the schedule for the configuration refresh job.</td></tr><tr height="31"><td width="303" height="31">Job-database-statistics</td><td width="332">Specifies the time schedule when database statistics are collected.</td></tr><tr height="46"><td width="303" height="46">Job-dead-site-delete</td><td width="332">Specifies the frequency interval and time range to delete unused Web sites automatically, for example, "Weekly at Sat 0:00:00".</td></tr><tr height="31"><td width="303" height="31">Job-immediate-alerts</td><td width="332">Specifies the frequency to check for alerts that are to be sent immediately.</td></tr><tr height="31"><td width="303" height="31">Job-recycle-bin-cleanup</td><td width="332">Specifies the time schedule for a cleanup of the Recycle Bin to occur.</td></tr><tr height="31"><td width="303" height="31">Job-usage-analysis</td><td width="332">Lets an administrator set the time interval for usage processing.</td></tr><tr height="31"><td width="303" height="31">Job-watson-trigger</td><td width="332">Displays the time schedule of the Windows SharePoint Services Watson Upload job.</td></tr><tr height="31"><td width="303" height="31">Job-workflow</td><td width="332">Sends the workflow events that have been queued and delivers them to workflows.</td></tr><tr height="31"><td width="303" height="31">Job-workflow-autoclean</td><td width="332">Specifies the time schedule for when a scan occurs to delete workflow instance data.</td></tr><tr height="31"><td width="303" height="31">Job-workflow-failover</td><td width="332">Specifies a schedule for restarting workflow operations that fail because of external reasons.</td></tr><tr height="46"><td width="303" height="46">Large-file-chunk-size</td><td width="332">Specifies the amount of data that can be read from the server running Microsoft SQL Server at one time.</td></tr><tr height="31"><td width="303" height="31">Max-file-post-size</td><td width="332">Specifies the maximum allowable size for a single upload of content to any site.</td></tr><tr height="31"><td width="303" height="31">Peoplepicker-activedirectorysearchtimeout</td><td width="332">Configures the timeout when a query is issued to Active Directory.</td></tr><tr height="31"><td width="303" height="31">Peoplepicker-distributionlistsearchdomains</td><td width="332">Restricts the search of a distribution list to a specific subset of domains.</td></tr><tr height="46"><td width="303" height="46">Peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode</td><td width="332">Specifies not to search Active Directory when the current port is using forms-based authentication.</td></tr><tr height="31"><td width="303" height="31">Peoplepicker-onlysearchwithinsitecollection</td><td width="332">Displays only users that are members of the site collection.</td></tr><tr height="31"><td width="303" height="31">Peoplepicker-searchadcustomfilter</td><td width="332">Enables a farm administrator to specify a unique search query.</td></tr><tr height="31"><td width="303" height="31">Peoplepicker-searchadcustomquery</td><td width="332">Permits the administrator to set the custom query that is sent to Active Directory.</td></tr><tr height="31"><td width="303" height="31">Peoplepicker-searchadforests</td><td width="332">Permits a user to search from a second one-way trusted forest or domain.</td></tr><tr height="46"><td width="303" height="46">Peoplepicker- serviceaccountdirectorypaths</td><td width="332">Enables a farm administrator to manage the site collection that has a specific organizational unit (OU) setting defined.</td></tr><tr height="46"><td width="303" height="46">Presenceenabled</td><td width="332">Allows users of a SharePoint site to see if other users are online and send instant messages to them.</td></tr><tr height="31"><td width="303" height="31">Recycle-bin-cleanup-enabled</td><td width="332">Specifies whether a cleanup to the recycle bin occurs.</td></tr><tr height="21"><td width="303" height="21">Recycle-bin-enabled</td><td width="332">Turns the Recycle Bin on or off.</td></tr><tr height="31"><td width="303" height="31">Recycle-bin-retention-period</td><td width="332">Specifies the retention period, in days, of deleted items in the Recycle Bin.</td></tr><tr height="46"><td width="303" height="46">Second-stage-recycle-bin-quota</td><td width="332">Specifies how much hard disk space is available to a second stage Recycle Bin as a percentage of the quota allotted to the Web application.</td></tr><tr height="31"><td width="303" height="31">Token-timeout</td><td width="332">Specifies the amount of time before a user token times out.</td></tr><tr height="31"><td width="303" height="31">Usageprocessingenabled</td><td width="332">Configures whether the usage analysis process is turned on or off.</td></tr><tr height="21"><td width="303" height="21">Workflow-cpu-throttle</td><td width="332">Obsolete.</td></tr><tr height="31"><td width="303" height="31">Workflow-eventdelivery-batchsize</td><td width="332">Specifies the maximum number of work items that will be paged in to a processing timer job.</td></tr><tr height="46"><td width="303" height="46">Workflow-eventdelivery-throttle</td><td width="332">The number of workflows that can be processed (that is, using the processor, not idle) at the same time across all Web front-end computers.</td></tr><tr height="31"><td width="303" height="31">Workflow-eventdelivery-timeout</td><td width="332">The time value a workflow job must run without the job timing out.</td></tr><tr height="21"><td width="303" height="21">Workflow-timerjob-cpu-throttle</td><td width="332">Obsolete.</td></tr><tr height="31"><td width="303" height="31">Workitem-eventdelivery-batchsize</td><td width="332">The paging size for events delivered to a single workflow instance.</td></tr><tr height="46"><td width="303" height="46">Workitem-eventdelivery-throttle</td><td width="332">Specifies the maximum number of work items that can be obtained on a given query for runnable work items </td></tr></tbody></table>mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com2tag:blogger.com,1999:blog-3640752724182863133.post-26431663380994711182008-04-29T14:13:00.007+12:002008-04-29T14:27:50.354+12:00How to Identify the SPFile.Properties hash table collectionusing Microsoft.Sharepoint;<br />using System.Collections;<br /><br /><br />SPSite _site = new SPSite("http://servername");<br />SPFile _file = _site.OpenWeb().Folders("/Pages").File[1];<br />Hashtable ht = _file.Properties;<br />StringBuilder sb = new StringBuilder();<br />sb.AppendLine("**The Properties of " + _file.Name.ToString()+" are as follows**");<br />foreach(DictionaryEntry de in ht)<br />{<br /> sb.Appendline("The key is " + de.Key.ToString() + " ; Value is " + de.Value.ToString() );<br /><br />}<br /><br />MessageBox.Show(sb.ToString());<br /><br />To Identify whether page is ghosted or not use SPFile.CustomizedPageStatus.mukihttp://www.blogger.com/profile/11810040290099246474noreply@blogger.com0