Skip Ribbon Commands
Skip to main content

Chad Schultz

:

About this blog
Welcome to Chad Schultz's blog.
 

 Chad's Links

 
Chad's Facebook Profile
Chad's Linkedin Profile
Etsy2go - Windows Phone 7 App
Jose's Blog
My CodeProject.com Article
My Technet Blog
SharePoint Fargo Frontlines Blog
SharePoint Support Blog
 

 Maria's Links

 
  
Maria's Facebook Profile
Maria's Jewelry
Maria's Live Space
Sign up for Etsy
SwarmSoft
Home
The most interesting man in his own world.
November 12
Performance Monitor, Typeperf and PAL

To dump all of the performance counter instances on a system:

Typeperf.exe -qx > c:\perfcounters.txt
 
To collect the perfomance data on all of the counter instances on a system for 30 minutes collecting data every 15 seconds to standard Perfomance Monitor format:

Typeperf.exe -f BIN -cf c:\perfcounters.txt -o c:\perf.blg -si 15 -sc 120
 
To schedule the Typeperf to collect based on and event in the Event Log:
EventTriggers.exe /create /tr "SP Collect Performance" /l application /eid 4133 /tk "Typeperf.exe -f BIN -cf c:\perfcounters.txt -o c:\perf.blg -si 15 -sc 120"
 
* Command Arguments:
eventtriggers[.exe] /create [/s Computer [/u Domain\User [/p Password]]] /tr TriggerName [/l [APPLICATION] [SYSTEM] [SECURITY] ["DNS Server"] [LOG] [DirectoryLogName] [*] ] {[/eid ID]|[/t {ERROR|INFORMATION|WARNING|SUCCESSAUDIT|FAILUREAUDIT}]|[/so Source]} [/d Description] /tk TaskName [/ru {[Domain\]User | "System"} [/rp Password]]
 
* More Info:
 
To fix the w3wp process instances to show the PID:

unlodctr.exe .NetFramework

c:\Windows\Microsoft.Net\Framework\v2.0.50727\lodctr.exe corperfmonsymbols.ini


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance\ProcessNameFormat DWORD 2
 
* More Info:
 
PAL download location:
www.codeplex.com/PAL

November 10
Mount VHD in 1 click in Windows 7 and Windows 2008 R2

Quick post on this tool. Makes it much easier to mount a VHD than Computer Management->Disk Management.
 

May 05
SharePoint Keyword Terms; AKA Best Bets

Since Office SharePoint Server 2007 and Search Server 2008 best bets are search related you would think that they are Shared Service Provider specific, but this is not the way to think about them. Yes, the actual best bets that are defined in a SharePoint site collection are stored in the SSP database, the scope of them are a site collection. This means that if you define best bets in one site collection you cannot use the same entries in another site collection. If you wanted the same best bets you would have to enter the same best bets for each site collection. This is why you go to the actual site settings page to enter the keywords and not the SSP administration site.
These Technet and Office online articles do not specifically go over what the scope is for best bets they mostly go over how to enter the keywords.
 
Add, edit, and delete keyword Best Bets
 
Add keyword terms with Best Bets (Office SharePoint Server)
 
You can however return best bets from one site collection in the search center of another site collection by changing the site collection's search settings page (/_layouts/enhancedsearch.aspx).


April 18
SharePoint Programming Insights

The SPWeb.SiteUsers method run the following stored procedures in SQL:
 
proc_GetTpWebMetaDataAndListMetaData
proc_SecListAllSiteMembers <dbo.Sites.Id>
 
The SPWeb.AllUsers method run the following stored procedures in SQL:
 
proc_GetTpWebMetaDataAndListMetaData
proc_SecListAllWebMembers <dbo.Sites.Id> , <dbo.Webs.Id>

March 09
How to add a shortcut (.lnk) file to your Visual Studio setup project

Adding a shortcut is not as easy as you would expect in a Visual Studio setup project. To add a shortcut to the application's start menu you have to have a file already to the content. The only thing is that you cannot add a .lnk file to the setup project. I found the following KB article to add the .lnk file to my main project; http://support.microsoft.com/kb/837220. Okay, this works, but I still cannot add the files to the setup project unless I add the .lnk files as content, but checking the outputs of the content it includes many more files I do not need. Here is what I did to get shortcuts in my applications start menu.

 

1. Created a shortcut to my content in the main project's folder; in this case it was a web link. The shortcut path was "%programfiles%\Internet Explorer\iexplore.exe" www.chadschultz.com.






​2. Went to my project and clicked Show All Files, as described in the KB article.


3. Renamed the .lnk file to .txt.


4. Added the .txt file to the setup project.
5. Renamed the .txt file back to .lnk.



6. Saved and closed Visual Studio.

7. Edited Setup.vdproj file in notepad.
8. Replaced the .txt for the shortcut to .lnk
9. Reopened Visual Studio. The .lnk files were listed in the setup project and could be used now in the File System Editor of the setup project to create a link in the applications start menu.

January 27
Stop reading this post and backup your data!

No, I mean it, really; I'll wait right here.
As you can imagine I was bitten by my own carelessness. No disaster recovery plan. This site was affected as was some of my source code and another website. Almost 5 months worth of data lost. The only thing that saved me was that I happened to have my source code on my Vista machine. Good thing I have Windows 7 loaded on the same machine as a VHD and did not wipe out my Vista OS. The other thing that saved me was live.com cache of this site. I had to recreate each post since August 2008, but I did get it all back.
I now have Windows operating system backups and SQL backups scheduled so I should be in a better position in the future if the unfurtunate happens.
It's just one of those things you don't think about on your home systems until it's too late.

December 02
How can my My Site and My Links links break Let me count the ways

I just took a lot of time tracking down all of the ways that the "My Site" and "My Links" Microsoft Office SharePoint Server 2007 links can be missing from the top right-hand side of MOSS sites.
Here is a list of the different ways the links can go missing and the solutions to get the links back.

Edit master page
If the 2 tags below are missing from your master page you just deleted your "My Site" and "My Links" links.
If these controls are missing, place the controls back into your master page code and the links will be back.

Lack of AAMs on a host header web application
If you site is on on the default port 80 site and uses a host header you may still be able to get to your SharePoint site without an AAM set, but you will not be able to view the "My Site" or "My Links" links.
Enter and AAM for the web application that is hosted with a host header on the default port 80 site.

MySite feature deactivated
If the MySite feature is disabled the links will not show up. This feature is a hidden feature, so you cannot check the activation of the feature through the Site Settings->Site Features/Site Collection Features or at Central Administration->Operations->Manage Farm Features.
To reactivate the feature use the commands below.
stsadm -o deactivefeature -name MySite
stsadm -o activatefeature -name MySite

No SSP
If you do not have an SSP then you will no have the "My Site" or "My Links" links. Of course you will no have My Sites at all this this makes perfect sense. To fix Create a new SSP and MySite web application.

Web application not associated with an SSP
If your web application is not associated with an SSP you will not have the links. This normally will not happen if you have an SSP as the web applications will be associated with an SSP, but sometimes things happen and a web application is not associated to an SSP, or the GUI and STSADM tools report that the web application is associated, but if fact it is not. To fix this try to re-associate the web application using the SSP Administration GUI or stsadm -o associatewebapp command to re-associate the web application.

Web application content database not synched with SSP
To find if you are in this situation run stsadm -o synch -listolddatabases <#OF DAYS> to list content databases that have not synched with their SSP in the number of days.

As always, remember to backup and verify the backup of your SharePoint farm before making changes.

December 02
Manage SharePoint Forms Based Authentication (FBA) Users and Roles

You have SharePoint Forms Based Authentication setup using a SQL profile source. Based on some of the following articles.
Now what? How do you get users into the database? Here are some of the ways you can manage users, roles and profiles for the SQL ASP.Net authentication provider.

Visual Studio ASP.NET Configuration
Open a website with Visual Studio and the Website menu will be available. If the website is SharePoint you may only be able to open a Local IIS web site or File System web site from the File->Open->Web Site menu as you will not be able to open a SharePoint site from FTP or Remote or Source Control.
FBA Image 1

CreateUserWizard ASP.Net Control
Open your SharePoint site in Designer 2007 and create a new ASPX file. Open the file in design view and drag a CreateUserControl from the Toolbox->ASP.NET Controls->Login onto the page. Save the ASPX page and browse to the new page. Enter values to create a new user and click "Create User" button. This will only work if FBA is already setup as it will use the membership provider set in the web.config file for the web application.
FBA Image 1

IIS7 Manager
In Windows Vista and Windows 2008 you can manage all of the users, roles and profile information right from the IIS manager GUI.
FBA Image 1
FBA Image 1

Membershipseeder tool from CodePlex.com

I'm sure there are other ways to manage ASP.Net authentication provider users, roles and profiles, but these are the ones I know about and can recommend.

November 04
SharePoint, Open Office Integration

Just because you use Open Office doesn't mean you can't also use SharePoint also. This Open Office extension will let you save to WebDav. Which means you can save to a SharePoint document library.
 

October 17
More information on SharePoint Usage Analysis

In a previous post I listed SQL code that would list the GUIDs of SharePoint web applications. This is useful when tracking down Usage Analysis issues so you can easily match the folder GUIDs with the rows returned from the SQL query.
Well, hopefully now that there is a new update with fixes for URLs that are over 260 characters being processed by the Usage Analysis engine less troubleshooting will need to be done by SharePoint admins.

Anyway, here are the links the SharePoint Joel's blog post on the update, the link to the August 26 2008 MOSS update that addresses the issue and my previous post on how to query the web application GUIDs in the farm configuration database.
 
 
 

1 - 10Next