启动Azure VM并自动登录到Windows 10
我有一个程序,我想每天在Azure上运行。是否可以启动虚拟机并自动登录到windows 10?我已经安排VM启动和关闭,但我还没有找到登录windows的方法。有什么建议吗启动Azure VM并自动登录到Windows 10,windows,azure,virtual-machine,Windows,Azure,Virtual Machine,我有一个程序,我想每天在Azure上运行。是否可以启动虚拟机并自动登录到windows 10?我已经安排VM启动和关闭,但我还没有找到登录windows的方法。有什么建议吗 谢谢 运行此命令以配置vm autologin(我通过Powershell扩展在部署期间进行了配置) 你可以试试AutologonAlso是否有用?我应该在哪里运行这个脚本? $RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" Se
谢谢 运行此命令以配置vm autologin(我通过Powershell扩展在部署期间进行了配置)
你可以试试AutologonAlso是否有用?我应该在哪里运行这个脚本?
$RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
Set-ItemProperty $RegPath "AutoAdminLogon" -Value "1" -type String
Set-ItemProperty $RegPath "DefaultUsername" -Value "$username" -type String
Set-ItemProperty $RegPath "DefaultPassword" -Value "$password" -type String