Archive for August, 2007

Vista - Reboot required error message

Wednesday, August 29th, 2007

I recently installed some updates that Vista had downloaded from Windows Update. After the updates were installed, I was asked to reboot my computer as expected. However, after the reboot when I signed in, I got a strange error/warning message that said “Reboot Required. A change occurred to your Windows license. You must restart your computer or Windows will stop working.”

A Change Occurred To Your Windows License

I also remember Vista setting up personal settings upon login as is customary for new profiles when users first login. I thought this was pretty strange since my profile already existed on the computer. However even though it appeared that Vista was creating me a new profile, all my settings and files were untouched.

Anyways, I reboot the computer just like the warning/error message told me to and now things seem fine. Very Wierd.

Barack Obama on Jon Stewart’s Daily Show

Thursday, August 23rd, 2007

And In case you missed it, this is a Satellite interview from earlier on in the race-

Cannot use SharePoint to send an email to a list or library

Wednesday, August 22nd, 2007

MOSS 2007 allows for the ability to send emails (incoming email) to Document Libraries and Discussion lists etc., so that content is automatically populated in these lists and libraries.

Sharepoint also allows the ability to send out emails (outgoing email) for things such as Content Deployment jobs.

We put 2 & 2 together and thought - “Why don’t we setup a list called ‘Alerts’ that will receive daily emails from our Content Deployment job? That way whoever wants to receive these can setup an ‘Alert’ on the Alerts list”. It was an excellent idea except for the fact that it DIDN’T work!

After a bit of snooping around it turns out that Sharepoint doesn’t like receiving email from itself! Here is the email that was dropped into the SMTP drop folder and was picked up by the timer service-

   1: x-sender: ALERTS@computer.domain
   2: x-receiver: ALERTS@computer.domain
   3: Received: from computer ([127.0.0.1]) by computer.domain with Microsoft SMTPSVC(6.0.3790.1830);
   4:      Wed, 22 Aug 2007 17:50:37 -0400
   5: Date: 22 Aug 2007 17:50:37 -0400
   6: From: <ALERTS@computer.domain>
   7: To: <ALERTS@computer.domain>
   8: Content-Transfer-Encoding: 8bit
   9: Content-Type: text/html; charset=utf-8
  10: Subject: JOB FAILED: Content deployment job ‘INCREMENTAL deploy’ started at 8/22/2007 5:50:31 PM
  11: MIME-Version: 1.0
  12: X-Mailer: Windows SharePoint Services (version 3)
  13: Return-Path: ALERTS@computer.domain
  14: Message-ID: <computerXvpFVjCR00000005@computer.domain>
  15: X-OriginalArrivalTime: 22 Aug 2007 21:50:37.0488 (UTC) FILETIME=[79882B00:01C7E506]
  16:  
  17: The content deployment job ‘INCREMENTAL deploy’ on path ‘Dev to Production’ failed. A detailed report is available at: <a href=”http://computer:8000/_admin/DeploymentReport.aspx?ReportId=77b99034-ba11-4072-9983-ba1ee4dc8483″ >http://computer:8000/_admin/DeploymentReport.aspx?ReportId=77b99034-ba11-4072-9983-ba1ee4dc8483</a>

Notice on Line 12 that the X-Mailer is “Windows SharePoint Services (version 3)”. This email was REJECTED after being picked up

So I replaced the X-Mailer header with Outlook Express’s X-Mailer header-

   1: x-sender: ALERTS@computer.domain
   2: x-receiver: ALERTS@computer.domain
   3: Received: from computer ([127.0.0.1]) by computer.domain with Microsoft SMTPSVC(6.0.3790.1830);
   4:      Wed, 22 Aug 2007 17:50:37 -0400
   5: Date: 22 Aug 2007 17:50:37 -0400
   6: From: <ALERTS@computer.domain>
   7: To: <ALERTS@computer.domain>
   8: Content-Transfer-Encoding: 8bit
   9: Content-Type: text/html; charset=utf-8
  10: Subject: JOB FAILED: Content deployment job ‘INCREMENTAL deploy’ started at 8/22/2007 5:50:31 PM
  11: MIME-Version: 1.0
  12: X-Mailer: Microsoft Outlook Express 6.00.3790.2929
  13: Return-Path: ALERTS@computer.domain
  14: Message-ID: <computerXvpFVjCR00000005@computer.domain>
  15: X-OriginalArrivalTime: 22 Aug 2007 21:50:37.0488 (UTC) FILETIME=[79882B00:01C7E506]
  16:  
  17: The content deployment job ‘INCREMENTAL deploy’ on path ‘Dev to Production’ failed. A detailed report is available at: <a href=”http://computer:8000/_admin/DeploymentReport.aspx?ReportId=77b99034-ba11-4072-9983-ba1ee4dc8483″ >http://computer:8000/_admin/DeploymentReport.aspx?ReportId=77b99034-ba11-4072-9983-ba1ee4dc8483</a>

And Lo and Behold, this email was picked up and processed and it showed up in my Alerts list!

I’m not sure if this is a bug or not because one can imagine a scenario where an alert for a list goes out to the same email address as the incoming email address for the list. The developers were probably trying to prevent an infinite loop in such a scenario. However, that means that even for all legit purposes, you CANNOT HAVE SHAREPOINT EMAIL ITSELF.

How to clear Vista’s offline folders cache

Friday, August 17th, 2007

If you are using Vista’s offline folders feature and you suspect that the offline cache has gone corrupt, or if you simply want to reset the cache, follow these steps.

  1. Open up registry editor (WARNING: Only for Advanced Users)
  2. Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc
  3. Add a new key (folder) called Parameters
  4. Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters, add a new DWORD called FormatDatabase and set its value to 1

If you want to completely disable the offline folders functionality, you must also stop and disable the offline folders service:

net stop “Offline Files”
WMIC SERVICE WHERE Caption=“Offline Files” CALL ChangeStartMode “Disabled”

Office Authentication Prompt in Vista for Sharepoint Documents

Monday, August 13th, 2007

There is an issue in Vista where a user tries to open a document from a document library in Sharepoint and they are prompted by Office to authenticate themselves. This would be acceptable behavior if the user weren’t already authenticated on the MOSS site they were browsing.

For some reason, when XP users try to open the same document from Sharepoint, they DO NOT get prompted for authentication. This is a Vista only issue. I’ve stumbled across many newsgroup posts that claim that this issue has something to do with the “Protected Mode” in IE7. Their recommended solution is to add the Sharepoint site to Trusted Sites in Internet Explorer 7 and to disable “Protected Mode”.

However, even after adding the site to trusted sites in IE and disabling protected mode, the issue still persists. The issue is only replicable after a fresh reboot - once a user authenticates in office, those credentials are cached for future use. Due to this caching in office, many people cannot pinpoint how to replicate this issue.

SOLUTION 1

The First SOLUTION to this issue is to DISABLE the WebClient service in Vista. Here is a quick script that accomplishes this: VistaMossOfficeMossSSOFix.bat Here is the code for those who’d like to incorporate this script into their environment:

net stop “WebClient”
WMIC SERVICE WHERE Caption=“WebClient” CALL ChangeStartMode “Disabled”

SOLUTION 2

There is also a second workaround that involves tricking IE to use a fake proxy and to have IE bypass the fake proxy for everything - this workaround is PREFERRED since the first Solutions ends up severing some of the nicer integration features between Office and MOSS (such as the ability to save directly from office on to a sharepoint document library)

In Internet Options, click the “Connections” tab and then click “LAN Settings”:

image 

Click “Advanced” and enter * as an exception to the proxy:

image 

Conclusion

In conclusion, the SECOND SOLUTION seems to be more appropriate as the first one tends to do more harm than good.

Using batch files to do daily backups

Thursday, August 9th, 2007

Often times there are situations where you want to use batch files that run on a continuous basis but are aware of the date that they are running on.

Let me illustrate by using as example. Let’s say that I want to backup a critical executable file on a daily basis by simply using the copy command in DOS but I want the backup filename to reflect today’s date. If today was 08/09/2007, i want my target filename to be backup20070809.exe

In order to accomplish that with a batch file, use the following code-

date /t > temp.txt
set /p date= < temp.txt
del temp.txt

echo %date:~4,2%
echo %date:~7,2%
echo %date:~10,4%

The last three lines can be taken out and you can use the code from the last 3 lines to perform your backup operation

Troubleshooting svchost processes that eat up processor time

Wednesday, August 8th, 2007

Resource Monitor Screen Shot

As you can see from the screenshot above, I have a svchost process that is killing my CPU and hogging most of its time. However, since the svchost process is generic and is a container for services on your computer, what is unknown is what exact service is this svchost process running.

In order to troubleshoot to see which service is contained in this instance of svchost, notice its PID (Process ID). Then open up a command window (Start>Run>cmd) and type

” tasklist /svc “

That should give you a list that looks like this:

Notice the entry for svchost.exe with the same PID (Process ID) as the one that is causing trouble. In my case, the instance of svchost causing trouble is hosting 13 different services (talk about unlucky numbers). From here on, simply try shutting each service down and see if it leads to an effect on your performance. In order to selectively shut down each service individually, open a new command window and type-

” net stop <myservice> “

Example: net stop CscService

If you do not see a performance increase after shutting down an individual service then simply turn it back on and move on to the next one. To turn the service back on, use the same command as above but replace ’stop’ with ’start’-

net start CscService

Once you actually do find the rogue service, you can disable it from starting the next time you turn your computer on. To do this, go to Start > Run > services.msc and find the name of the rogue service. The name of the service can be learned from the command prompt where you turned it off. For example, when I type “net stop CscService”, the command prompt will echo “Stopping Offline Files Service”. That should tell you that the name of the service is “Offline Files” and this is what you should look for in the services.msc screen.

Once you find the rogue service in the services.msc screen, simply right click > Properties and choose to disable this service from the drop-down menu.