Re: Script launched via AT scheduler won't return from RegRead
- From: "James Whitlow" <jwhitlow@xxxxxxxxxx>
- Date: 25 Jun 2005 09:27:02 -0500
Woops! I was so focused on the possibility of the lack of the /INTERACTIVE
switch (bitten me several time) that I did not notice what it probably the
real problem. Your script is reading the HKEY_CURRENT_USER key. Since you
are running this script using the AT command, it is running under the SYSTEM
account & therefore reading the HKCU for the SYSTEM account, not your
currently logged on user. You are receiving a runtime error because the key
does not exist. Can you move your "HKCU\Software\AlarmClock\Status" key to
"HKLM\Software\AlarmClock\Status"?
"scattered" <jcoleman@xxxxxxxxxxxxxx> wrote in message
news:1119704727.492677.37050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> James Whitlow wrote:
> >
> > Just curious, did you make sure to include the /INTERACTIVE switch in
your
> > AT command?
>
> Thank you for your response. I'm a complete newbie when t comes to
> VBScript so I need all the help I can get.
>
> I've tried both ways, same result. I think the problem isn't that it
> doesn't return from RegRead so much as it throws a run time error when
> it even tries. I now suspect that the problem is that the task
> scheduler uses a default account (local machine) that maybe doesn't
> have permission to read the registry, although that wouldn't make sense
> to me. Maybe I can try to use the local machine as opposed to current
> user part of the registry and see if that makes any difference.
>
> Thanks again
>
> -John Coleman
>
.
- Follow-Ups:
- Re: Script launched via AT scheduler won't return from RegRead
- From: scattered
- Re: Script launched via AT scheduler won't return from RegRead
- References:
- Script launched via AT scheduler won't return from RegRead
- From: scattered
- Re: Script launched via AT scheduler won't return from RegRead
- From: James Whitlow
- Re: Script launched via AT scheduler won't return from RegRead
- From: scattered
- Script launched via AT scheduler won't return from RegRead
- Prev by Date: Re: Newbie Common Dialog question
- Next by Date: Re: IE windows
- Previous by thread: Re: Script launched via AT scheduler won't return from RegRead
- Next by thread: Re: Script launched via AT scheduler won't return from RegRead
- Index(es):
Relevant Pages
|