VMware Horizon View 6 Desktop Virtualization Cookbook
上QQ阅读APP看书,第一时间看更新

Removing objects from your Federated Pod or global entitlements

The commands referenced in this section focus on removing different objects from your federated pod or the global entitlements contained within it.

Getting ready

Multiple commands exist for removing objects in a Horizon View Federated Pod. Using these commands, we can undo changes to or remove objects that we have configured earlier in this chapter.

To remove objects from a Federated Pod, command-line access to one of the Connection Servers in the federated pod is required.

How to do it...

In this section, we will demonstrate several different commands that are used to remove objects from a Horizon View Federated Pod.

Removing a Horizon View pod from a pod federation

The following command is used to remove a pod from a pod federation. It must be run from a Connection Server located in the pod that is being removed:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --unjoin

Removing a desktop pool from a global entitlement

The following command is used to remove a Horizon View desktop pool from a global entitlement:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --removePoolAssociation --entitlementName "name" --poolId "poolId"

Removing an AD user or group from a global entitlement

The following commands are used to remove an AD user account or security group from a global entitlement. The commands differ slightly based on whether or not a user or security group is being removed, so both are shown.

To remove an AD user account, use the following command:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --removeUserEntitlement --userName "domain\userName" --entitlementName "name"

To remove an AD security group, use the following command:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --removeGroupEntitlement --groupName "domain\groupName" --entitlementName "name"

Removing an AD user or group Horizon View home site association

The following commands are used to remove the home site assignment from either an AD user or a security group. The commands differ slightly based on whether or not the site assignment is being removed from a user or a security group, so both are shown.

To remove a site assignment from an AD user account, use the following command:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --deleteUserHomeSite --userName "domain\userName" --entitlementName "name"

To remove a site assignment from an AD security group, use the following command:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --deleteGroupHomeSite --groupName "domain\groupName" --entitlementName "name"

Deleting a Horizon View home site

The following command is used to delete a site from a federated pod:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --deleteSite --siteName "name"

Deleting a global entitlement

The following command is used to delete a global entitlement from a federated pod:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --deleteGlobalEntitlement --entitlementName "name"

Forcibly removing a Horizon View pod from a Federated Pod

The following command is used to forcibly remove a pod from a pod federation and is typically only used when the pod is no longer available. It can be run from any Connection Server available so long as it is not one located in the pod that is being removed:

  • lmvutil.cmd --authAs user --authDomain domain --authPassword password --ejectPod --pod "podName"

How it works...

The following is a list of the lmvutil.cmd command-line switches, and the accompanying description, that were used in this section to remove objects from a Horizon View Federated Pod: