{"id":455,"date":"2009-11-29T03:11:24","date_gmt":"2009-11-28T19:11:24","guid":{"rendered":"http:\/\/www.jhouseconsulting.com\/?p=455"},"modified":"2009-11-29T03:11:24","modified_gmt":"2009-11-28T19:11:24","slug":"deployment-script-for-citrix-profile-management-2x","status":"publish","type":"post","link":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/2009\/11\/29\/deployment-script-for-citrix-profile-management-2x-455","title":{"rendered":"Deployment Script for Citrix Profile Management 2.x"},"content":{"rendered":"<p>Here is my deployment script for Citrix Profile Management 2.x, formerly known as User Profile Manager.<\/p>\n<p>Enjoy!<!--more--><\/p>\n<p><dirtycode:InstCPM.cmd><br \/>\n@Echo Off<br \/>\nEcho Citrix XenApp Deployment<br \/>\nEcho &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nEcho.<br \/>\nEcho  Revision History:<br \/>\nEcho.<br \/>\nEcho     v1.0 07\/09\/09 Jeremy@jhouseconsulting.com<br \/>\nEcho                   Updated for Citrix Profile Management 2.0.1<br \/>\nEcho.<br \/>\nEcho        &#8230;.Installing Citrix Profile Management 2.x&#8230;..<br \/>\nEcho.<br \/>\nEcho.<\/p>\n<p>SetLocal<\/p>\n<p>Set CPMVersion=2.0.1<\/p>\n<p>Set CPMInstaller=profilemgr2_x86.msi<br \/>\nIF \/I &#8220;%PROCESSOR_ARCHITECTURE%&#8221;==&#8221;AMD64&#8221; Set CPMInstaller=profilemgr2_x64.msi<\/p>\n<p>Set loglocation=%systemDrive%\\bldlogs<br \/>\nif not exist %loglocation% md %loglocation%<\/p>\n<p>IF EXIST %SYSTEMROOT%\\SYSTEM32\\CHANGE.EXE CHANGE USER \/INSTALL<\/p>\n<p>:: Installing CPM&#8230;<br \/>\nstart &#8220;Installing&#8230;&#8221; \/wait msiexec \/i &#8220;%~dp0%CPMVersion%\\%CPMInstaller%&#8221; \/qb \/Lv* &#8220;%loglocation%\\CPM%CPMVersion%.log&#8221; REBOOT=ReallySuppress<\/p>\n<p>IF EXIST %SYSTEMROOT%\\SYSTEM32\\CHANGE.EXE CHANGE USER \/EXECUTE<\/p>\n<p>:: Enable Citrix Profile Management by setting the following registry value. This can be done by<br \/>\n:: using the supplied Administrative Template in a Group Policy Object (GPO).<br \/>\n:: Key: HKLM\\Software\\Policies\\Citrix\\UserProfileManager<br \/>\n:: Value: ServiceActive<br \/>\n:: Type: REG_DWORD<br \/>\n:: Data: 1<\/p>\n<p>:: We rename the ini files as a precautionary measure. This is because the ini file contains the<br \/>\n:: default entries for all settings that are configurable via group policy. The issue here is<br \/>\n:: that once the Citrix User Profile Manager service has been enabled, if the corresponding group<br \/>\n:: policy setting is set to &#8220;not configured&#8221;, it will use the default setting in the ini file.<br \/>\n:: This can be dangerous! Hence the reason why we rename it by default.<br \/>\nIf EXIST &#8220;%PROGRAMFILES%\\Citrix\\User Profile Manager\\UPMPolicyDefaults_V1Profile_en.ini&#8221; (<br \/>\nREN &#8220;%PROGRAMFILES%\\Citrix\\User Profile Manager\\UPMPolicyDefaults_V1Profile_en.ini&#8221; &#8220;UPMPolicyDefaults_V1Profile_en.ini.old&#8221;<br \/>\n)<br \/>\nIf EXIST &#8220;%PROGRAMFILES%\\Citrix\\User Profile Manager\\UPMPolicyDefaults_V2Profile_all.ini&#8221; (<br \/>\nREN &#8220;%PROGRAMFILES%\\Citrix\\User Profile Manager\\UPMPolicyDefaults_V2Profile_all.ini&#8221; &#8220;UPMPolicyDefaults_V2Profile_all.ini.old&#8221;<br \/>\n)<\/p>\n<p>EndLocal<br \/>\nExit \/b 0<br \/>\n<\/dirtycode><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is my deployment script for Citrix Profile Management 2.x, formerly known as User Profile Manager. Enjoy!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[5,38],"tags":[172,173],"class_list":["post-455","post","type-post","status-publish","format-standard","hentry","category-scripting","category-xenapp","tag-cpm","tag-upm"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/comments?post=455"}],"version-history":[{"count":1,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/455\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/455\/revisions\/456"}],"wp:attachment":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/media?parent=455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/categories?post=455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/tags?post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}