{"id":1098,"date":"2013-06-27T13:13:00","date_gmt":"2013-06-27T18:13:00","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1098"},"modified":"2014-02-14T15:11:24","modified_gmt":"2014-02-14T21:11:24","slug":"kms-setup-and-citrix","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2013\/06\/kms-setup-and-citrix\/","title":{"rendered":"KMS Setup and Citrix XenDesktop"},"content":{"rendered":"<p>I might split this off since KMS doesn&#8217;t need Citrix and Citrix doesn&#8217;t need KMS.  But for my environment I needed both.<\/p>\n<p><strong>Background<\/strong><br \/>\nI had installed a KMS server (Key Management Services server) for a recently-deployed Citrix XenDesktop environment.  XenDesktop does NOT support MAK keys for the shared desktops (although it technically works), and instead lets me know to use KMS.  KMS is really nice now that it&#8217;s working.<\/p>\n<p>I actually ended up installing KMS on the WSUS server.  Things I found out (my notes, take with a grain of salt since I haven&#8217;t gone back over it nor verified anything):<\/p>\n<p><strong>Prerequisites<\/strong><\/p>\n<ul>\n<li>Server 2008R2 Installed and configured on an AD Domain (member server or domain controller OK)<\/li>\n<li>Server 2008R2 KMS Key (<a href=\"https:\/\/www.microsoft.com\/Licensing\/servicecenter\/default.aspx\" target=\"_blank\">VLSC<\/a> site at Microsoft)<\/li>\n<li>Client KMS Keys (see below)<\/li>\n<li>Hypervisor (for XenDesktop VDI) &#8211; Hyper-V, VMWare ESXi, XenServer are all supported.  I use XenServer 6.1 although 6.2 just came out.<\/li>\n<\/ul>\n<p><strong>Common Client KMS Setup Keys<\/strong><br \/>\nFull List found here (<a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/jj612867.aspx\" target=\"_blank\">http:\/\/technet.microsoft.com\/en-us\/library\/jj612867.aspx<\/a> and <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/jj219430.aspx\" target=\"_blank\">http:\/\/technet.microsoft.com\/en-us\/library\/jj219430.aspx<\/a>)<\/p>\n<blockquote><p>Windows 7 Professional<br \/>\n<code>FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4<\/code><br \/>\nWindows 7 Enterprise<br \/>\n<code>33PXH-7Y6KF-2VJC9-XBBR8-HVTHH<\/code><br \/>\nWindows 8 Professional<br \/>\n<code>NG4HW-VH26C-733KW-K6F98-J8CK4<\/code><br \/>\nWindows 8.1 Professional<br \/>\n<code>GCRJD-8NW9H-F2CDX-CCM8D-9D6T9<\/code><br \/>\nWindows 8 Enterprise<br \/>\n<code>32JNW-9KQ84-P47T8-D8GGY-CWCK7<\/code><br \/>\nWindows 8.1 Enterprise<br \/>\n<code>MHF9N-XY6XB-WVXMC-BTDCT-MKKG7<\/code><br \/>\nWindows Server 2008 R2 Standard<br \/>\n<code>YC6KT-GKW9T-YTKYR-T4X34-R7VHC<\/code><br \/>\nWindows Server 2008 R2 Enterprise<br \/>\n<code>489J6-VHDMP-X63PK-3K798-CPX3Y<\/code><br \/>\nWindows Server 2012 Standard<br \/>\n<code>XC9B7-NBPP2-83J2H-RHMBY-92BT4<\/code><br \/>\nWindows Server 2012R2 Standard<br \/>\n<code>D2N9P-3P6X9-2R39C-7RTCD-MDVJX<\/code><br \/>\nWindows Server 2012 Datacenter<br \/>\n<code>48HP8-DN98B-MYWDG-T2DCC-8W83P<\/code><br \/>\nWindows Server 2012R2 Datacenter<br \/>\n<code>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9<\/code><br \/>\nOffice Professional Plus 2010<br \/>\n<code>VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB<\/code><br \/>\nOffice Professional Plus 2013<br \/>\n<code>YC7DK-G2NP3-2QQC3-J6H88-GVGXT<\/code><\/p><\/blockquote>\n<p><strong>Install And Activate Your KMS Server<\/strong><br \/>\nAdd the product key (your KMS key from the VLSC) on your server and activate with Microsoft.  If you utilize the GUI you will receive an alert saying &#8220;Are you sure you want this to become a KMS Server in your environment?&#8221;  I used the command line instead:<br \/>\n<code>slmgr \/ipk YOURPRODUCTKEYHERE<\/code><br \/>\n<code>slmgr \/ato<\/code><br \/>\nIf you receive any errors, you will not be able to proceed much further.<\/p>\n<p>You can also use the <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee624358.aspx#section5\" target=\"_blank\">Volume Activation Management Tool<\/a> (VAMT).<\/p>\n<p><strong>KMS For Office Products<\/strong><br \/>\nDownload the Office 2010 KMS Host License Pack<br \/>\n<a href=\"http:\/\/www.microsoft.com\/downloads\/en\/details.aspx?displaylang=en&#038;FamilyID=97b7b710-6831-4ce5-9ff5-fdc21fe8d965\" target=\"_blank\">http:\/\/www.microsoft.com\/downloads\/en\/details.aspx?displaylang=en&#038;FamilyID=97b7b710-6831-4ce5-9ff5-fdc21fe8d965<\/a><br \/>\nAnd install\/run the executable<br \/>\nThe wizard will ask for your KMS key for Office &#8211; enter that.<br \/>\nTo install a new Office Key, simply type:<br \/>\n<code>ospp \/inpkey:YOURKMSKEY<\/code><br \/>\n<code>ospp \/act<\/code><\/p>\n<p><strong>Verify KMS Is Working<\/strong><br \/>\nYou must have 5 or more SERVER clients or 25 or more CLIENT clients trying to activate.  Every 6 months.  The KMS activation is good for 180 days before it needs to re-register with your KMS server.<br \/>\nCommand line find out the number of activations<br \/>\n<code>slmgr \/dlv<\/code><br \/>\nYour pop up will display the following key information: The KMS channel your server belongs to (B channel for me), License status, Current KMS count, and number of requests received.<br \/>\nThere is a KMS Emulator that can artificially inflate your numbers on the KMS server:<br \/>\n<code>KMSClient.exe 1688 127.0.0.1 Windows<\/code><br \/>\n<code>KMSClient.exe 1688 127.0.0.1 Office2010<\/code><br \/>\n<code>KMSClient.exe 1688 127.0.0.1 Office2012<\/code><\/p>\n<hr>\n<p><strong>Citrix &#8211; Initial Setup<\/strong><\/p>\n<ol>\n<li>Create a new virtual guest &#8211; I ended up using Windows 7 SP1 x64 Enterprise (Pro for proof of concept, Ent for production use)\n<li>Install all updates and software required on the base image.  I ended up with the OS, Antivirus, Java, Flash, and Reader installed by default.\n<li>Join this guest to the domain if applicable.\n<li>Install the Virtual Desktop Agent &#8211; I ended up &#8220;sharing&#8221; the XenDesktop Installer CD from the primary DDC XenDesktop system (\\\\xendesktopserver\\sharename)\n<li>Shut down the VM by using the Desktop Agent &#8211; in my case I had a virtual private disk as well, so this is very necessary with all changes\n<li>Take a snapshot of the VM &#8211; name it &#8220;PREARM&#8221;\n<li>Start the VM back up and rearm the Activation Key<br \/>\n<code>slmgr \/rearm<\/code><\/p>\n<li>Shut down the VM by using the Desktop Agent\n<li>Take a second snapshot of the VM &#8211; name it &#8220;ARMED&#8221;\n<li>Use this second image (&#8220;ARMED&#8221;) as the base for your XenDesktop rollout<\/ol>\n<p><strong>Updating the Master Image<\/strong><\/p>\n<ol>\n<li>Roll back to the snapshot &#8220;PREARM&#8221;\n<li>Startup the VM\n<li>Make any changes\/updates\n<li>Shut down the VM by using the Desktop Agent\n<li>Delete the current &#8220;PREARM&#8221; snapshot\n<li>Take a snapshot of the VM &#8211; name it &#8220;PREARM&#8221;\n<li>Start the VM back up and rearm the Activation Key<br \/>\n<code>slmgr \/rearm<\/code><\/p>\n<li>Shut down the VM by using the Desktop Agent\n<li>Delete the current &#8220;ARMED&#8221; snapshot\n<li>Take a second snapshot of the VM &#8211; name it &#8220;ARMED&#8221;\n<li>Use this second image (&#8220;ARMED&#8221;) as the base for your XenDesktop rollout\n<\/ol>\n<p>***EDIT***<br \/>\nI couldn&#8217;t get my office 2010 laptop to activate against the KMS host. I verified that the DNS entry was added:<br \/>\n<code>nslookup -type=srv _vlmcs._tcp<\/code><\/p>\n<blockquote><p>Port 1688<br \/>\nSrv hostname MYSERVER.MYDOMAIN.TLD<\/p><\/blockquote>\n<p>The eventviewer showed &#8220;The client has sent an activation request to the key management service machine&#8221; along with &#8220;0xC0020017, 0X00000000, 127.0.0.1:1688&#8221;<br \/>\nThat&#8217;s why!  127.0.0.1!  Localhost my arse.<\/p>\n<p>You can change this by setting the host:<br \/>\nOpen a command prompt with admin privs<br \/>\n<code>cd\\program files\\microsoft office\\office14 (or 15)<\/code><br \/>\n<code>cscript ospp.vbs \/sethst:YOURSERVER_FQDN.domain.tld<\/code><br \/>\nThen activate<br \/>\n<code>cscript ospp.vbs \/act<\/code><br \/>\nSuccess!<\/p>\n<p>To set this back to default:<br \/>\n<code>cscript ospp.vbs \/remhst<\/code><\/p>\n<p>To change the key:<br \/>\n<code>cscript ospp.vbs \/inpkey:YOURKEYHERE<\/code><\/p>\n<p>Remote key:<br \/>\n<code>cscript ospp.vbs \/inpkey:KEY COMPUTERNAME<\/code><br \/>\n<code>cscript ospp.vbs \/act COMPUTERNAME<\/code><\/p>\n<p>http:\/\/technet.microsoft.com\/en-us\/library\/ee624350.aspx<\/p>\n<p>NON-Domain Systems KMS Activation<br \/>\n<code>cscript \\windows\\system32\\slmgr.vbs \/skms FQDN_OF_KMS_SERVER:port<\/code><br \/>\n-or-<br \/>\n<code>cscript \\windows\\system32\\slmgr.vbs \/skms IPADDRESS_OF_KMS:port<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I might split this off since KMS doesn&#8217;t need Citrix and Citrix doesn&#8217;t need KMS. But for my environment I needed both. Background I had installed a KMS server (Key Management Services server) for a recently-deployed Citrix XenDesktop environment. XenDesktop does NOT support MAK keys for the shared desktops (although it technically works), and instead &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2013\/06\/kms-setup-and-citrix\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">KMS Setup and Citrix XenDesktop<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8,1],"tags":[],"class_list":["post-1098","post","type-post","status-publish","format-standard","hentry","category-linux","category-microsoft","category-miscellaneous"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1098"}],"version-history":[{"count":15,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1098\/revisions"}],"predecessor-version":[{"id":1170,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1098\/revisions\/1170"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}