Remotely Logon To Windows
T3chGuy007 _
Hello. Does anyone know if there's a way to remotely login to a workstation using Deploy or a Powershell script? I have a piece of software that requires a user to be logged into a workstation for it to install properly. I really don't want to touch every device I need this software on so I was hoping someone had a way a script or a way to do this. Thanks!
0
Comments
Only way i see is activating the AutoLogin via registry:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"DefaultUserName"="theUserName"
"DefaultDomainName"="your.domain.local"
"DefaultPassword"="yourPW"
Steps:
1 Set Autologin (import your .reg file)
2 Reboot (after reboot the Autologin kicks in)
3 Deploy
4 Remove Autologin (delete reg entry or set "AutoAdminLogon" = "0"
5 Reboot
Thanks for the suggestion but I think I found a way to do it that didn't take a lot of time to setup I installed mRemoteNG and then imported my devices from AD. In the program options, you can specify default RDP credentials so I did this and then all I had to do was double-click on each device for it to start a RDP session and automatically login. This seemed to do the trick.
Good idea 😃
You can do this without a third party tool:
cmdkey /generic:"192.168.178.xx" /user:"your_username" /pass:"your_password"
mstsc /v:192.168.178.xx
The first line saves the credentials for the rpd session to "192.168.178.xx" The second line starts the rdp session to "192.168.178.xx"
For secure reason, you can delete the saved credentials with:
cmdkey /delete:192.168.178.xx
That's a good idea too! I'l have to remember that if I need to do this again. Thanks!