Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Reading from the registry

Reply
 
Old 10-16-2008   #1 (permalink)
Robert


 
 

Reading from the registry

I have a classic asp site and a function to read from the registry. I have
two identical reg keys, one in HKLM and one in HCU.

Using my vbscript function i can read from the HKLM key but not through the
HCU. Is this something to do with pass through authenication? is there a way
of reading a key from HCU.

When I use the same function in a vbs file i can read from HCU.

Can anyone point me in the direction of more information?

regards

Robert

My System SpecsSystem Spec
Old 10-16-2008   #2 (permalink)
Joe Fawcett


 
 

Re: Reading from the registry

Are you sure who the current user is?
What if no one is logged on to the machine?
(And the abbreviation is HKCU not HKU)

--

Joe Fawcett (MVP - XML)

http://joe.fawcett.name

"Robert" <Robert@xxxxxx> wrote in message
news:6A08903B-4FF9-4F87-97F3-D5260C3F4F0F@xxxxxx
Quote:

>I have a classic asp site and a function to read from the registry. I have
> two identical reg keys, one in HKLM and one in HCU.
>
> Using my vbscript function i can read from the HKLM key but not through
> the
> HCU. Is this something to do with pass through authenication? is there a
> way
> of reading a key from HCU.
>
> When I use the same function in a vbs file i can read from HCU.
>
> Can anyone point me in the direction of more information?
>
> regards
>
> Robert

My System SpecsSystem Spec
Old 10-17-2008   #3 (permalink)
Robert


 
 

Re: Reading from the registry

HKCU is not created for the iusr account as even though iis is running the
application as iusr account it is not considered as logged on. The web
application cannot therefore read from HKCU

Robert

"Joe Fawcett" wrote:
Quote:

> Are you sure who the current user is?
> What if no one is logged on to the machine?
> (And the abbreviation is HKCU not HKU)
>
> --
>
> Joe Fawcett (MVP - XML)
>
> http://joe.fawcett.name
>
> "Robert" <Robert@xxxxxx> wrote in message
> news:6A08903B-4FF9-4F87-97F3-D5260C3F4F0F@xxxxxx
Quote:

> >I have a classic asp site and a function to read from the registry. I have
> > two identical reg keys, one in HKLM and one in HCU.
> >
> > Using my vbscript function i can read from the HKLM key but not through
> > the
> > HCU. Is this something to do with pass through authenication? is there a
> > way
> > of reading a key from HCU.
> >
> > When I use the same function in a vbs file i can read from HCU.
> >
> > Can anyone point me in the direction of more information?
> >
> > regards
> >
> > Robert
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Reading x86 or x64 registry from Powershell - Help with my script! PowerShell
Problem reading registry remotely PowerShell
Problem reading the registry Virtual PC
Remotely reading HKLM registry key Vista security
reading/writing registry values PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46