Hi,
I am doing a small app in PureBasic that install itself as a service, reboot a couple of times and then un-register itself.
Does anyone know how I can make this service Automatic Logon to a W2K3 server? Without using the registry!
I'm using this PB app for an unattended installation and the installation has to be in a context of a specific user.
Any ideas?!?  :roll:
[EDIT]
Hmmm... Could I make the service get the handle of the login prompt and actually write the user ID and password?
			
			
									
									Automatic Logon to W2K3 servers without using the registry?
- 
				techjunkie
 - Addict

 - Posts: 1126
 - Joined: Wed Oct 15, 2003 12:40 am
 - Location: Sweden
 - Contact:
 
Automatic Logon to W2K3 servers without using the registry?

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Hi techjunkie,
I'm very interested in what you're trying to do (at least, from what I understand?).
So, an intial application connects to a server (using named pipes?????) authenticated with a local userid/password, installs a service on the server, then kicks off that installed service, which proceeds to do it's thing and reboots the server, etc. Is this correct?
We are in the process of installing Tivoli (IBM) monitoring software on our servers here at work, but it is a manual process to install the agent - very primitive!!!
The only software I've seen that can "push" an agent to a machine is the "Dameware NT Utilities" - nice software.
			
			
									
									I'm very interested in what you're trying to do (at least, from what I understand?).
So, an intial application connects to a server (using named pipes?????) authenticated with a local userid/password, installs a service on the server, then kicks off that installed service, which proceeds to do it's thing and reboots the server, etc. Is this correct?
We are in the process of installing Tivoli (IBM) monitoring software on our servers here at work, but it is a manual process to install the agent - very primitive!!!
The only software I've seen that can "push" an agent to a machine is the "Dameware NT Utilities" - nice software.
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
						"When the facts change, I change my mind" - John Maynard Keynes
- 
				techjunkie
 - Addict

 - Posts: 1126
 - Joined: Wed Oct 15, 2003 12:40 am
 - Location: Sweden
 - Contact:
 
Hi Amundo,Amundo wrote:Hi techjunkie,
I'm very interested in what you're trying to do (at least, from what I understand?).
So, an intial application connects to a server (using named pipes?????) authenticated with a local userid/password, installs a service on the server, then kicks off that installed service, which proceeds to do it's thing and reboots the server, etc. Is this correct?
We are in the process of installing Tivoli (IBM) monitoring software on our servers here at work, but it is a manual process to install the agent - very primitive!!!
The only software I've seen that can "push" an agent to a machine is the "Dameware NT Utilities" - nice software.
Nice to hear that you are interested!
Well, we are using Altiris RDP deployment to push out the packages. But in this case it is a very complicated installation that demands 8 re-boots. The old installation is using the registry, "run onces" and so on - and I'm trying to make it more stable and more in control.

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Nice Straker.
Groovy with the U.F.O. stuff
Would be nice to find some source code on how PSEXEC does it's stuff.
I'm sure it's an undocumented NATIVE API function.
Unless it's in a documented WIN32 API somewhere.
P.S. Checked out the Hamachi stuff - very nice! Mind if I ask what your interest is?
			
			
									
									Groovy with the U.F.O. stuff
Would be nice to find some source code on how PSEXEC does it's stuff.
I'm sure it's an undocumented NATIVE API function.
Unless it's in a documented WIN32 API somewhere.
P.S. Checked out the Hamachi stuff - very nice! Mind if I ask what your interest is?
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
						"When the facts change, I change my mind" - John Maynard Keynes
Now that Microsoft owns Sysinternals, you can be sure it won't be published.Amundo wrote:Would be nice to find some source code on how PSEXEC does it's stuff.
I primarily use hamachi to tunnel thru my customers' firewalls to connect directly to the commercial database I developed. I also use it with VNC to control my firewall-protected servers. Its awesome.Amundo wrote:P.S. Checked out the Hamachi stuff - very nice! Mind if I ask what your interest is?
Hi techjunkie!
I've got some good news and bad news...
The good:
If you check this link:
http://www.powerbasic.com/support/forum ... 02086.html
it details exactly the kind of information I was after.
The bad:
It's done in PowerBasic (which isn't all that bad, just translation needed), and I don't know how much time I can devote to it (3 young kids and a wife in the real world, plus a full-time job = not much time for much else).
But it's a start, no?
			
			
									
									I've got some good news and bad news...
The good:
If you check this link:
http://www.powerbasic.com/support/forum ... 02086.html
it details exactly the kind of information I was after.
The bad:
It's done in PowerBasic (which isn't all that bad, just translation needed), and I don't know how much time I can devote to it (3 young kids and a wife in the real world, plus a full-time job = not much time for much else).
But it's a start, no?
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
						"When the facts change, I change my mind" - John Maynard Keynes
- 
				techjunkie
 - Addict

 - Posts: 1126
 - Joined: Wed Oct 15, 2003 12:40 am
 - Location: Sweden
 - Contact:
 
- 
				lexvictory
 - Addict

 - Posts: 1027
 - Joined: Sun May 15, 2005 5:15 am
 - Location: Australia
 - Contact:
 
it needs an admin username/password combo, it copies an exe, installs it as a service, runs it, sends some commands to the service, which run the program etc, when program has exited, it uninstalls the serviceAmundo wrote: Would be nice to find some source code on how PSEXEC does it's stuff.
I'm sure it's an undocumented NATIVE API function.
Unless it's in a documented WIN32 API somewhere.
(at least i think thats what it does)
Demonio Ardente
Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
						Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Yes, lexvictory, that's what I think it does, as well. Which is something I've always wanted to do.
But, as in my first post, I'm not 100% sure that this is the sort of thing techjunkie is after?
 
			
			
									
									But, as in my first post, I'm not 100% sure that this is the sort of thing techjunkie is after?
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
						"When the facts change, I change my mind" - John Maynard Keynes


