Home » 2012

Yearly Archives: 2012

Create UEFI Installable Windows 7/8 USB Drive

Important: UEFI accepts boot loaders only from a FAT32 formatted boot volume.

You will need a 4GB+ USB drive:

  1. Open elevated command prompt
  2. Run diskpart
  3. Enter list disk
    Locate your USB drive number. Pay attention, identifying the wrong disk could wipe out your system.
  4. Enter select disk #     (where # is the disk number of your USB drive from the list above)
  5. Enter these commands: (Everything on the disk will be deleted!)
  • clean
  • create partition primary
  • select partition 1
  • active
  • format quick fs=fat32
  • assign
  • exit
  1. Mount or extract the Windows 7 or 8 ISO
  2. Copy the contents from the ISO to the USB drive
  • robocopy S:\\ D:\\ /e    (S = the ISO drive or contents, D = the USB device)
  1. Enter the BIOS setup by pressing one of the F keys. (F2 is the most common, but F12 may work also)
  2. Disable Legacy BIOS ROMS support. (May also be “UEFI only” or similar option.
  3. Save BIOS and Exit, boot from your USB stick to start the installation.
  4. When selecting the drive and partition configuration in Setup, I find it best to use the Advanced Options and delete all existing HDD partitions on the destination drive.

Then click New and then Apply to automatically create the four (4) partitions needed for UEFI/GPT/Dynamic Disk operation.

After Windows is installed run MSINFO32.exe and check the “BIOS Mode” in the system summary. It will show either “UEFI” or “Legacy”.  (If you followed these instruction then hope for “UEFI”.)

Building a Free Hyper-V Server 2012 Cluster

Step-by-Step: Building a FREE Hyper-V Server 2012 Cluster – Part 1 of 2

Step-by-Step: Building a FREE Hyper-V Server 2012 Cluster – Part 2 of 2

Keyboard shortcuts for Windows

Windows system key combinations

  • F1: Help
  • CTRL+ESC: Open Start menu
  • ALT+TAB: Switch between open programs
  • ALT+F4: Quit program
  • SHIFT+DELETE: Delete item permanently
  • Windows Logo+L: Lock the computer (without using CTRL+ALT+DELETE)

Windows program key combinations

  • CTRL+C: Copy
  • CTRL+X: Cut
  • CTRL+V: Paste
  • CTRL+Z: Undo
  • CTRL+B: Bold
  • CTRL+U: Underline
  • CTRL+I: Italic

Mouse click/keyboard modifier combinations for shell objects

  • SHIFT+right click: Displays a shortcut menu containing alternative commands
  • SHIFT+double click: Runs the alternate default command (the second item on the menu)
  • ALT+double click: Displays properties
  • SHIFT+DELETE: Deletes an item immediately without placing it in the Recycle Bin

General keyboard-only commands

  • F1: Starts Windows Help
  • F10: Activates menu bar options
  • SHIFT+F10 Opens a shortcut menu for the selected item (this is the same as right-clicking an object
  • CTRL+ESC: Opens the Start menu (use the ARROW keys to select an item)
  • CTRL+ESC or ESC: Selects the Start button (press TAB to select the taskbar, or press SHIFT+F10 for a context menu)
  • CTRL+SHIFT+ESC: Opens Windows Task Manager
  • ALT+DOWN ARROW: Opens a drop-down list box
  • ALT+TAB: Switch to another running program (hold down the ALT key and then press the TAB key to view the task-switching window)
  • SHIFT: Press and hold down the SHIFT key while you insert a CD-ROM to bypass the automatic-run feature
  • ALT+SPACE: Displays the main window’s System menu (from the System menu, you can restore, move, resize, minimize, maximize, or close the window)
  • ALT+- (ALT+hyphen): Displays the Multiple Document Interface (MDI) child window’s System menu (from the MDI child window’s System menu, you can restore, move, resize, minimize, maximize, or close the child window)
  • CTRL+TAB: Switch to the next child window of a Multiple Document Interface (MDI) program
  • ALT+underlined letter in menu: Opens the menu
  • ALT+F4: Closes the current window
  • CTRL+F4: Closes the current Multiple Document Interface (MDI) window
  • ALT+F6: Switch between multiple windows in the same program (for example, when the Notepad Find dialog box is displayed, ALT+F6 switches between the Find dialog box and the main Notepad window)

Shell objects and general folder/Windows Explorer shortcuts

For a selected object:

  • F2: Rename object
  • F3: Find all files
  • CTRL+X: Cut
  • CTRL+C: Copy
  • CTRL+V: Paste
  • SHIFT+DELETE: Delete selection immediately, without moving the item to the Recycle Bin
  • ALT+ENTER: Open the properties for the selected object

To copy a file

Press and hold down the CTRL key while you drag the file to another folder.

To create a shortcut

Press and hold down CTRL+SHIFT while you drag a file to the desktop or a folder.

General folder/shortcut control

  • F4: Selects the Go To A Different Folder box and moves down the entries in the box (if the toolbar is active in Windows Explorer)
  • F5: Refreshes the current window.
  • F6: Moves among panes in Windows Explorer
  • CTRL+G: Opens the Go To Folder tool (in Windows 95 Windows Explorer only)
  • CTRL+Z: Undo the last command
  • CTRL+A: Select all the items in the current window
  • BACKSPACE: Switch to the parent folder
  • SHIFT+click+Close button: For folders, close the current folder plus all parent folders

Windows Explorer tree control

  • Numeric Keypad *: Expands everything under the current selection
  • Numeric Keypad +: Expands the current selection
  • Numeric Keypad -: Collapses the current selection.
  • RIGHT ARROW: Expands the current selection if it is not expanded, otherwise goes to the first child
  • LEFT ARROW: Collapses the current selection if it is expanded, otherwise goes to the parent

Properties control

  • CTRL+TAB/CTRL+SHIFT+TAB: Move through the property tabs

Accessibility shortcuts

  • Press SHIFT five times: Toggles StickyKeys on and off
  • Press down and hold the right SHIFT key for eight seconds: Toggles FilterKeys on and off
  • Press down and hold the NUM LOCK key for five seconds: Toggles ToggleKeys on and off
  • Left ALT+left SHIFT+NUM LOCK: Toggles MouseKeys on and off
  • Left ALT+left SHIFT+PRINT SCREEN: Toggles high contrast on and off

Microsoft Natural Keyboard keys

  • Windows Logo: Start menu
  • Windows Logo+R: Run dialog box
  • Windows Logo+M: Minimize all
  • SHIFT+Windows Logo+M: Undo minimize all
  • Windows Logo+F1: Help
  • Windows Logo+E: Windows Explorer
  • Windows Logo+F: Find files or folders
  • Windows Logo+D: Minimizes all open windows and displays the desktop
  • CTRL+Windows Logo+F: Find computer
  • CTRL+Windows Logo+TAB: Moves focus from Start, to the Quick Launch toolbar, to the system tray (use RIGHT ARROW or LEFT ARROW to move focus to items on the Quick Launch toolbar and the system tray)
  • Windows Logo+TAB: Cycle through taskbar buttons
  • Windows Logo+Break: System Properties dialog box
  • Application key: Displays a shortcut menu for the selected item

Microsoft Natural Keyboard with IntelliType software installed

  • Windows Logo+L: Log off Windows
  • Windows Logo+P: Starts Print Manager
  • Windows Logo+C: Opens Control Panel
  • Windows Logo+V: Starts Clipboard
  • Windows Logo+K: Opens Keyboard Properties dialog box
  • Windows Logo+I: Opens Mouse Properties dialog box
  • Windows Logo+A: Starts Accessibility Options (if installed)
  • Windows Logo+SPACEBAR: Displays the list of Microsoft IntelliType shortcut keys
  • Windows Logo+S: Toggles CAPS LOCK on and off

Dialog box keyboard commands

  • TAB: Move to the next control in the dialog box
  • SHIFT+TAB: Move to the previous control in the dialog box
  • SPACEBAR: If the current control is a button, this clicks the button. If the current control is a check box, this toggles the check box. If the current control is an option, this selects the option.
  • ENTER: Equivalent to clicking the selected button (the button with the outline)
  • ESC: Equivalent to clicking the Cancel button
  • ALT+underlined letter in dialog box item: Move to the corresponding item

Going to the Windows Server 20…

Going to the Windows Server 2012 launch in Dallas today. #Win2012 https://t.co/0JzoNjEN

I just watched the Built from …

I just watched the Built from the Cloud Up Keynote at http://t.co/qLujUR57

I just joined the Windows Serv…

I just joined the Windows Server 2012 Launch Game at http://t.co/OwSYtRDQ

I just joined the Windows Serv…

I just joined the Windows Server 2012 Launch Game at http://t.co/OwSYtRDQ

The only Dead Can Dance show i…

The only Dead Can Dance show in Texas is their only show that is already sold our. #sucks

Trying out iExplorer on a loan…

Trying out iExplorer on a loaner iPhone 4 (iOS5).

Windows Server 2012 Hyper-V ve…

Windows Server 2012 Hyper-V version 3 is looking really good. #dfwcloud

Windows Azure “geo-backup >…

Windows Azure “geo-backup >500 miles” looks like a great offsite backup feature. #dfwcloud

Attending the Microsoft Cloud …

Attending the Microsoft Cloud 2012 Summit in Dallas. #dfwcloud

Free Virtual Machine backup

Veeam is offer a free virtual machine backup tool.  It works with both Hyper-V and VMware. Read about it it here.

SQL Script Permissions Option

If you would like to have Microsoft SQL Server Management Studio (2008R2) include a tables permissions when using the “Script table as>” feature go to menu “Tools -> Options -> SQL Server Object Explorer -> Scripting -> Script permissions – True”

I love Tivo… #Tivo #ReplayTV…

I love Tivo… #Tivo #ReplayTV http://t.co/Swm9kjYA @GetGlue @FairlyLegal

Android Device As Extra Computer Monitor

Three software apps for this are:

  1. Air Display
  2. iDisplay
  3. ScreenSlider

Powershell: Rename Computer, Join Domain, and Reboot

From a “Hey, Scripting Guy! Blog” post.

An alternative to using the NETDOM command line program to rename and join computers to an Active Directory Domain is to use these Windows PowerShell 2.0 command:

(Get-WmiObject win32_computersystem).rename("newname")
add-computer -Credential iammred\administrator -DomainName iammred.net
Restart-Computer

In the first command, I use the Get-WmiObject cmdlet to retrieve the Win32_ComputerSystem Windows Management Instrumentation class. (The Get-WmiObject cmdlet has an alias of gwmi, and it will also take credentials if required.) Because this class returns only one instance, I can use my group and dot trick (see My Ten Favorite Windows PowerShell Tricks) to directly call the Rename method to rename the computer.

After I rename the computer, I use the Add-Computer cmdlet to join the computer to the domain. The Add-Computer cmdlet allows me to specify the credentials that have rights to add computers to the domain, in addition to the name of the domain to join. Although I did not do it in my example, there is also an ou parameter that allows you to specify the path to the OU that will contain the newly created computer account.

The last command, Restart-Computer, appears without any parameters. This means that the computer will restart within one minute, and it will attempt to cause processes to politely exit (generally a good thing). For emergency type of situations, there is the Force switch that will cause the computer to immediately restart, and not wait on processes to politely exit. The use of this optional parameter can lead to data loss in some situations.

MSI Installer Error Codes

Here is a list of error codes returned by the Windows Installer (msiexec.exe) program:

Value Description Error code
0 The action completed successfully. ERROR_SUCCESS
13 The data is invalid. ERROR_INVALID_DATA
87 One of the parameters was invalid. ERROR_INVALID_PARAMETER
120 This value is returned when a custom action attempts to call a function that cannot be called from custom actions. The function returns the value ERROR_CALL_NOT_IMPLEMENTED. Available beginning with Windows Installer version 3.0. ERROR_CALL_NOT_IMPLEMENTED
1259 If Windows Installer determines a product may be incompatible with the current operating system, it displays a dialog box informing the user and asking whether to try to install anyway. This error code is returned if the user chooses not to try the installation. ERROR_APPHELP_BLOCK
1601 The Windows Installer service could not be accessed. Contact your support personnel to verify that the Windows Installer service is properly registered. ERROR_INSTALL_SERVICE_FAILURE
1602 The user cancels installation. ERROR_INSTALL_USEREXIT
1603 A fatal error occurred during installation. ERROR_INSTALL_FAILURE
1604 Installation suspended, incomplete. ERROR_INSTALL_SUSPEND
1605 This action is only valid for products that are currently installed. ERROR_UNKNOWN_PRODUCT
1606 The feature identifier is not registered. ERROR_UNKNOWN_FEATURE
1607 The component identifier is not registered. ERROR_UNKNOWN_COMPONENT
1608 This is an unknown property. ERROR_UNKNOWN_PROPERTY
1609 The handle is in an invalid state. ERROR_INVALID_HANDLE_STATE
1610 The configuration data for this product is corrupt. Contact your support personnel. ERROR_BAD_CONFIGURATION
1611 The component qualifier not present. ERROR_INDEX_ABSENT
1612 The installation source for this product is not available. Verify that the source exists and that you can access it. ERROR_INSTALL_SOURCE_ABSENT
1613 This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service. ERROR_INSTALL_PACKAGE_VERSION
1614 The product is uninstalled. ERROR_PRODUCT_UNINSTALLED
1615 The SQL query syntax is invalid or unsupported. ERROR_BAD_QUERY_SYNTAX
1616 The record field does not exist. ERROR_INVALID_FIELD
1618 Another installation is already in progress. Complete that installation before proceeding with this install. ERROR_INSTALL_ALREADY_RUNNING
For information about the mutex, see _MSIExecute Mutex.
1619 This installation package could not be opened. Verify that the package exists and is accessible, or contact the application vendor to verify that this is a valid Windows Installer package. ERROR_INSTALL_PACKAGE_OPEN_FAILED
1620 This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package. ERROR_INSTALL_PACKAGE_INVALID
1621 There was an error starting the Windows Installer service user interface. Contact your support personnel. ERROR_INSTALL_UI_FAILURE
1622 There was an error opening installation log file. Verify that the specified log file location exists and is writable. ERROR_INSTALL_LOG_FAILURE
1623 This language of this installation package is not supported by your system. ERROR_INSTALL_LANGUAGE_UNSUPPORTED
1624 There was an error applying transforms. Verify that the specified transform paths are valid. ERROR_INSTALL_TRANSFORM_FAILURE
1625 This installation is forbidden by system policy. Contact your system administrator. ERROR_INSTALL_PACKAGE_REJECTED
1626 The function could not be executed. ERROR_FUNCTION_NOT_CALLED
1627 The function failed during execution. ERROR_FUNCTION_FAILED
1628 An invalid or unknown table was specified. ERROR_INVALID_TABLE
1629 The data supplied is the wrong type. ERROR_DATATYPE_MISMATCH
1630 Data of this type is not supported. ERROR_UNSUPPORTED_TYPE
1631 The Windows Installer service failed to start. Contact your support personnel. ERROR_CREATE_FAILED
1632 The Temp folder is either full or inaccessible. Verify that the Temp folder exists and that you can write to it. ERROR_INSTALL_TEMP_UNWRITABLE
1633 This installation package is not supported on this platform. Contact your application vendor. ERROR_INSTALL_PLATFORM_UNSUPPORTED
1634 Component is not used on this machine. ERROR_INSTALL_NOTUSED
1635 This patch package could not be opened. Verify that the patch package exists and is accessible, or contact the application vendor to verify that this is a valid Windows Installer patch package. ERROR_PATCH_PACKAGE_OPEN_FAILED
1636 This patch package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer patch package. ERROR_PATCH_PACKAGE_INVALID
1637 This patch package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service. ERROR_PATCH_PACKAGE_UNSUPPORTED
1638 Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs in Control Panel. ERROR_PRODUCT_VERSION
1639 Invalid command line argument. Consult the Windows Installer SDK for detailed command-line help. ERROR_INVALID_COMMAND_LINE
1640 The current user is not permitted to perform installations from a client session of a server running the Terminal Server role service. ERROR_INSTALL_REMOTE_DISALLOWED
1641 The installer has initiated a restart. This message is indicative of a success. ERROR_SUCCESS_REBOOT_INITIATED
1642 The installer cannot install the upgrade patch because the program being upgraded may be missing or the upgrade patch updates a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch. ERROR_PATCH_TARGET_NOT_FOUND
1643 The patch package is not permitted by system policy. ERROR_PATCH_PACKAGE_REJECTED
1644 One or more customizations are not permitted by system policy. ERROR_INSTALL_TRANSFORM_REJECTED
1645 Windows Installer does not permit installation from a Remote Desktop Connection. ERROR_INSTALL_REMOTE_PROHIBITED
1646 The patch package is not a removable patch package. Available beginning with Windows Installer version 3.0. ERROR_PATCH_REMOVAL_UNSUPPORTED
1647 The patch is not applied to this product. Available beginning with Windows Installer version 3.0. ERROR_UNKNOWN_PATCH
1648 No valid sequence could be found for the set of patches. Available beginning with Windows Installer version 3.0. ERROR_PATCH_NO_SEQUENCE
1649 Patch removal was disallowed by policy. Available beginning with Windows Installer version 3.0. ERROR_PATCH_REMOVAL_DISALLOWED
1650 The XML patch data is invalid. Available beginning with Windows Installer version 3.0. ERROR_INVALID_PATCH_XML
1651 Administrative user failed to apply patch for a per-user managed or a per-machine application that is in advertise state. Available beginning with Windows Installer version 3.0. ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT
1652 Windows Installer is not accessible when the computer is in Safe Mode. Exit Safe Mode and try again or try using System Restore to return your computer to a previous state. Available beginning with Windows Installer version 4.0. ERROR_INSTALL_SERVICE_SAFEBOOT
1653 Could not perform a multiple-package transaction because rollback has been disabled. Multiple-Package Installations cannot run if rollback is disabled. Available beginning with Windows Installer version 4.5. ERROR_ROLLBACK_DISABLED
3010 A restart is required to complete the install. This message is indicative of a success. This does not include installs where the ForceReboot action is run. ERROR_SUCCESS_REBOOT_REQUIRED

SCCM Recognized Return Codes

Some System Center Configuration Manager (SCCM) recognized return codes:

Success:
0

Failed / Reboot:
1604
1641
3010
3011

Failed / Retry:
4
5
8
13
14
39
51
53
54
55
59
64
65
67
70
71
85
86
87
112
128
170
267
999
1003
1203
1219
1220
1222
1231
1232
1238
1265
1311
1323
1326
1330
1618
1622
2250

Restart Web Interface for Cisco Call Manager 8.x

If the Cisco Call Manager web administration interface is running slow, or failing to respond, you can restart the Tomcat web service from the server’s SSH CLI shell.

SSH to the server and use the OS Administration username and password to log on. At Cisco’s limited CLI “admin:” prompt type the following command:


utils service restart Cisco Tomcat