Загрузка данных


$c = Get-Credential; $s = New-PSSession -ComputerName ARM-01 -Credential $c; Copy-Item Signing\out\RemoteAssistAgentSetup.exe,enrollment-profile.json -Destination C:\Windows\Temp\ -ToSession $s; Invoke-Command -Session $s { & 'C:\Windows\Temp\RemoteAssistAgentSetup.exe' /install /quiet /profile 'C:\Windows\Temp\enrollment-profile.json'; & 'C:\Program Files\RemoteAssist\Agent\RemoteAssistAgentSetup.exe' /validate; $LASTEXITCODE }