tag:blogger.com,1999:blog-2228947945609574437.post9028593274995363008..comments2024-03-17T16:23:31.499-04:00Comments on Terence Luk: Using InstallSoftwareRemotely.ps1 to upgrade VMware Horizon View AgentTerence Lukhttp://www.blogger.com/profile/02612575579652280306noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-2228947945609574437.post-90622440600395820812020-12-18T10:26:53.119-05:002020-12-18T10:26:53.119-05:00COMPUTER xxxxxx (1 of 1)
Coping C:\Dxxxxs\InstallS...COMPUTER xxxxxx (1 of 1)<br />Coping C:\Dxxxxs\InstallSoftwareRemotely to \\xxxxxx\C$\temp<br />Error copying folder: Access is denied<br />Waiting 60 seconds before next retry...<br />PS C:\Dfgfd\InstallSoftwareRemotely><br /><br />Not getting passed the first stage of it copying the file to the server!!!<br /><br />Logged on with Domain Admin accountAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2228947945609574437.post-40275961782504991432020-06-05T20:21:35.709-04:002020-06-05T20:21:35.709-04:00Eu recebo um erro de permissão.
Após executar o sc...Eu recebo um erro de permissão.<br />Após executar o script direto do PowerShell ISE<br />A mensagem é "Erro de Permissão"<br />Renan Zampierhttps://www.blogger.com/profile/05610237592234118726noreply@blogger.comtag:blogger.com,1999:blog-2228947945609574437.post-26983627817390600772019-02-25T11:03:32.890-05:002019-02-25T11:03:32.890-05:00Fantastic! Thank you for sharing, Brian. Hope al...Fantastic! Thank you for sharing, Brian. Hope all is well!Terence Lukhttps://www.blogger.com/profile/02612575579652280306noreply@blogger.comtag:blogger.com,1999:blog-2228947945609574437.post-51206756812500792492019-02-11T11:08:29.678-05:002019-02-11T11:08:29.678-05:00Quick and dirty, but works great. Export Machines...Quick and dirty, but works great. Export Machines from the View Admin GUI to c:\view\vdi.txt and copy the agent to C:\view\ from where you run powershell.<br /><br />Just did this for about 350 Non Linked clone desktops, 0 Failures..<br /><br />foreach ($computername in (gc '\view\vdi.txt')){<br /> Get-Service -Name "WinRM" -ComputerName $computername | Start-Service<br /> Copy-Item -Path \view\VMware-Horizon-Agent-x86_64-7.7.0-11054235.exe -Destination \\$computername\c$<br /> $session = New-PSSession -ComputerName $computername<br /> Invoke-Command -Session $session -ScriptBlock {Start-Process -FilePath "C:\VMware-Horizon-Agent-x86_64-7.7.0-11054235.exe" -ArgumentList '/s /v"/qn"'} -AsJob<br /> }Anonymoushttps://www.blogger.com/profile/09593432564274608291noreply@blogger.com