Jump to content
Welcome to our new Citrix community!
  • 0

Object already exists when removing machine from catalog


Jason Edelen1709160707

Question

2 answers to this question

Recommended Posts

  • 0

If this still is a problem - see below answer.

 

The "object already exists" error message typically occurs when Citrix Studio or PowerShell

is attempting to create an object that already exists in the Citrix site database.

 

In this case, it's possible that the Virtual Machine you're trying to delete still exists in the database

even though it was removed from the Machine Catalog.

To resolve this issue, you can try the following steps:

Remove the Virtual Machine from the Delivery Group:

Before you can remove the Virtual Machine from the Machine Catalog, you need to ensure that

it's not a member of any Delivery Group. Use Citrix Studio or PowerShell to remove the Virtual Machine

from any Delivery Group.

Ensure the Virtual Machine is not in use:

Before you can delete the Virtual Machine, you need to ensure that it's not being used by any active sessions.

Check the Citrix Director console to see if any active sessions are using the Virtual Machine. If there are any

active sessions, you will need to disconnect them before proceeding. (You probably know that, already)

 

You can use PowerShell to force the removal of the Virtual Machine from the Citrix site database.

Use the Remove-BrokerMachine cmdlet with the -Force parameter to remove the Virtual Machine.

For example, you can use the following PowerShell command to remove a Virtual Machine named "VM01":

Remove-BrokerMachine -MachineName VM01 -Force

 

Note that using the -Force parameter can have unintended consequences, so use it with caution.

 

Verify that the Virtual Machine has been removed:

After using PowerShell to remove the Virtual Machine, verify that it has been removed from the Citrix site

database by checking Citrix Studio or running a PowerShell command to list all Virtual Machines in the site:

Get-BrokerMachine

If the Virtual Machine is still present in the Citrix site database, you may need to troubleshoot further to identify

the root cause of the issue.

 

Go luck

?

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...