Re: Script launched via AT scheduler won't return from RegRead



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
>


.



Relevant Pages

  • Re: Cant log off / Switch Users / Shut down.
    ... I'd suggest taking a llok at the system event logs. ... the computer locks up at "Saving Settings." ... >> wife's - a limited account. ... Not always, but occasionally, when I switch ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Unable to modify word Options
    ... Note, Jay, that, as the article says, sometimes just starting Word with the ... /a switch once seems to give the Registry a kick in the pants and solve the ... using the /a switch is just a troubleshooting tool. ... I need to update the 'Add-Ins' selection ...
    (microsoft.public.word.application.errors)
  • Re: Graphics artifacts cause by "damaged" user account?
    ... If I switch to Adobe Photoshop CS4 from Adobe Lightroom 2.2 in Win XP Pro, ... Updating video driver and from SP2 to SP3 had no effect. ... the issue when using another user account on the machine. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: switching user accounts
    ... I cannot access the second account. ... I have to log off in order to switch. ... if your Fast User Switching service isn't disabled (Start> ... Kelly Theriot's "Restore Fast User Switching" tweak, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: WMP and Fast User Switching
    ... While using the "Default" Administrator account is ... > need to switch to my Amin account to do something or other. ... > I frequently use WMP 10 along with CoolEdit 2000 to record a particular ... It is a voice audio stream; ...
    (microsoft.public.windowsxp.general)