Startup program before login

B

beatme101

I want to launch a program before a user logs into Windows. I have the
Resource kit but unfortunately not the AutoexNT whatchamacallit. Is
there any way I can do this? I also want the program's UI to be
visible, if not before logging in then at least afterwards.
 
D

Dave Patrick

HOWTO: Create a User-Defined Service
http://support.microsoft.com/default.aspx?kbid=137890


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

|I want to launch a program before a user logs into Windows. I have the
| Resource kit but unfortunately not the AutoexNT whatchamacallit. Is
| there any way I can do this? I also want the program's UI to be
| visible, if not before logging in then at least afterwards.
|
 
B

beatme101

'instsrv.exe' is not recognized as an internal or external command,
operable program or batch file.


And I am trying it from within the
C:\Program Files\Support Tools
Folder.

... Maybe this is a different "Resource Kit" than the "Resource Kit" I
see people talking about. This one came from the Windows 2000
Professional CD, in support\tools ....

Is there any other way to do this?
 
D

Dave Patrick

Get the resource kit tools.

http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| 'instsrv.exe' is not recognized as an internal or external command,
| operable program or batch file.
|
|
| And I am trying it from within the
| C:\Program Files\Support Tools
| Folder.
|
| .. Maybe this is a different "Resource Kit" than the "Resource Kit" I
| see people talking about. This one came from the Windows 2000
| Professional CD, in support\tools ....
|
| Is there any other way to do this?
 
M

Michael Bednarek

I want to launch a program before a user logs into Windows. I have the
Resource kit but unfortunately not the AutoexNT whatchamacallit. Is
there any way I can do this? I also want the program's UI to be
visible, if not before logging in then at least afterwards.

Doesn't running a Machine Startup Script work?
 
B

beatme101

How would one go about running a "Machine Startup Script"?

Oh, and Dave, that Resource Kit you linked to gave an error:
"This product requires Windows XP or a later version to have been
installed".
 
B

beatme101

I don't know what a Group Policy snap-in is, and I am on Windows 2000
Professional, not Advanced Server.
 
D

Dave Patrick

Start|Run|gpedit.msc

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

I don't know what a Group Policy snap-in is, and I am on Windows 2000
Professional, not Advanced Server.
 
B

beatme101

Hi, thanks. I have added the "script" with the //i switch, and
restarted my computer. When it gets into Windows, Windows stops doing
things at a screen saying "Running startup scripts". Is Windows
expecting the program to automatically terminate itself? How can I
startup windows, and then how can I fix this problem (some kind of
switch not mentioned previously?)? Or is there a way I can fix it from
my dual boot of Windows 2000?
 
D

Dave Patrick

Not sure what you've got going. Try holding the shift key at logon.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Hi, thanks. I have added the "script" with the //i switch, and
| restarted my computer. When it gets into Windows, Windows stops doing
| things at a screen saying "Running startup scripts". Is Windows
| expecting the program to automatically terminate itself? How can I
| startup windows, and then how can I fix this problem (some kind of
| switch not mentioned previously?)? Or is there a way I can fix it from
| my dual boot of Windows 2000?
 
B

beatme101

Oh aren't I clever. I went into my alternate boot and renamed the
program. So now I can use my main Windows 20000 boot again. while
awaiting your response. =)


Hi, thanks. I have added the "script" with the //i switch, and
restarted my computer. When it gets into Windows, Windows stops doing
things at a screen saying "Running startup scripts". Is Windows
expecting the program to automatically terminate itself? How can I
startup windows, and then how can I fix this problem (some kind of
switch not mentioned previously?)? Or is there a way I can fix it from
my dual boot of Windows 2000?
Dave said:
Start|Run|gpedit.msc

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

I don't know what a Group Policy snap-in is, and I am on Windows 2000
Professional, not Advanced Server.
 
B

beatme101

Oh, I forgot all about that one. I should have used that to fix it. Oh
well. But I've already removed the "script" from the Startup
Properties. Now I'm just needing a switch to make Windows not stall
there waiting for a program to end that won't end (shift would make the
program not start in the first place).
 
D

Dave Patrick

I've got no idea what you're trying to do really.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Oh, I forgot all about that one. I should have used that to fix it. Oh
| well. But I've already removed the "script" from the Startup
| Properties. Now I'm just needing a switch to make Windows not stall
| there waiting for a program to end that won't end (shift would make the
| program not start in the first place).
 
B

beatme101

I want one of my programs to start up before (or at) the login screen,
rather than starting up AFTER logging in. Windows 98 made this
painfully easy with a registry key that was counterproductively removed
from Windows NT.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsft\Windows\CurrentVersion\RunServices
 
D

Dave Patrick

In that case you'll probably be better off with srvany from the resource
kit.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

|I want one of my programs to start up before (or at) the login screen,
| rather than starting up AFTER logging in. Windows 98 made this
| painfully easy with a registry key that was counterproductively removed
| from Windows NT.
| HKEY_LOCAL_MACHINE\SOFTWARE\Microsft\Windows\CurrentVersion\RunServices
 
D

David H. Lipman

From: "Dave Patrick" <[email protected]>

| In that case you'll probably be better off with srvany from the resource
| kit.
|

He couldn't use the SC Create <service> to crate a NT Service ?
I used to use SRVANY with NT 4.0 but Win2K and above have the SC.EXE command.

Syntax:
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>
 
D

Dave Patrick

srvany lives on.

http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| He couldn't use the SC Create <service> to crate a NT Service ?
| I used to use SRVANY with NT 4.0 but Win2K and above have the SC.EXE
command.
|
| Syntax:
| 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>
|
| --
| Dave
| http://www.claymania.com/removal-trojan-adware.html
| http://www.ik-cs.com/got-a-virus.htm
|
|
 
B

beatme101

C:\Documents and Settings\phantom>sc
'sc' is not recognized as an internal or external command,
operable program or batch file.


-to Dave Patrick: How do I use this srvany.exe file? I don't know any
command line parameters for it, thus just tried running it in hopes of
sheeding light, but it did not do anything. Didn't even terminate..
(had to ctrl+c)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top