Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows 2000 / Registry / March 2006

Tip: Looking for answers? Try searching our database.

RunServices doesn't work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vLabz - 17 Mar 2006 14:01 GMT
Hi,

I want to execute a command line when the computer has finished booting.
I formerly used a scheduled task, but for deployment purposes I would prefer
using the RunServices registry key.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices

I put the same command line in the the Run key and it does work each time
someone logs on :
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

I had to create the RunServices key myself because it wasn't there, I also
checked access rights with regedt32, they are the same for both keys.

Why is RunServices apparently not triggered, is there any log somewhere ?

thanks for any help...
Mark V - 17 Mar 2006 17:43 GMT
In microsoft.public.win2000.registry =?Utf-8?B?dkxhYno=?= wrote:

> Hi,
>
[quoted text clipped - 15 lines]
> Why is RunServices apparently not triggered, is there any log
> somewhere ?

What OS?

\RunServices\ is not used in NTx operating systems.

Your application would need to actually be a Service and
"installed" (or wrapped (SvrAny)).  This does not sound like the
case there.

Say more about the application purpose and when is needs to run.  
Possibly a System Startup Script start method would be appropriate?
vLabz - 17 Mar 2006 18:37 GMT
It's on Windows 2000

I'm surprised it's not supposed to work for this OS because according to
this article it supposed to :
http://support.microsoft.com/?scid=kb%3Ben-us%3B179365&x=9&y=5

My command line is :
"C:\Program Files\Bginfo\Bginfo.exe" /timer:0 "C:\Program
Files\BgInfo\myinfo.bgi"

BgInfo changes the desktop wallpaper and displays usefull info on it.
On servers, it is very cool to have it updated at boot time, and at each
user logon (including terminal services). I previously use a scheduled task,
but for ease of deployment I thought registry keys were better. BTW, a
scheduled task with double schedule (at startup and at logon would not
suffice when connecting from terminal services).

> In microsoft.public.win2000.registry =?Utf-8?B?dkxhYno=?= wrote:
>
[quoted text clipped - 28 lines]
> Say more about the application purpose and when is needs to run.  
> Possibly a System Startup Script start method would be appropriate?
David H. Lipman - 18 Mar 2006 00:47 GMT
From: "vLabz" <vLabz@discussions.microsoft.com>

| It's on Windows 2000
|
[quoted text clipped - 12 lines]
| scheduled task with double schedule (at startup and at logon would not
| suffice when connecting from terminal services).

Use the SC command to create an actuall NT Service.

sc create  /?
Creates a service entry in the registry and Service Database.
SYNTAX:
sc create [service name] [binPath= ] <option1> <option2>...
CREATE OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec|error>
      (default = own)
start= <boot|system|auto|demand|disabled|error>
      (default = demand)
error= <normal|severe|critical|error|ignore>
      (default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
      (default = LocalSystem)
DisplayName= <display name>
password= <password>

Signature

Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm

Mark V - 18 Mar 2006 05:41 GMT
In microsoft.public.win2000.registry =?Utf-8?B?dkxhYno=?= wrote:

>> In microsoft.public.win2000.registry =?Utf-8?B?dkxhYno=?=
>> wrote:
[quoted text clipped - 32 lines]
>> run.  Possibly a System Startup Script start method would be
>> appropriate?

> It's on Windows 2000
>
> I'm surprised it's not supposed to work for this OS because
> according to this article it supposed to :
> http://support.microsoft.com/?scid=kb%3Ben-us%3B179365&x=9&y=5

Hmmm.  Well, NTx has a Service Control Manager...  I think that KB
article is deficient FWIW.

> My command line is :
> "C:\Program Files\Bginfo\Bginfo.exe" /timer:0 "C:\Program
> Files\BgInfo\myinfo.bgi"

Okay, the Sysinternals site
http://www.sysinternals.com/utilities/bginfo.html
suggests STARTUP folder (per user) for automated per-user startup.  
Is that not a feasible option?

I guess I am wondering why you want to make it more difficult and
complex than this basic usage.  BGINFO.EXE is not a Service and not
a System utility in the sense that it starts once per boot-up.  As
I read it, this is a User-mode executable that should start per-
user when each account logs on.  The user profile STARTUP location
would be my first choice.  Otherwise the per-user (HKCU) \RUN\
registry location might be used, (or local or domain User Logon
Script perhaps).

> BgInfo changes the desktop wallpaper and displays usefull info
> on it. On servers, it is very cool to have it updated at boot
[quoted text clipped - 3 lines]
> double schedule (at startup and at logon would not suffice when
> connecting from terminal services).

I apologize in advance if I am missing something simply because I
have not used BGINFO in many years or on a TS system.  Would a TS
user really need to update more than "at logon"?

I'll suggest the forum:
http://www.sysinternals.com/Forum/forum_topics.asp?FID=5
for more help on BGINFO specifics.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.