IT_JB Posted January 14, 2020 Posted January 14, 2020 Does anyone know if it's possible to trigger a remote logon using powershell? I know remote logoff is, but I can't find any documentation on a logon command. I'm looking at ways to speed up the start of lessons in the ICT suites by giving the teachers a script to remotely login their year group.
howartp Posted January 14, 2020 Posted January 14, 2020 Impero manages it via their UI, but i don't know how.
IT_JB Posted January 14, 2020 Author Posted January 14, 2020 Impero manages it via their UI, but i don't know how. A system like Impero or Senso would be ideal but these are small primaries to there's no hope of getting the budget for that unfortunately.
mavhc Posted January 14, 2020 Posted January 14, 2020 Only thing I can think of is putting the username and password in the autologin part of the registry, then rebooting https://docs.microsoft.com/en-us/sysinternals/downloads/autologon and set AutoLogonCount to 1 1
andydis Posted January 14, 2020 Posted January 14, 2020 +1 for auto login or RDP to login, lock the workstation then powershell for remote unlock Invoke-Command -ComputerName 'RemoteMachine' -ScriptBlock { rundll32.exe user32.dll,LockWorkStation }
IT_JB Posted January 14, 2020 Author Posted January 14, 2020 Only thing I can think of is putting the username and password in the autologin part of the registry, then rebooting https://docs.microsoft.com/en-us/sysinternals/downloads/autologon and set AutoLogonCount to 1 This seems like something that could work, need to work out how to handle computers that are left on/in use. Thanks!
mavhc Posted January 14, 2020 Posted January 14, 2020 +1 for auto login or RDP to login, lock the workstation then powershell for remote unlock Invoke-Command -ComputerName 'RemoteMachine' -ScriptBlock { rundll32.exe user32.dll,LockWorkStation } Isn't that a remote lock, not a remote unlock?
andydis Posted January 14, 2020 Posted January 14, 2020 article says UNLOCK PowerShell Tip: How to Unlock Remote Machines using PowerShell https://social.technet.microsoft.com/wiki/contents/articles/25458.powershell-tip-how-to-unlock-remote-machines-using-powershell.aspx perhaps someone can give it a test?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now