Link to home
Start Free TrialLog in
Avatar of InayatJilani
InayatJilani

asked on

Reboot and Log into a remote machine with login id and password

Hi Folks:

I am new to this forum and this is my first question.

I want to be able to reboot a machine on the network and log into it supplying a username
and password. Does anybody have an idea how this can be accomplished?

I heard that  there are some windows commands that you could run to reboot a machine providing
the machine name or IP address, but I would like to explore how to do the same while passing a username and
password?

Any suggestions?

Thanks - Inayat
Avatar of pjknibbs
pjknibbs

I've never encountered any such capability, and I would be extremely surprised if it exists--allowing a remote login like this would be a very insecure thing to do. That's not to say somebody hasn't written some gross hack that'll let you do it, but it's not something I'd let anywhere near MY network!
ASKER CERTIFIED SOLUTION
Avatar of kirmw
kirmw

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of InayatJilani

ASKER

Thank you so much for your proposed solution.

When I type in the computer name and click OK, I get an error message "Unable to connect to all of the roots of the computer's registry. Disconnect from the remote registry and then reconnect before trying again". After displaying this message, it displays the remote machine's registry.

And then when I click on HKEY_LOCAL_MACHINE, the node expands, but when clicking on SOFTWARE, I get the error "Cannot open SOFTWARE: Error while opening key".

I tried doing the above at the remote machine itself(which is a few blocks away), I am able to traverse upto Wilogon node and see the values for DefaultUser, DefaultDomainName, etc., but I am not able to change the value.

Does the loginID on the remote machine have to be set up as an Administrator? Please let me know.

I appreciate your help,

Thanks, Inayat
Hi!

How do I edit a remote machine's registry using command line?

My goal is to connect to remote machine's registry, edit the registry setting for login password, shutdown and reboot the remote machine using shutdown.exe.

Once the machine has rebooted using the login username and password values from the registry, I want to be able to connect to the registry again after reboot and then change the password to something else.

This is to avoid anyone having access to the machine from having access to the password.

Thanks for your help.

Inayat
Windows supports accessing a remote registry via the Registry Editor across a network. The default setting should allow for users to connect and modify data within the remote registry.

Use REGEDT32 to modify the security permissions on this key, allowing yourself 'full access', (the permissions on this key represent the remote access permissions to the registry).

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg]

Hi Kirmw:

Thanks for your response.

I see a whole bunch of numbers under the key

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg]

What parameter do these numbers represent? What should I enter into this key for my machine?

The other question I have is, I go up to the remote machine and try to manually change the value of a registry key. It does not let me modify the key value. Could this be because I do am not set up as an NT administrator to the remote server? I am only able to view the registry keys and their values but not modify them. Please let me know.

Thanks - Inayat
If you are using Regedt32 check under the Options menu for 'Read only mode' this should be unchecked.  

The values under winreg aren't important it's the permissions to the winreg key itself.

So, using Regedt32 select the winreg key on the left-hand folder tree, then select security from the top menu, then permissions.

You should now see a NT permissions box.  Add your login in here and check the 'full control' check box in the lower panel. (You might want to uncheck inheritable permissions too in case you have been denied access elsewhere).  Then click OK and that should be job done.

If you are still having problems after this, I guess that the problem is down to NT permissions elsewhere.

Good Luck!

K ;-)