Advertisement

01.09.2008 at 07:33AM PST, ID: 23069669
[x]
Attachment Details

invalid root in registry

Asked by gecko_au2003 in VB Script, Visual Basic Programming

Tags: invalid, root

Trying to just make a simple vbscript to read the port that RDP is currently using :

strKeyPath = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber\"

Set Shell = CreateObject("WScript.Shell")
currdomain =Shell.RegRead(strKeyPath)
msgbox currdomain

I keep getting an error message. Is regread not suitable then ?Start Free Trial
[+][-]01.09.2008 at 07:59AM PST, ID: 20619196

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.09.2008 at 08:01AM PST, ID: 20619212

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.09.2008 at 08:04AM PST, ID: 20619248

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Script, Visual Basic Programming
Tags: invalid, root
Sign Up Now!
Solution Provided By: ryancys
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.09.2008 at 08:04AM PST, ID: 20619255

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628