Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
启动Azure VM并自动登录到Windows 10_Windows_Azure_Virtual Machine - Fatal编程技术网

启动Azure VM并自动登录到Windows 10

启动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

我有一个程序,我想每天在Azure上运行。是否可以启动虚拟机并自动登录到windows 10?我已经安排VM启动和关闭,但我还没有找到登录windows的方法。有什么建议吗


谢谢

运行此命令以配置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