troubleshooting Question

VB Script to set home page on 2k8 Terminal Server

Avatar of clamasters
clamasters asked on
Windows Server 2008
10 Comments1 Solution1099 ViewsLast Modified:
Having trouble with a vbs script to set the homepages on my user's desktops.  On WinXP machines it works perfectly, however on my 2008 x64 Terminal Server farm when the script runs it gives me.....

Line:  5
Char:  1
Error:  Invalid root in registry key "HKLM\software\Microsoft\Internet Explorer\Main\Start Page"
Code:  80070005
Source:  WshShell.Regwrite

Here's the body of the script....

Set WSHShell = WScript.CreateObject("WScript.Shell")

' home page URL
StartPage = ""
WSHShell.RegWrite "HKLM\Software\Microsoft\Internet Explorer\Main\Start Page", StartPage
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\Start Page", StartPage

sorry I'm not that great with vbscripting but need to get this to work to get the sharepoint site set for the homepage globally in the environment.

Any help would be appreciated
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros