我的组织使用一个叫做远程的软件来远程访问我们的一些用户设备。我正在设法通过PowerShell远程安装该软件。我在每台机器上的C驱动器根目录上本地复制了安装程序文件。这是我试过的。
enterPS C:\Users\USER> Invoke-Command -ComputerName REMOTEPC -ScriptBlock {
Start-Process C:\Remotely_Installer.exe -install -quiet -organizationid "IDSTRING" -serverurl "https://remotely.CORP.com"
}运行此命令将返回“无法找到与名称匹配的参数”install。这是远程网站上的内容,但它没有通过PowerShell为远程安装指定任何内容。
Remotely_Installer.exe -install -quiet -organizationid "0b3d706b-9c5d-41e6-8ae9-5720d16324e6" -serverurl "https://remotely.mytechshop.com"理想情况下,我可以有一个简单的脚本,可以让用户将文件复制到他们的C驱动器,然后我可以运行脚本,锁定他们的设备,并将其显示在远程管理门户中。
发布于 2022-02-10 14:59:00
这行得通吗?启动过程并不是经常需要的,只是等待在后台启动的东西。这假设安装程序已经在远程计算机上。
# $s = new-pssession remotepc
# copy-item C:\Remotely_Installer.exe c:\ -tosession $s # slow
Invoke-Command REMOTEPC {
C:\Remotely_Installer.exe -install -quiet -organizationid IDSTRING -serverurl https://remotely.CORP.com
}发布于 2022-06-01 09:15:28
我在.bat文件中安装了下面的命令
start "" "path\Remotely_Install.exe" -install -quiet -supportshortcut -organizationid "yourOrganizationId" -serverurl "yourServerUrl"https://stackoverflow.com/questions/71066403
复制相似问题