Link to home
Start Free TrialLog in
Avatar of SquigglyMonkey
SquigglyMonkey

asked on

Trouble with using powershell to install a small application

When trying to install an application with powershell, it doesn't.
Here is the  script I run, the files copy over just fine, but it does not actually install.
$computerName = Read-Host "Enter your VM name"
Copy-Item -Path \\servername\c$\AgentInstalls\FireEye\xagtSetup_26.21.8_universal.msi -Destination "\\$computername\c$\windows\temp\xagtSetup_26.21.8_universal.msi"
Copy-Item -Path "\\servername\e$\AgentInstalls\FireEye\agent_config.json" -Destination "\\$computername\c$\windows\temp\agent_config.json"
Invoke-Command -ComputerName $computerName -ScriptBlock {
    c:\windows\temp\xagtSetup_26.21.8_universal.msi /silent
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SquigglyMonkey
SquigglyMonkey

ASKER

I figured that out too! and was doing a happy dance that I didn't have to log onto a 100 servers to install this stupid app. Thanks for the reply!