Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.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
用于登录到其他程序的Powershell脚本_Powershell - Fatal编程技术网

用于登录到其他程序的Powershell脚本

用于登录到其他程序的Powershell脚本,powershell,Powershell,我有一个关于Powershell可能性的一般性问题,我目前正在学习。作为练习,我想创建一个简单的脚本,自动启动steam并让我登录。我得到以下信息: $steamExe = (Get-ItemProperty -Path HKCU:\Software\Valve\Steam\ -Name SteamExe).SteamExe Invoke-Item $steamExe 之后,蒸汽窗口弹出,我不知道如何继续。 我可以在用户名和密码的输入字段中引用和键入吗?Steam.exe支持。另外,请

我有一个关于Powershell可能性的一般性问题,我目前正在学习。作为练习,我想创建一个简单的脚本,自动启动steam并让我登录。我得到以下信息:

$steamExe = (Get-ItemProperty -Path HKCU:\Software\Valve\Steam\ -Name     SteamExe).SteamExe
Invoke-Item $steamExe
之后,蒸汽窗口弹出,我不知道如何继续。
我可以在用户名和密码的输入字段中引用和键入吗?

Steam.exe
支持。另外,请记住,PowerShell主要不是一个UI自动化平台,如AutoHotkey等。如果您愿意,它是一个平台,可以用编程的易访问性取代紧密耦合的UI流程