Automatic Logon to W2K3 servers without using the registry?

Windows specific forum
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Automatic Logon to W2K3 servers without using the registry?

Post by techjunkie »

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?
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

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.
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
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

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.
Hi Amundo,

Nice to hear that you are interested! :D

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.
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Shot in the darK: PSEXEC ?
Image Image
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

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?
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
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Amundo wrote:Would be nice to find some source code on how PSEXEC does it's stuff.
Now that Microsoft owns Sysinternals, you can be sure it won't be published.
Amundo wrote:P.S. Checked out the Hamachi stuff - very nice! Mind if I ask what your interest is?
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.
Image Image
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

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?
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
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Amundo wrote:it details exactly the kind of information I was after.
Hmmm... Interesting! and as you wrote a start! :) Thanks! :D
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Amundo 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.
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 service

(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!
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

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?
:?
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
Post Reply