DavidOverton.com
This site is my way to share my views and general business and IT information with you about Microsoft, IT solutions for ISVs, technologists and businesses, large and small.  

'ConnectComputer' tweak

rated by 1 users
This post has 1 Reply | 1 Follower

Top 50 Contributor
Points 52
Austin Posted: Tue, Mar 14 2006 9:06 PM

Hi Guys, I have doctored the ConnectComputer page to add a Restore point, prior to attaching to the SBS server. This way if the customers 'nail' of a computer kicks the bucket, you have a get out of jail card :)

Open notepad and paste this in....

'By Austin Tovey, March 2006
CONST DEVICE_DRIVER_INSTALL = 10
CONST BEGIN_SYSTEM_CHANGE = 100
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\default")
Set objItem = objWMIService.Get("SystemRestore")
errResults = objItem.CreateRestorePoint _
    ("Pre SBS Server Installation", DEVICE_DRIVER_INSTALL, BEGIN_SYSTEM_CHANGE)

Now save it as RestorePoint.vbs in the C:\inetpub\connectComputer\ folder.

You might want to take a copy of your existing "default.htm" from the same folder.

Open notepad again and paste in....

<HTML>

    <TITLE>Small Business Server Network Configuration</TITLE>

    <STYLE>
        BODY            { FONT-SIZE: 8pt; MARGIN: 0px; COLOR: black; FONT-FAMILY: Verdana, Arial, 'Microsoft Sans Serif' }
        .headerLogo     { FONT-SIZE: 18pt; COLOR: white; FONT-FAMILY: Tahoma; }
        .headerLinks    { FONT-SIZE: 10pt; COLOR: #0033CC; FONT-FAMILY: Tahoma; }
        .dateDisplay    { FONT-SIZE: 10pt; COLOR: #666F74; FONT-FAMILY: Tahoma; }
        .welcomeText    { FONT-SIZE: 8pt; }
        .welcomeHeader  { FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: gray }
        .linkHeader     { FONT-WEIGHT: bold; FONT-SIZE: 8pt }
        .linkText       { FONT-SIZE: 8pt }
        .tableHeader    { FONT-WEIGHT: bold; FONT-SIZE: 8pt; BACKGROUND-COLOR: silver }
        .tableLink      { FONT-SIZE: 8pt }
        A               { FONT-WEIGHT: TEXT-DECORATION: underline }
        A:hover         { TEXT-DECORATION: underline }
        A:visited       { COLOR: #183c84 }
    </STYLE>

    <body text="black" bottomMargin="0" bgColor="white" leftMargin="0" topMargin="0" rightMargin="0">
        <TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
            <TR>
                <TD noWrap>
                    <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
                        <TR bgcolor="#666F74">
                            <TD height="55" vAlign="center" align="middle" width="50"><IMG alt="" src="./winxp.gif" border="0"></TD>
                            <TD height="55" id=titletext class="headerLogo">Network Configuration</TD>
                            <TD height="55" vAlign="center" align="right"><IMG alt="" src="./sbslogo.gif" border="0"></TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
        </TABLE>

        <TABLE id="Table10" cellSpacing="0" cellPadding="10" width="100%" border="0">
            <TR>
                <TD>
                    <TABLE id="Table40" cellSpacing="0" cellPadding="5" width="100%" border="0">
                        <TR>
                            <TD width="20"></TD>
                            <TD id=maintext class="welcomeText">

                                <br>
                                It might be a good idea to create a restore point prior to attaching to the SBS 2003 server.<br><br>
                                <A href="./restorepoint.vbs">Create a restore point</A><br><br>
                                This is only available on Windows XP Professional. The created restore point allows you to go back to how Windows was prior to joining the network.<br><br>
    You will need to select <b>Open</b> and then <b>Run</b> when prompted.
                            </TD>
                        </TR>
                    </TABLE>
                </td>
            </tr>
        </table>

        <TABLE id="Table1" cellSpacing="0" cellPadding="10" width="100%" border="0">
            <TR>
                <TD>
                    <TABLE id="Table4" cellSpacing="0" cellPadding="5" width="100%" border="0">
                        <TR>
                            <TD width="20"></TD>
                            <TD id=maintext class="welcomeText">
                                You will need your logon name and password to connect to the Small Business Server network.<br><br>
                                <A href="./precheck.htm">Connect to the network now</A><br><br>
                                You may receive a security warning.  Review the warning to ensure that the content is signed by Microsoft, and then click <b>Yes</b> to install the software.
                            </TD>
                        </TR>
                    </TABLE>
                </td>
            </tr>
        </table>

      
    </body>
   
</HTML>

Save it as default.htm in the C:\inetpub\connectComputer\ folder. (Remembering to change the file type to 'all files'

Now when you run the ConnectComputer page you can create a restore point first with only a few clicks.

Neat eah! Would be cool if Dave could get the RestorePoint.vbs script digitally signed by the DEV team and put up on the 'file' section of this site. It would save the security warnings.

Regards

Austin ToveySmile [:)]

  • | Post Points: 21
Top 10 Contributor
Points 84,756

Austin,

 

thanks for these great tips.  Obviously I have to state that this is not supported by Microsoft and please remember to take a backup in case anything does go squiffy.

Otherwisem great.

 

David

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS

(c)David Overton 2006-23