Preparing a Windows 7 Gold Image for Unidesk



Similar documents
Third and Fourth Boots If the autologon process is used to optimize NP logons then it adds a third and fourth boot to the process.

AddLocalUser AddLocalGroup AddLocalUserToLocalGroup AddDomainUserToLocalGroup AddDomainGroupToLocalGroup

Deployment Guide: Unidesk and Hyper- V

Integration Guide: Using Unidesk 3.x with Citrix XenDesktop

StreamServe Persuasion SP5 Control Center

RSA Authentication Manager 8.1 Virtual Appliance Getting Started

Specops Command. Installation Guide

Using SQL Reporting Services with Amicus

Add User to Administrators Group using SQL Lookup Table

Installing and Configuring vcloud Connector

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Getting Started with VMware Fusion

Using SQL Reporting Services with Amicus

Forcepoint Sidewinder, Virtual Appliance Evaluation for Desktop. Installation Guide 8.x. Revision A

ACTIVE DIRECTORY DEPLOYMENT

Deploy the client as an Azure RemoteApp program

Installing and Configuring Login PI

Copyright 2015 SolarWinds Worldwide, LLC. All rights reserved worldwide. No part of this document may be reproduced by any means nor modified,

Administration Guide. . All right reserved. For more information about Specops Gpupdate and other Specops products, visit

How To Enable A Websphere To Communicate With Ssl On An Ipad From Aaya One X Portal On A Pc Or Macbook Or Ipad (For Acedo) On A Network With A Password Protected (

Netwrix Auditor. Virtual Appliance Deployment Guide. Version: 8.0 8/1/2016

Deploying Dedicated Virtual Desktops in Hosted Environments

Deploying Dedicated Virtual Desktops in Hosted Environments

Windows Firewall Configuration with Group Policy for SyAM System Client Installation

Online Backup Client User Manual

Citrix EdgeSight for Load Testing Installation Guide. Citrix EdgeSight for Load Testing 3.5

FlexSim LAN License Server

BaseManager & BACnet Manager VM Server Configuration Guide

COMMANDS 1 Overview... 1 Default Commands... 2 Creating a Script from a Command Document Revision History... 10

Operating System Installation Guide

Acronis Backup & Recovery 11.5 Quick Start Guide

Sharpdesk V3.5. Push Installation Guide for system administrator Version

XMap 7 Administration Guide. Last updated on 12/13/2009

Deploying Microsoft Operations Manager with the BIG-IP system and icontrol

Installation and Deployment

StarWind SMI-S Agent: Storage Provider for SCVMM April 2012

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

Ipswitch Client Installation Guide

Online Backup Linux Client User Manual

VMware vrealize Operations for Horizon Installation

1. Product Information

Online Backup Client User Manual Linux

Pearl Echo Installation Checklist

How To - Implement Single Sign On Authentication with Active Directory

vcenter Chargeback User s Guide vcenter Chargeback 1.0 EN

Create, Link, or Edit a GPO with Active Directory Users and Computers

DocAve Upgrade Guide. From Version 4.1 to 4.5

Deploying Windows Streaming Media Servers NLB Cluster and metasan

Symantec Enterprise Vault

Windows Live Mail Setup Guide

Mobile Labs Plugin for IBM Urban Code Deploy

What is the difference between MAK and KMS activation and how it is used? General Microsoft Volume Activation 2.0 FAQ... 2

McAfee Endpoint Encryption for PC 7.0

FileMaker Server 14. FileMaker Server Help

Installation Guide. . All right reserved. For more information about Specops Inventory and other Specops products, visit

RecoveryVault Express Client User Manual

vcenter Operations Manager for Horizon View Installation

Feith Rules Engine Version 8.1 Install Guide

Objectives. At the end of this chapter students should be able to:

Fiery E100 Color Server. Welcome

Setting up FileMaker 10 Server

Customer Tips. Configuring Color Access on the WorkCentre 7328/7335/7345 using Windows Active Directory. for the user. Overview

Silect Software s MP Author

Windows Server Update Services 3.0 SP2 Step By Step Guide

Uptime Infrastructure Monitor. Installation Guide

12 NETWORK MANAGEMENT

RealPresence Platform Director

Quick Start Guide for Parallels Virtuozzo

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

MALWAREBYTES PLUGIN DOCUMENTATION

simplify monitoring Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures

Avaya Modular Messaging Microsoft Outlook Client Release 5.2

Quick Start Guide. IT Management On-Demand

Getting Started with the Ed-Fi ODS and Ed-Fi ODS API

Online Backup Client User Manual

Mobility Services Platform Software Installation Guide

TestManager Administration Guide

Product Version 1.0 Document Version 1.0-B

NetBackup Backup, Archive, and Restore Getting Started Guide

Deploying Personal Virtual Desktops by Using RemoteApp and Desktop Connection Step-by-Step Guide

InventoryControl for use with QuoteWerks Quick Start Guide

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

MapInfo Professional 12.0 Licensing and Activation

VMware Horizon FLEX User Guide

Dell Recovery Manager for Active Directory 8.6. Quick Start Guide

HP Softpaq Download Manager and HP System Software Manager

Using Group Policies to Install AutoCAD. CMMU 5405 Nate Bartley 9/22/2005

Storage Sync for Hyper-V. Installation Guide for Microsoft Hyper-V

WhatsUp Gold v16.3 Installation and Configuration Guide

VMware User Environment Manager

NetIQ. How to guides: AppManager v7.04 Initial Setup for a trial. Haf Saba Attachmate NetIQ. Prepared by. Haf Saba. Senior Technical Consultant

Backup & Disaster Recovery Appliance User Guide

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

Note: With v3.2, the DocuSign Fetch application was renamed DocuSign Retrieve.

Optimization in a Secure Windows Environment

Migrating Exchange Server to Office 365

Installation Guide. . All right reserved. For more information about Specops Deploy and other Specops products, visit

Pharos Uniprint 8.4. Maintenance Guide. Document Version: UP84-Maintenance-1.0. Distribution Date: July 2013

Moxa Device Manager 2.3 User s Manual

Transcription:

Preparing a Windows 7 Gold Image for Unidesk What is a Unidesk gold image? In Unidesk, a gold image is, essentially, a virtual machine that contains the base operating system and usually, not much more than that. You import the gold images into Unidesk to create an Operating System Layer that you assign to desktops along with multiple Application Layers. Multiple pools can share a single Unidesk Operating System Layer. Basic steps 1. Create a virtual machine in VMware View, with the operating system and settings that you want desktops to use and activate the operating system. If there are corporate-wide application that all of your users need, there's no problem with installing these types of applications on the gold image. 2. Disable Windows System Restore and Windows Automatic Updates. Unidesk handles restore points for you. Turning off Automatic Updates prevents operating system updates from occurring without your knowledge. Unidesk layer versions allow you to control when updates occur. 3. Configure the virtual machine hardware settings (for example, the NIC and video memory). 4. Use the Unidesk Unattend.xml Builder to create an answer file (unattend.xml) for Microsoft Windows Mini-Setup. Windows uses this file for the initial setup of the virtual machine. This file is stored in the c:\windows\panther folder. 5. Create a snapshot of the virtual machine. If something goes wrong, you can use the snapshot to recover without having to reconfigure everything. 6. Copy the Unidesk Tools (also referred to as the Unidesk drivers) to the virtual machine and install them. The installation prompts your for the location of the unattend.xml file that you stored in the c:\windows\panther folder in step 4. The installation requires a restart of the virtual machine. Allow the restart to occur and wait for the installation to complete. 7. Finish setting up the virtual machine and perform a clean shutdown. 8. Import the gold image into a Unidesk Operating System Layer. Caution! Beware of 3rd-party optimization scripts These scripts might affect services and features that Unidesk uses (for example, you do not want to disable Universal Plug and Play or the 8.3 filenames setting). Unidesk has created a simple application to help create a Windows 7 optimization script using the VMware commands.bat file as a base. For instructions about using this application, read the following document on the Unidesk Support website: Unidesk Optimization Script Builder. Unattend.exe Builder 3.1 January 4, 2012 Page 1

Using the Unattend.xml Builder to create the answer file (unattend.xml) Unattend.xml Builder To make the process of creating the Windows 7 unattend.xml file creation easier, Unidesk provides a simple application to create the file and to add commands to the Windows SetupComplete.cmd file that activates the Windows operating system. Run this application locally on the gold image. If you want to use the application after importing the gold image into Unidesk, you can create an Operating System Layer version and run it again. Doing so overwrites the existing unattend.xml and SetupComplete.cmd files. 1. Download the application from the following location: http://www.unidesk.com/sites/default/files/downloads/unattend.zip 2. Copy the ZIP archive file to a local folder on your gold image. 3. If you have User Account Control (UAC) enabled, create the following folder: c:\windows\setup.scripts. If you have UAC disabled, you can skip this step. 4. Extract the application and the Unidesk KMS files: a. Right-click the ZIP archive file and select Extract-All. b. Enter the following location as the Extract to location: c:\windows\setup\scripts. This step opens the c:\windows\setup\scripts folder. 5. Right-click the unattendx-x.exe application and select Run as administrator in the displayed menu. (The x-x value represents the version of the application). 6. Complete the displayed form as appropriate for your activation method and environment. When you start the application, it displays the form shown on the following page: Unattend.exe Builder 3.1 January 4, 2012 Page 2

Guidelines for completing the unattend.xml form Complete the form as appropriate for your environment. There are settings in the application to define a relatively simple installation or select more advanced installation options. Consider the following guidelines: If you are using KMS activation, select KMS Server (the first option) in line 4. The application adds the appropriate product key for the Windows variant that you selected in line 2. If you going to use KMS with a MAK (Multiple Activation Key) for activation, select KMS with MAK (the second option) in line 4 and enter the MAK. Unattend.exe Builder 3.1 January 4, 2012 Page 3

If you are using Retail Licensing with a MAK, select Retail with MAK (the third option) in line 4 and the MAK in line 4A. The application retrieves the value for line 4B directly from your operating system, so don t change it. Windows uses the Activation ID in line 4B when using a MAK key to activate Windows. KMS does not use the Activation ID. Specifying the Domain Join information in line 5 is optional. Select Enable in this line if you want to configure the unattend.xml file to join desktops to a specific domain. Joining domains in this way works well if you always want desktops to join the same domain with the same OU. If you have a more complicated requirement, for example you need to support multiple domains or multiple OUs within a domain or set of domains, then you should use a domain join script. In this case, make sure Enable is not selected. It is possible to add desktops to the Computers container in Active Directory by deleting the OU entry in line 5E. However, we recommend that you use an alternate OU for Unidesk desktops to segregate them from other machines and avoid applying virtual desktop-specific GPOs to other types of machines. For information about advanced domain join operations, read the following document on the Unidesk Support website: Using PowerShell for Advanced Domain Join Operations. If you want to use the unattend.xml file to enable the Administrator account, select Enable in line 6. Remember to also enable this account in your gold image or Operating System Layer revision. It is possible to enable the Administrator account for your gold image and then have it disabled in the deployed desktops by clearing the check box in line 6. If you want to add an Alternate Administrator Account, select Enable in line 7 and enter the appropriate information. This account cannot be preconfigured in the gold image. By using lines 6 and 7 together you can, in effect, rename the administrator account. Line 9 allows you to omit adding the commands for activation of Microsoft Windows 7. If you select this option, you must activate Microsoft Windows separately. Select this option is if you plan to use the Microsoft Volume Activation Management Tool instead of using slmgr.vbs commands. Completing the unattend.xml file When you are satisfied with the settings that you defined for the unattend.xml file, click Save File in the form. The application saves the files in the following folders: unattend.xml - Saved in the c:\windows\panther folder. Microsoft Windows processes the unattend.xml file in this folder during Mini-Setup, removing all passwords in the file. SetupComplete.cmd - Saved in thec:\windows\setup\scripts folder. This file contains the appropriate commands to activate windows, as described in the following sections. This file is used following Mini-Setup to rearm and activate Microsoft Windows using KMS or just activates Windows for Retail Editions. Unattend.exe Builder 3.1 January 4, 2012 Page 4

If you selected KMS activation, the application adds a local startup GPO pointing to c:\windows\setup\scripts\kmsdir\kmssetup.cmd. If a local startup script already exists, the application displays a message stating that you must add the script manually to the GPO because it can t edit the existing configuration unless it is unused. Manually editing the unattend.xml file If desired, you can manually edit the unattend.xml file that the Unidesk Unattend.xml File Builder created. Again it is stored in the c:\windows\panther directory. However, you must be careful to edit the file correctly. You cannot use tabs in the file and the XML syntax must be perfect for what you intend to do. See the Microsoft documentation about creating unattend.xml files for more details. Windows 7 activation It is important that the operating system on the gold image is activated before you import it into Unidesk. You can activate it afterwards by using an Operating System Layer version; however, you must use this version or a later version when deploying desktops. Use the same key for activation on the gold image or Operating System Layer version that you plan to use for deployment of your virtual desktops. If using KMS, the key is shown in line 4A of the Unidesk Unattend.xml File Builder form. Windows 7 Activation using KMS To automate activation in Windows 7, you can use a Visual Basic (vbs) script from Microsoft called the Software License Manager (slmgr.vbs). This script allows scripted activation of Windows 7 desktops for both KMS and key-based licensing. The easiest way to manage Windows 7 licenses is using the Key Management Service (KMS) and volume licensing. You can also use key-based licensing but, be aware that Windows has an algorithm for deciding if a license was moved illegally to another machine. If you make too many changes to a virtual desktop, this algorithm determines that Windows is Non-Genuine and requires re-activation. This situation is much harder to manage in a key-based licensing environment than when using KMS. Requirement for automatic KMS activation Before the KMS can start activating new desktops, it must receive activation requests that exceed its threshold of 25. If your KMS is new, use the procedures in this document to enable automatic activation and deploy at least 25 desktops. Your KMS counter increases each time it receives a request for activation from the one of the deployed desktops. Once you reach the KMS threshold of 25 activation requests, you can delete these desktops, since they're not activated, and deploy normal desktops. KMS activates the operating system on the new desktops. To check the KMS counter, enter the following command on your KMS server: slmgr /dli Adding activation commands to SetupComplete.cmd You should add script commands to the SetupComplete.cmd file to configure automatic KMS activation. Windows 7 runs this file automatically after Mini-Setup completes, if it exists. The Unattend.xml Builder creates this file for you and saves it in the c:\windows\setup\scripts folder. Unattend.exe Builder 3.1 January 4, 2012 Page 5

Enter the following commands in the SetupComplete.cmd file: The commands in this file are based on the assumption that KMS was defined in DNS with a srv record. This definition occurs by default when you install the KMS. However, if your organization has multiple KMS servers, you will need to specify which one to use in the script. If you have not defined the KMS host within DNS, add this script command prior to the activation command: slmgr.vbs /skms <value>:<port> You can use the IP Address or FQDN of the KMS Host for the value variable. The default value for the port is 1688. For more detailed information about deploying KMS, see this Technet article: http://technet.microsoft.com/en-us/library/ff793409.aspx Windows 7 retail activation using a MAK Activate the operating system on the gold image or Operating System Layer version using the same MAK that you plan to use when deploying the virtual desktops. Using the same key is necessary because the Windows version can change if you use a different key. If the operating system is activated, you see the following information in the computer properties. When you save your files using the Unattend.xml File Builder, it creates a SetupComplete.cmd file similar to the following: Unattend.exe Builder 3.1 January 4, 2012 Page 6

If you want to manually view your Activation ID. enter the following commands in a command prompt:. cscript //h:cscript slmgr /dlv The output of these commands includes the Activation ID, as shown in the example on the following page. The version of windows should also match the one you intend to use. Unattend.exe Builder 3.1 January 4, 2012 Page 7

Importing the gold image into an Operating System Layer After you have the gold image configured and you are satisfied with the configuration of the unattend.xml file, create a VMware snapshot of the gold image. If you encounter problems after you import the gold image into an Operating System Layer, you can return to the pristine gold image. Next, import the gold image into a Unidesk Operating System Layer: 1. Make sure the gold image is shut down. 2. In the Unidesk Management Console, select Layers > OS Layers. 3. Select Create OS Layer. 4. Complete the wizard, specifying the gold image that you just created. Creating a Windows 7 Operating System Layer layer can take up to 20-30 minutes to complete. Copyright 2012 Unidesk Corporation. All rights reserved. Unidesk, the Unidesk logo, CachePoint, CacheCloud, and Unidesk Composite Virtualization are trademarks or registered trademarks of Unidesk Corporation. All other trademarks and registered trademarks are the property of their respective owners. Unattend.exe Builder 3.1 January 4, 2012 Page 8