Wednesday, September 9, 2009

Configuring website and network access between XP host and Win2003 with MOSS 2007 VPC

I assume that you have a XP host which has a VPC image with win2003 and moss 2007 installed but the host will not be able to access the sharepoint sites due to network related issues.
So its time to setup and enable website access between host and the VPC. I assume few things before you apply this solution:
1. You have a rotuer and you access internet
2. You have disabled DHCP option in router and have given manual IP with you subnet like 192.168.1* or 10.10.1.* to your machine and VPC
Then check my blog here that covers the steps of converting the win2003 VPC from a workgroup into a domain.
Now you need to do is to setup XP to recognize the win2003 server. I found a solution of doing so without adding my XP to the domain that you just created.
On our host machine irrespective of you using your lan or wireless card; just double click the icon in system tray or goto start->settings->network connections and right click the active adapter and select properties. The adapter properties window will appear; select TCP/IP and click properties. refer to below snapshot
The trick is under "Preferred DNS" enter the manual IP of the win2003 server running in VPC as the server now has a DNS installed. In order to allow your host to access internet as well enter the IP of your ISP under "Alternate Preferred DNS" so that internet is accessible

If you wanted to enter the alternate Preferred DNS of your ISP then you can add by clicking advance button and enter the IP as shown under
And you are done; hopefully you shall be able to access the sharepoint websites. I doubt that you will face any further issue but by chance if you get stuck then you may try below section as well.
The last thing to do in both host and VPC is to add an entry of the IP address of both in host file. Just type drivers in the start->run to and windows will open windows explorer windows; go into etc folder and double click the hosts file; select notepad and open the file; 
In XP host file add entry in a new line with 192.168.1.4 myserver and in win2003 VPC add entry in a new line with 192.168.1.3 xphost
By following above information you can have multiple development environments on a single machine and explore the benefits of VPC.


Hope it was useful

Moving MOSS 2007 from a workgroup to a domain running Win2003 VPC in XP Host

This post is for those who have XP host and a VPC running with Win2003 and others as well who have the below stated problem.
If you installed Moss 2007 on a standalone machine running Win2003 and later you plan to move it on a new domain then below steps will help you.


1. First in win2003 run DCPromo.exe from the start->run and set it up. DC promo is the most easiest, simple and automatic way of configuring AD and DNS easily
2. After the machine is added to the domain and if you try to open the sharepoint central or other sites then browser will give error. The reason is that Administrator account has been updated with domain information and moss is not updated. In order to fix up the problem just run the below commands in dos prompt to sort it out.
First, goto cd %commonprogramfiles%\Microsoft Shared\Web server extensions\12\Bin directory
Second, stsadm -o updatefarmcredentials -userlogin DomainName\UserName -password NewPassword
Here NewPassword can be the same password that you are using or you can give the new password
Lastly goto c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files in windows explore and right click the folder->Sharing and Security->security tab; add Network Service to the group with full access
After this just run the central site and you are done.
Hope this is useful.

TweakUI in XP - Change default locations like "My Documents"

This post is to share few great things to do with tool TweakUI which is one of the collections in XP Power toys suite from microsoft. Click the link to download TweakUI for x86
1. Change Default Locations for documents
The first thing that i did was to change the default location of My Documents which is C:\Documents and Settings\bhavtosh\My Documents
Because windows saves every document [doc, txt, xls, jpg etc] in the above location and many times when i rebuilt my machine with XP; i always missed out taking the backup from the above location and i did lost important number of times
So using tweakui i found a very good way of redirecting windows to map to my custom location for all documents. Just refer to the snapshot below and rest is self explanatory
You can change lot of default places to your custom locations and next time when you open windows explorer you will new settings.
2. Reduce time for right click
Those who like "Creating a folder" using right click a lot but get bored as windows takes time in populating the context menu is because if you have software like office, winzip, winrar etc then by default windows loads all the possible types of "document/files" extensions that you may create using the stated tools. For example see the below snapshot; it shows what i have on my machine
Im habitual of using new option to create folder and nothing else but since i have so many tools and windows takingtime to load the menu; i used tweakui to help me making my right click-new option to come much faster than before. below snapshot will tell you how
There are other things to do as well but i leave it you to explore the power of this tool. 
Hope this useful.