- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Agent not getting installed on Windows VMs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 07:53 AM
03-12-2025 07:53 AM
Agent not getting installed on Windows VMs
Hello,
We have a situation with Windows Servers where the agent is not getting installed. (Also the agent PowerShell script is not present on C:\ drive)
Can you tell me on what stage the PowerShell script is getting downloaded on C:\ drive and then on what stage the script is triggered to install the agent ?
If I copy a script from a server where the agent got installed during the provision stage, I can successfully install the agent manually.
Any clue how to debug this ?
Thanks,
Augustin Farcas
- Tags:
- agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 04:16 AM
03-18-2025 04:16 AM
Re: Agent not getting installed on Windows VMs
What is your agent install method and RPC mode on your clouds? Sounds like you are probably defaulting to WinRM, which you potentially have issues with WinRM connectivity to push the agent. The agent installs during finalize.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 12:04 AM
03-18-2025 12:04 AM
Re: Agent not getting installed on Windows VMs
Hello Augustin
Is this a VMware Cloud that you are deploying? If so, can you confirm that the template has the option to automatically update VMware tools disabled?
Kind regards
Ümit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 04:45 AM
03-13-2025 04:45 AM
Re: Agent not getting installed on Windows VMs
Hello,
Yes, cloud-init is unchecked and in some vlans the agent is installed and in other vlans the agent is not getting installed.
The network rules seems to be the same.
In any vlan where the agent is not installed, I am able to install the agent if I download manually the powershell script.
For vlans where the agent is getting installed, I can find the powershell scrit on C: drive.
For vlans where the agent is not getting installed, the script is not there.
And now I`m trying to see when the script gets downloaded on C: drive and from where.
Thanks,
Augustin Farcas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 03:30 AM
03-13-2025 03:30 AM
Re: Agent not getting installed on Windows VMs
Hi,
Assume you have unchecked the cloud-init option?
Regards,
Marcus
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 02:25 AM
04-03-2025 02:25 AM
Re: Agent not getting installed on Windows VMs
Hello guys,
We were able to fix the agent installation issue by creating a new task and add it in the provision phase of the VM:
SCRIPT:
…
$Morpheus_agent = get-service -Name “Morpheus Windows Agent” -errorAction Ignore
If($Morpheus_agent){
write-host “Morpheus agent is installed”
}
else {
$insf = “${env:commonprogramfiles(x86)}\install_morph_agent.ps1”
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
try {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
}
Catch {}
$s = $false
$a = 0
Do {
try {
(New-Object System.Net.WebClient).DownloadFile("https://YOUR_URL/api/server-script/agentInstall?apiKey=<%=server.apiKey%>", $insf)
$s=$true
break
} Catch {
$a++
Start-Sleep -s 10
}
} While ($a -lt 5)
if($s) {
echo "Success"
} else {
echo "Failed after 5 attempts"
exit 1
}
try {
C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -File $insf
}
Catch {
exit 1
}
}
…
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 04:10 AM
04-03-2025 04:10 AM
Re: Agent not getting installed on Windows VMs
Your script insinuates that the agent is in your template and already on the machine, that should not be the case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 04:18 AM
04-03-2025 04:18 AM
Re: Agent not getting installed on Windows VMs
I connect to the VM via winrm with a predefined local account from the template, in the provisioning phase, right after the VM is powered ON.
Here I will download the PowerShell script to install the agent:
try {
(New-Object System.Net.WebClient).DownloadFile("https://YOUR_URL/api/server-script/agentInstall?apiKey=<%=server.apiKey%>", $insf)
$s=$true
break
} Catch {
$a++
Start-Sleep -s 10
}
Here I will install the agent via the downloaded script:
try {
C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -File $insf
}
I did 50+ VMs and it is working as expected.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 05:21 AM
03-18-2025 05:21 AM
Re: Agent not getting installed on Windows VMs
Hello,
With the same template everything is working OK in other clouds\vlans.
Only some specific clouds\vlans are affected.
Inside our template we have the latest version of vmware tools.
All network ports are open and we can install the agent manually after the VM is deployed.
We had a call with Morpheus support team and we send them all the logs for review.
Thanks,
Augustin