Citrix XenDesktop and McAfee EPO script

There is a good script to reset the EPO agent ID to keep the console uptodate.

@echo
echo Stopping services . . .
net stop McAfeeFramework /yes
net stop McShield /yes
net stop McTaskManager /yes
echo Stopping services, done.
echo Deleting registry entries . . .
REG delete "HKLMSOFTWARENetwork AssociatesePolicy OrchestratorAgent" /v AgentGUID /F
REG delete "HKLMSOFTWARENetwork AssociatesePolicy OrchestratorAgent" /v MacAddress /F
REG delete "HKLMSOFTWARENetwork AssociatesePolicy OrchestratorAgent" /v ComputerName /f
REG delete "HKLMSOFTWARENetwork AssociatesePolicy OrchestratorAgent" /v IPAddress /f
REG delete "HKLMSOFTWARENetwork AssociatesePolicy OrchestratorAgent" /v LastASCTime /f
REG delete "HKLMSOFTWARENetwork AssociatesePolicy OrchestratorAgent" /v SequenceNumber /f
REG delete "HKLMSOFTWARENetwork AssociatesePolicy OrchestratorAgent" /v SubnetAddress /f
REG delete "HKLMSOFTWARENetwork AssociatesePolicy OrchestratorAgent" /v SubnetMask /f
REG delete "HKLMSOFTWAREWow6432NodeNetwork AssociatesePolicy OrchestratorAgent" /v AgentGUID /f
REG delete "HKLMSOFTWAREWow6432NodeNetwork AssociatesePolicy OrchestratorAgent" /v MacAddress /f
REG delete "HKLMSOFTWAREWow6432NodeNetwork AssociatesePolicy OrchestratorAgent" /v ComputerName /f
REG delete "HKLMSOFTWAREWow6432NodeNetwork AssociatesePolicy OrchestratorAgent" /v IPAddress /f
REG delete "HKLMSOFTWAREWow6432NodeNetwork AssociatesePolicy OrchestratorAgent" /v LastASCTime /f
REG delete "HKLMSOFTWAREWow6432NodeNetwork AssociatesePolicy OrchestratorAgent" /v SequenceNumber /f
REG delete "HKLMSOFTWAREWow6432NodeNetwork AssociatesePolicy OrchestratorAgent" /v SubnetAddress /f
REG delete "HKLMSOFTWAREWow6432NodeNetwork AssociatesePolicy OrchestratorAgent" /v SubnetMask /f
echo Deleting registry entries, done.
:Exit

This entry was posted in citrix. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s