srvgeek

srvgeek
srvgeek

Friday, December 24, 2010

ProcDump v3.01

This release fixes a bug that could cause ProcDump to crash when used with the miniplus dump option (-mp).

Introduction
ProcDump is a command-line utility whose primary purpose is monitoring an application for CPU spikes and generating crash dumps during a spike that an administrator or developer can use to determine the cause of the spike. ProcDump also includes hung window monitoring (using the same definition of a window hang that Windows and Task Manager use), unhandled exception monitoring and can generate dumps based on the values of system performance counters. It also can serve as a general process dump utility that you can embed in other scripts.

Using ProcDump

usage: procdump [-64] [[-c CPU usage] [-u] [-s seconds]] [-n exceeds] [-e [1]] [-h] [-m commit usage] [-ma | -mp] [-o] [-p counter threshold] [-r] [-t] < <process name or PID> [dump file]] | [-x <image file> <dump file> [arguments]>
-64By default Procdump will capture a 32-bit dump of a 32-bit process when running on 64-bit Windows. This option overrides to create a 64-bit dump.
-cCPU threshold at which to create a dump of the process.
-eWrite a dump when the process encounters an unhandled exception.
-hWrite dump if process has a hung window (does not respond to
window messages for at least 5 seconds).
-mMemory commit threshold in MB at which to create a dump of the process.
-maWrite a dump file with all process memory. The default dump format includes thread and handle information.
-mpWrite a dump file with thread and handle information, and all read/write process memory. To minimize dump size, memory areas larger than 512MB are searched for, and if found, the largest area is excluded. A memory area is the collection of same-sized memory allocation areas. The removal of this (cache) memory reduces Exchange and SQL Server dumps by over 90%.
-nNumber of dumps to write before exiting.
-oOverwrite an existing dump file.
-pTrigger on the specified performance counter when the threshold is exceeded.
-rReflect (clone) the process for the dump to minimize the time the process is suspended (Windows 7 and higher only).
-sConsecutive seconds CPU threshold must be hit before dump is written (default is 10).
-tWrite a dump when the process terminates.
-uTreat CPU usage relative to a single core.
-xLaunch the specified image with optional arguments.
Use the -accepteula command line option to automatically accept the Sysinternals license agreement.
To just create a dump of a running process, omit the CPU threshold. If you omit the dump file name, it defaults to <processname>.dmp.

Examples

Write up to 3 dumps of a process named 'consume' when it exceeds 20% CPU usage for 5 seconds to the directory c:\dump\consume with the name consume.dmp:
C:\>procdump -c 20 -s 5 -n 3 -o consume c:\dump\consume
Write a dump for a process named 'hang.exe' when one of its windows is unresponsive for more than 5 seconds:
C:\>procdump -h hang.exe hungwindow.dmp
Write 3 dumps 5 seconds apart:
C:\>procdump -s 5 -n 3 notepad.exe notepad.dmp
Launch a process and then monitor it for excessive CPU usage:
C:\>procdump -c 30 -s 10 -x consume.exe consume.dmp
Write a dump of a process named "iexplore" to a dump file that has the default name iexplore.dmp:
C:\>procdump iexplore
Write a dump of a process named 'outlook' when total system CPU usage exceeds 20% for 10 seconds:
C:\>procdump outlook -p "\Processor(_Total)\% Processor Time" 20
Write a dump of a process named 'outlook' when Outlook's handle count exceeds 10000:
C:\>procdump outlook -p "\Process(Outlook)\Handle Count" 10000


Download ProcDump(173 KB)

Hyper-V Integration Components version list table

Would you want to know what version of Hyper-V are you running right now?
This is a table to make a fast relationship between your current VMBUS.SYS version and the corresponding Hyper-V level.

Remember to upgrade the ICs of your VMs after applying any of this updates to your hosts.
HYPER-V IC VERSIONvmbus.sys
W2K8 RTM6.0.6001.17101
W2K8 RTM + Hyper-V RTM (KB 950050)6.0.6001.18016
W2K8 + KB 9567106.0.6001.22258
W2K8 + KB 9599626.0.6001.22352
W2K8 + SP26.0.6002.18005
W2K8 + KB 9759256.0.6002.22233
W2K8 R2 RTM6.1.7600.16385
W2K8 R2 + KB 9753546.1.7600.20542
W2K8 R2 + KB 9818366.1.7600.20683

Active Directory for Demos

Active Directory for Demos

Are you bored setting up domain controllers for your demos to work with, not sure of all the prompts to fill in then try this on a clean copy of Windows Server 2008 R2..
Create a text file called NewDC.txt and copy this into it..

[DCINSTALL]
InstallDNS=Yes
NewDomain=forest10
NewDomainDNSName=Contoso.com
DomainNetBoisName=domain
ForestLevel=3
DomainLevel=3
DatabasePath=%systemroot%\NTDS
Logpath=%systemroot%\LOG
RebootonCompletion=yes
SYSVOLPath=%systemroot%\SYSVOL
SafeModeAdminPassword=
on the last line you’ll want to add your own password to the SafeModeAdminPassword.
Save the file and then enter this command:
DCPROMO /unattend:NewDC.txt
and your done. except you might also want to put some accounts in there.  Powershell is your friend here, and if you need a regular script to do this don’t forget my favourite powershell command:
Set-ExecutionMode unrestricted
which allows you to run any old script  (usually with a .ps1 extension). Here’s a typical script I use..
Import-Module ActiveDirectory
New-ADUser -SamAccountName SQLService -Name "SQLService" -AccountPassword (ConvertTo-SecureString -AsPlainText "Pa55word" -Force) -Enabled $true ,DC=CONTOSO,DC=COM' -PasswordNeverExpires 1
New-ADUser -SamAccountName LabUser -Name "Andrew" -AccountPassword (ConvertTo-SecureString -AsPlainText "Pa55word" -Force) -Enabled $true,DC=CONTOSO,DC=COM' -PasswordNeverExpires 1
Add-ADGroupMember -Identity Administrators -Member SQLService   
Add-ADGroupMember -Identity Administrators -Member Andrew
Enjoy

Import Bulk Users to Active Directory

Import Bulk Users to Active Directory

This step is important when decide to build a brand new Green Field Windows 2008 Active Directory service and want to start utilizing the new Windows 2008 R2 Active Directory by importing all organization users’ names and passwords into the Active Directory:
1) Build CSV file that include Organization Users with specific attributes to be imported in the new Windows 2008 R2 Active Directory,
Sample of CSV can be as the following:

Recommendation
For simplicity’s sake we’ll keep it to a few basic properties like Name and Description, of course Organization IT team can and normally would have significantly more. To make it easier IT team can add a few extra columns like the SamAccountName and the Path (OU) where Organization would like the account to be created, and for account password IT team can configure random or fixed password for all users and force it for all users and distribute the new passwords for each user individually while configure all users to be forced to change password after first login.
clip_image002
2) Use cmdlet Import-CSV which read from a standard CSV file and create a set of objects based on data inside the CSV file, then send the results of this cmdlet using PowerShell pipeline to New-ADUser cmdlet from ActiveDirectory module to create the specified users in the Active Directory, as a sample cmdlet: “Import-CSV C:\Users.csv | New-ADUser” this command to be run from Active Directory PowerShell Module.
3) Verify that the users in CSV are imported in the Active Directory.
4) Manually join all workstations to the new Windows 2008 R2 Active Directory and give the required permissions for each user on his workstation
5) Verify that each user can login to his workstation with his new Active Directory user account.

Disk2vhd is a utility that creates VHD (Virtual Hard Disk - Microsoft's Virtual Machine disk format)

Disk2vhd v1.63

By Mark Russinovich and Bryce Cogswell
Published: October 14, 2010
 Download Disk2vhd(811 KB)
Rate:  
Introduction
Disk2vhd is a utility that creates VHD (Virtual Hard Disk - Microsoft's Virtual Machine disk format) versions of physical disks for use in Microsoft Virtual PC or Microsoft Hyper-V virtual machines (VMs).
The difference between Disk2vhd and other physical-to-virtual tools is that you can run Disk2vhd on a system that’s online. Disk2vhd uses Windows' Volume Snapshot capability, introduced in Windows XP, to create consistent point-in-time snapshots of the volumes you want to include in a conversion. You can even have Disk2vhd create the VHDs on local volumes, even ones being converted (though performance is better when the VHD is on a disk different than ones being converted).
The Disk2vhd user interface lists the volumes present on the system:

It will create one VHD for each disk on which selected volumes reside. It preserves the partitioning information of the disk, but only copies the data contents for volumes on the disk that are selected. This enables you to capture just system volumes and exclude data volumes, for example.
Note: Virtual PC supports a maximum virtual disk size of 127GB. If you create a VHD from a larger disk it will not be accessible from a Virtual PC VM.
To use VHDs produced by Disk2vhd, create a VM with the desired characteristics and add the VHDs to the VM's configuration as IDE disks. On first boot, a VM booting a captured copy of Windows will detect the VM's hardware and automatically install drivers, if present in the image. If the required drivers are not present, install them via the Virtual PC or Hyper-V integration components. You can also attach to VHDs using the Windows 7 or Windows Server 2008 R2 Disk Management or Diskpart utilities.
Note: do not attach to VHDs on the same system on which you created them if you plan on booting from them. If you do so, Windows will assign the VHD a new disk signature to avoid a collision with the signature of the VHD’s source disk. Windows references disks in the boot configuration database (BCD) by disk signature, so when that happens Windows booted in a VM will fail to locate the boot disk.
Disk2vhd runs Windows XP SP2, Windows Server 2003 SP1, and higher, including x64 systems.
Here's a screenshot of a copy of a Windows Server 2008 R2 Hyper-V system running in a virtual machine on top of the system it was made from:

(click image to zoom)

Command Line Usage

Disk2vhd includes command-line options that enable you to script the creation of VHDs. Specify the volumes you want included in a snapshot by drive letter (e.g. c:) or use "*" to include all volumes.
Usage: disk2vhd <[drive: [drive:]...]|[*]> <vhdfile>
Example: disk2vhd * c:\vhd\snapshot.vhd
Note: Physical-to-virtual hard drive migration of a Windows installation is a valid function for customers with Software Assurance and full retail copies of Windows XP, Windows Vista, and Windows 7. Software Assurance provides users valuable benefits—please contact Microsoft Corporation for further information. Windows XP, Windows Vista and Windows 7 installed by Original Equipment Manufacturers (OEM) using OEM versions of these products may not be transferred to a virtual hard drive in accordance with Microsoft licensing terms.

Download
Download Disk2vhd

Tuesday, December 14, 2010

SQL 2008 for SCCM R2 - STEP by STEP GUIDE

SQL 2008 for SCCM R2 - STEP by STEP GUIDE


1        SQL Server 2008  Installation & Provisioning
 1.1       SQL Server 2008 Installation
 1.1.1       Pre-Installation tasks
Reboot your machine prior to starting the SQL Server installation process to make sure that you do not have any pending reboot requests which will block the SQL Server installation process.
Create following Service Accounts in the Domain: SQLAgent, SQLReporting, SQLService
1.1.2       Installation Step by Step
Install Dotnet 3.5 SP1 and Windows Installer 4.5. These are the prerequisities for SQL 2008.

Start the setup from the media by running “setup.exe”.



 Once prerequisites have been installed, you will see the main installation screen, as shown below.
Click the New SQL Server stand-alone installation link to launch the SQL Server installation.  


  
  

 Installation will execute a system configuration check. Once the check completes successfully, your screen should look similar to the following: Click “OK”

   Accept the default product key Click NEXT.

 
   Select “I accept the license terms” as show below and then click Next.

 
   Click “Install” to “Setup Support Files”.

 
     
Verify that all the rules has status = Passed  and click Next.

Select the SQL Server features and Change the Feature directories to the Disk path as shown below then click Next.

Select Default Instance as shown below then click Next.

Verify the disk space requirements and click Next.

Enter the Domain service accounts that you created earlier for the appropriate services. When complete, your screen should look similar to the following:  Click NEXT

Select “Windows authentication mode” as shown below, Click “Add” and Choose “SCCM Admins” Group from the Active Directory as SQL Server Administrators.

Click the Data Directories tab and Change the settings as shown Below, Click NEXT.

Choose “Install but do not Configure the report server” as shown below, Click NEXT.

In the “Error and Usage Reporting” section, Click NEXT.

Verify that all the rules has status = Passed or Not applicable and click Next.


Click “Install” on the “Ready to Install” section

Verify that the Installation Status  is = “Success” and Click NEXT

Verify the final installation report and Click “Close” to Finish the installation

 

   

  
1.2       SQL Server 2008 Provisioning & Optimization
POST SCCM Installation steps on the Sql server for optimization purposes.
1.2.1       SCCM Database Parameters
Calculate the initial database size based on 2 MB per client (Workstations and Servers), e.g. 50,000 client * 2MB per client = 100,000 MB or 100 GB.

   Central Site
Setting   Value  
Name  SMS_123 
Data File:  100 Gb 
Log File:  20 Gb 
Autogrowth   By 10%, unrestricted growth 
Users  50 

Regional Primary Sites
Setting   Value  
Name  SMS_<<SiteCode>> 
Data File:  40 Gb 
Log File:  8 Gb 
Autogrowth   By 10%, unrestricted growth 
Users  20 


4.2.1.1   Follow the steps defined below to do the changes on the SCCM Databases
Click Start -> Microsoft SQL Server 2008 ->
Right Click on the “SQL Server Management Studio” and choose to “Run as administrator”, as shown in the picture below;

4.2.1.2   Click “Connect” to start managing the local SQL Server, as shown in the picture below


4.2.1.3   Expand the “Databases” and Right Click  “SMS_XYZ” and choose “Properties” as shown in the picture below;

4.2.1.4   Click “Files” on the “Select page” to the left and change the “initial Size” of the “SMS_XYZ” file to   “40000 MB” and the “SMS_XYZ_log” file to “8000 MB” on the right pane and Click “OK”

Do Not Close the “Microsoft SQL Management Studio console”, it will be used to optimize the TempDB in the following steps.
1.2.2       TempDB Optimization
For best performance, increase or request the TempDB size as such:

   Central Site

Setting   Value  
Name  TempDB 
Data File:  20Gb (= 20% of the SCCM DB) 
Log File:  10Gb (= 50% of the TempDB) 
Autogrowth   By 10%, unrestricted growth 
Regional Primary Sites

Setting   Value  
Name  TempDB 
Data File:  8 Gb (= 20% of the SCCM DB) 
Log File:  4 Gb (= 50% of the TempDB) 
Autogrowth   By 10%, unrestricted growth 
4.2.2.1   Expand the “Databases” and “System Databases” tree to see the “TempDB” in the console,  Right Click  “TempDB” and choose “Properties” as shown in the picture below;


4.2.2.2   Click “Files” on the “Select page” to the left and change the “initial Size” of the “tempdev” file to “8000 MB” and the “templog” file to “4000 MB” on the right pane and Click “OK”

Close the “Microsoft SQL Management Studio console”
1.2.3       Change the RAM settings for the SQL server
I choose to fix the RAM usage for the SCCM Sql server running on the same server as the SCCM Primary site servers,
my servers had 8 GB Ram Memory and I have allocated 5 GB for the SQL server using the OSQL commands below:

Sunday, December 12, 2010

Free Resources and Tools to Plan and Deploy Windows 7

Free Resources and Tools to Plan and Deploy Windows 7

Microsoft Assessment and Planning Solution Accelerator
A centralized and agentless tool that can remotely inventory computers, identify their supported Windows 7 experience, and recommend specific hardware upgrades where appropriate. It inventories heterogeneous environments and provides usage information for SQL Server and servers in the Core CAL Suite, Windows 2000 Server migration assessment, SQL Server 2008 discovery and assessment for consolidation, and a readiness assessment for Windows 7, Office 2010, and Windows Server 2008 R2. MAP even helps you identify underutilized resources and hardware specifications needed to consolidate servers using Microsoft Hyper-V technology.

Microsoft Operations Framework (MOF) 4.0
Offering practical guidance for IT organizations, MOF reflects a single, comprehensive IT service lifecycle. It helps you connect service management principles to everyday IT tasks and activities and ensures alignment between IT and the business. You’ll find resources to help you plan and diagram your infrastructure as you prepare to deploy Windows 7 (and other technologies).

Microsoft Deployment Toolkit (MDT) 2010 (Update 1)
A Solution Accelerator designed for both operating system and application deployment, Update 1 supports deployment of Windows 7, Office 2010, and Windows Server 2008 R2 in addition to deployment of Windows Vista, Windows Server 2008, Windows Server 2003, and Windows XP. While it is designed to support high volume deployments, the MDT 2010 technology framework is also well suited to low-volume deployment projects, making it an essential resource for organizations of all sizes.

The Windows Automated Installation Kit (AIK) for Windows 7 (Version 2.0)
The Windows Automated Installation Toolkit (AIK) includes a variety of tools and documentation to help you deploy Windows in your organization. Ideal for highly customized environments, the included tools enable you to configure many deployment options. Windows AIK includes:
  • Windows System Image Manager (Windows SIM)
    Open Windows images, create answer files, and manage distribution shares and configuration sets.
  • ImageX
    Capture, create, modify, and apply Windows images.
  • Deployment Image Servicing and Management (DISM)
    Apply updates, drivers, and language packs to a Windows image.
  • Windows Preinstallation Environment (Windows PE)
    A minimal operating system environment used to deploy Windows. The AIK includes several tools used to build and configure customized Windows PE environments.
  • User State Migration Tool (USMT)
    Migrate user data from earlier versions of Windows to Windows 7.

Work with disks with out drive letters


When we set up a cluster of virtualization is commonly used CSV to have more than one VM per LUN (disk).

However there are situations where we prefer to dedicate one or more disk LUN to a VM on grounds of privacy, control, performance, a software requirements, etc..
On these occasions if we give each disk a drive letter you will find that when the cluster comes to have many such cases, we will run out of drive letters.
For quite some time and of course Windows clusters let us work with disk drives that have no letter.
When a unit has no lyrics, accessed by a unique identifier we call GUID.
There is a misconception that to work without drive letters is necessary to set the volume with the formatting style GPT partition instead of MBR, say that this is false and that except for Itanium-based machines must leave the formatting style GPT partition for those volumes that will have more than 2TB.


For a letter volume has not only have to remove it or not allocated during creation.


For me the volume label is very important in a cluster is a key tool to have traceability records from all the tools, soil advise if it is a SAN disk turn your same tag you've used in the SAN, if it also is a label that gives us added information for the better, such as SAN in the next, the type of records, etc.
Well, you have created the disk, now as accedéis?, From the disk manager will see that you can not open the drive, if you go to explorer the drive does not come out.
Powershell y ejecutar el siguiente comando: To open the drive the first thing you need is to know the GUID for this show Powershell and run the following command:
“gwmi win32_volume|where-object {$_.filesystem -match "ntfs"} |fl Label, name” 

Excecute the command:
"Gwmi win32_volume | where-object {$ _.filesystem-match" ntfs "} | fl Label name"


Select the GUID, copy, open a "Run" and paste the GUID, click OK and your volume will open in your browser.




I hope you find it useful.

Friday, December 10, 2010

Windows 7: 77 Windows 7 Tips

Windows 7: 77 Windows 7 Tips

Whether or not you're upgrading from Vista or skipping it altogether and moving up from Windows XP, you'll need to know how to make the most of it in your environment. Here are 77 tips and tricks to get you there.

Edited by Keith Ward

At a Glance:

  • Make Windows 7 faster
  • Get more done with Windows 7
  • The best Windows 7 shortcuts
  • Securing Windows 7
Windows 7 may be Microsoft’s most anticipated product ever. It builds on Windows Vista’s positives, and eliminates many of that OS’s negatives. It adds new functionality, too—all in a package that is less resource-hungry than its predecessor.
And whether or not you're upgrading from Vista or skipping it altogether and moving up from Windows XP, you'll need to know how to make the most of it in your environment. Here are 77 tips and tricks to get you there.
1. Pick Your Edition -- Most business users do not need the more expensive Ultimate Edition; stick with Professional unless you specifically need BitLocker.
2. Upgrading? Go 64-bit -- As the second major Windows release to fully support 64-bit, the x64 architecture has definitely arrived on the desktop. Don't buy new 32-bit hardware unless it's a netbook.
3. Use Windows XP Mode -- Yes, it's only an embedded Virtual PC with a full copy of WinXP—but it's an embedded Virtual PC with a full copy of Windows XP! This is the first profoundly intelligent use of desktop virtualization we've seen—and a great way to move to Windows 7 without giving up full Windows XP compatibility.
4. Use Windows PowerShell v2 -- More than just a shell, this is the administration tool you've always wanted: Parallel, distributed processing for administrative tasks! Manage 100 machines literally as easily as you manage one with the new Remoting feature. Windows PowerShell v2 ships for the first time in Windows 7, and within six months will be available for older versions of Windows.
5. Use AppLocker -- We've been fans of Software Restriction Policies since Windows XP, and AppLocker finally makes application whitelisting possible. Use it to enhance or even replace your anti-virus software, ensuring that only the software you want to run will run.
6. Shift to and from Explorer and CommandPrompt -- The classic Windows power toy Open Command Prompt Here is now an integral part of Windows 7 Explorer. Hold down the shift key then right-click a folder to add this option to the property menu. While you're in a command prompt, if you want to open an Explorer window with the focus of the window on the current directory, enter start.
7. Record Problems -- The Problem Steps Recorder (PSR) is a great new feature that helps in troubleshooting a system (see Figure 1). At times, Remote Assistance may not be possible. However, if a person types psr in their Instant Search, it will launch the recorder. Now they can perform the actions needed to recreate the problem and each click will record the screen and the step. They can even add comments. Once complete, the PSR compiles the whole thing into an MHTML file and zips it up so that it can be e-mailed for analysis to the network admin (or family problem solver, depending on how it's being used.
Figure 1 The Problem Steps Recorder dramatically speeds up troubleshooting
Figure 1 The Problem Steps Recorder dramatically speeds up troubleshooting
8. Make Training Videos -- Use a tool like Camtasia to record short, two to three minute video tutorials to help your users find relocated features, operate the new Taskbar and so forth. Get them excited about Windows 7—and prepared for it.
9. Start Thinking About Windows Server 2008 R2 -- Some of Windows 7's more compelling features, like BranchCache, work in conjunction with the new server OS. The R2 upgrade path is pretty straightforward, so there's little reason not to take advantage of the synergies if you can afford upgrade licenses.
10. Prepare Those XP Machines -- There's no in-place upgrade from Windows XP to Windows 7, so start planning to migrate user data now, in advance of a Windows 7 upgrade deployment.
11. Consider Clean Installs -- Even when upgrading Windows Vista machines, consider a clean install rather than an in-place upgrade. Yes, it's more hassle, but it'll produce a more trouble-free computer in the long run.
12. Consider Upgrade Assurance -- Even if you've never bought it before, consider it for your new Windows 7 licenses. Access to the Microsoft Desktop Optimization Pack (MDOP), which includes App-V, MED-V and other cool technologies, is worth the premium.
13. Find New Tools -- Within Control Panel is a single Troubleshooting link that leads you to all of your diagnostic tools on the system. There are additional tools, however, not installed by default. Selecting the "View all" link in the top left-hand corner will help you to see which troubleshooting packs are local and which ones are online. If you find a tool that you don't have, you can grab it from here.
14. Understand Virtual Desktop Infrastructure (VDI) -- Windows 7 plays an important role in Microsoft's VDI strategy, where virtualized Windows 7 machines are hosted on a central virtualization server using a special blanket "Enterprise Centralized Desktop" license. Read up and figure out if you can take advantage of this new strategy.
15. Prepare for DirectAccess -- DirectAccess makes it easier for users to remotely access their office-based resources, without a VPN. DirectAccess also opens up remote computers more fully to Group Policy—but it requires Windows 7 and Windows 2008 R2.
16. Employ Deployment Image Servicing and Management (DISM) -- If you quickly want to list or manage Windows packages, features or drivers, use the command-line utility DISM. The "image" in the name may fool you into thinking that this is solely a deployment tool. An online command-line switch lets you manage the features in the currently loaded OS. To get a list of the loaded Windows features, enter dism /online /get-features /format:table. To enable a feature, enter dism /online /enable-feature /featurename:<name>.
17. Embrace Troubleshooting Packs -- Designed to help users troubleshoot and solve problems on their own, you need to update your support procedures to acknowledge these Packs. For example, don't force users to repeat steps the Pack already walked them through, and consider developing your own Packs (in Windows PowerShell) to support in-house systems.
18. Check Reliability -- The Reliability Monitor was introduced in Windows Vista as 'The Reliability and Performance Monitor." In Windows 7 it has been separated from Performance Monitor and moved to a new location under the Action Center. You open the Action Center in Control Panel and then look under the Maintenance options for the "View reliability history" link. You can also just type in Reliability Monitor from the Instant Search (see Figure 2).
Figure 2 The Reliability Monitor has been broken out separately from Performance Monitor
Figure 2 The Reliability Monitor has been broken out separately from Performance Monitor
19. Accept Diversity -- Not every organization will be ready to move entirely to Windows 7 right away. That's fine—but that shouldn't mean the entire organization stays on Windows XP, either. The myths of the cost savings of having only one OS have been largely disproven or downplayed, so use Windows 7 where it makes sense to do so.
20. Get Snippy -- The snipping tool has also been around in various incarnations but it's even easier to use in Windows 7. Launch the tool, then drag and drop any part of your screen. The tool will snip the selection. You can save it as a graphic file or annotate with basic drawing tools. Teach your end users how to use this tool so they can grab the snapshots of their problems and send them to the help desk. Or create your own library of visual notes.
21. Presentation Nirvana -- Press Windows+P to access the new Presentation mode, and easily turn on your projector and laptop screen at the same time. No more messing with vendor-specific utilities and arcane keystrokes. (Windows+X accesses the Mobility Center, with additional presentation options.)
22. Cut the Clutter --Press Windows+Home to minimize all but the current window, removing background clutter and letting you focus on that report your boss has been bugging you about.
23. Be a Mouse-Click Administrator -- Windows 7 makes it easy to gain admin rights with a keyboard shortcut. Click on Ctrl+Shift on a taskbar-locked icon, and voila! You've launched it with appropriate admin rights.
24. Faster Installations -- If your computer is capable of booting from USB, try this: XCopy the Windows 7 installation DVD to a sufficiently large USB drive, boot from that drive, and install Windows from there. It's faster than a spinning platter.
25. Burn Discs with a Click -- Or two; double-click an ISO file to burn it to your CD or DVD writer.
26. Restore Point Previews -- Many of us used to shut off System Restore because we were terrified to actually use it; under Windows 7, we can be much calmer. After selecting a Restore Point, Windows will now offer to show you which files and folders will be affected by restoring to that point.
27. Sync Time Zones -- If you work with offices in different time zones and frequently find yourself missing meeting times because you are not in sync with their time zone, try the "Additional Clocks" feature that was first introduced in Vista. Within your Date and Time settings is a tab called Additional Clocks, where you can add two or more clocks to your taskbar time, and set them to provide different time zones from your current time zone.
28. Configure User Account Control (UAC) -- Even if you're a UAC hater, give it another try. Go to the Control Panel to configure its behavior to something slightly less obnoxious than what Windows Vista had, and see if you can't live with the extra protection it offers (see Figure 3).
Figure 3 User Account Control, the bane of administrators, has been revamped and improved
Figure 3 User Account Control, the bane of administrators, has been revamped and improved
29. RoboCopyCopyCopy -- The always-useful Robocopy.exe can now run multi-threaded; run Robocopy /? to review its new parameters (like /MT for multithreading) and make your copies go faster.
30. Remote Desktop Console -- Windows 7 Remote Server Administration Tools (RSAT) does not include a console-based remote desktop utility. And even if it did, the standard remote desktop console has some nagging limitations: It can't move connections around in the list; it can't sort by folders and so forth. If you manage lots of servers from your Windows 7 workstation, try downloading a copy of mRemote from mremote.org. This donation-requested utility allows you to mix together a variety of remote control applications, including Citrix Independent Computing Architecture (ICA), Microsoft Remote Desktop Protocol (RDP), Virtual Network Computing (VNC), Secure Shell (SSH) and rlogin. All host names are displayed in a standard tree control that can be divided into folders, sorted alphabetically, and allow you to assign different logon accounts and secure passwords to each connection.
31. Multiple Monitors -- Windows 7 makes working with multiple monitors intuitive and flexible. There are a variety of shortcuts and mouse motions that flick windows from monitor to monitor. To make the most of this, you need lots and lots of screen real estate. Try one of the new QWXGA monitors from Samsung (tinyurl.com/qwxgasamsung) or Dell (tinyurl.com/qwxgadell). These 23-inch monitors have a 2048x1152 resolution, making it possible to put two full-sized pages on the same monitor. Pair them together and you'll get enough space to have all your admin tools open along with Office, Visio, your intranet sites and a little note to your mom in Live Mail. Move your taskbar to the left or right side of the window instead of along the bottom to free up even more real estate.
32. Windows PowerShell Scripting -- If you want to make the most of Windows PowerShell on Windows 7, you'll need a quick way to build and debug scripts. Windows 7 comes with an interactive editor that allows you to try out cmdlets and test functions on the fly.
33. Drag-and-Drop Notification Icons -- The redesigned notification area displays only a minimum number of icons; all other notification icons are moved to a side window. Rather than using the Customize option to select icons for the main display, you can drag-and-drop icons from the side window to the notification area.
34. Add Unindexed Shared Folders to Library -- You can add UNC paths such as \\servername\sharename to a Library, but the server must index the folder. If you want to add a UNC path to an unindexed server, you can create a symbolic link to the UNC path, then add the link or links to the library. Use the mklink command. For example, mklink HomeFolder \\ServerName\Homefolder.
35. Simplify Cloned Machine Setups -- You can't run Sysinternals' newsid utility to change the identity of a cloned Windows 7 machine (either a virtual machine or imaged PC). Instead, create a template installation then run sysprep /oobe /generalize /reboot /shutdown /unattend:scriptfile. Clone or copy this virtual machine file. When it launches, it will get a new SID and you can fill in the name. The reference for building unattended script files is at tinyurl.com/winunattend.
36. Snap That Aero -- The Windows key is great for all your shortcuts. Now you can use it to work with the new AeroSnap feature in Windows 7. Select a window, hit the Windows key and a left or right arrow to snap the window to that half of the screen, or use the up arrow to snap it to the top of the screen.
37. Shortcut the Taskbar -- The Windows key is great for shortcuts. You can select the Windows key and a number to correspond to items on your taskbar. So, if IE (for example) is the third icon on your taskbar (not counting the Start button), you can hit the Windows key and the number three to launch or open IE.
38. Manage Passwords -- Control Panel includes a new application called Credential Manager. This may appear to be a completely new tool that allows you to save your credentials (usernames and passwords) for Web sites you log into and other resources you connect to (such as other systems). Those credentials are saved in the Windows Vault, which can be backed up and restored. However, you might see this as similar to a tool we have in XP and Vista. From the Instant Search, type in control /userpasswords2 and you will be brought to the Advanced User Accounts Control Panel, where you can also manage passwords for your account (see Figure 4).
Figure 4 The Credential Manager provides a handy, secure place to store passwords
Figure 4 The Credential Manager provides a handy, secure place to store passwords
39. Trigger Actions -- Event Viewer is closely tied into Task Scheduler. You have the ability to take an event (select it in Event Viewer) and then from the Actions pane, select the option "Attach a Task" to have that event, when it appears, trigger an action. That action can be: launch a program; send an e-mail; or display a message. This feature may be very helpful in troubleshooting a problem.
40. Browse InPrivate -- A new feature in IE8 is the ability to open the browser in an InPrivate Browsing session that allows you to perform banking and so forth from a public location without fear of leaving behind any residue. IE will not retain anything you do in an In­Private Browsing session. You can perform this action if you are already within IE by selecting the Safety button and then InPrivate Browsing. This will open another IE window altogether. However, you can save a few steps by using the shortcut. Right-click the desktop IE icon, click InPrivate and the windows will open in an InPrivate session already.
41. Go Live -- Many applications installed on past versions of Windows have been removed. Starting with Windows 7, these applications (and a few others not typically installed with Windows) have been moved into the Live Essentials downloadable applications, at download.live.com. These applications include Messenger, Mail, Writer, Photo Gallery, Movie Maker, Family Safety and a few others.
42. Remove Apps -- Although some applications have been moved off of Windows to become an optional download, other apps, such as IE8, Media Player, Media Center and DVD Maker are still included. In times past, especially when it came to IE, the applications were tied into the OS. However, in Windows 7 you can easily remove them if desired. Head to the Program and Features applet in Control Panel and select the "Turn Windows features on or off" link in the top left-hand corner. Then you can select the checkbox of the features you want to lose or add for your system (see Figure 5).
Figure 5 Windows 7 unbinds many applications from the OS, making it easy to add and remove them
Figure 5 Windows 7 unbinds many applications from the OS, making it easy to add and remove them
43. Are You Windows 7 Experienced? -- System properties has a rating called the Windows Experience Index (WEI). This rating is a collection of five different ratings that are determined by the Windows System Assessment Tool (WinSAT). The highest rating score is 7.9 (compared to 5.9 in Vista), using the categories of Processor, RAM, Graphics, Gaming Graphics and Primary Hard Disk. The final rating is not an average of all the ratings, but the lowest of the subcomponent scores.
44. Analyze Processes -- One of the coolest new features in the revamped Resource Monitor (resmon) is the ability to see the "wait chain traversal." An unresponsive process will be shown in red in the Resource Monitor; right-click the process and choose Analyze Process. This will show the threads in the process and see who holds the resources that are holding up the process itself. You can then kill that part of the process if you like.
45. Create Virtual Worlds -- Virtualization capability has been added to the Disk Management tools. If you open Computer Management, go to the Disk Manager tool and then click the Action button at top, you will see the options Create VHD and/or Attach VHD. This allows you to create and mount a virtual hard drive directly from within the GUI. Note: With Windows 7 you even have the ability to boot a Windows 7 VHD (see Figure 6).
Figure 6 Windows 7 adds a great deal of virtualization support, including the ability to create and attach virtual hard drives from the GUI
Figure 6 Windows 7 adds a great deal of virtualization support, including the ability to create and attach virtual hard drives from the GUI
46. Encrypt USB Sticks -- Use BitLocker To Go. Maybe you've managed to never misplace or lose a USB key, but for the rest of us mere mortals, it's a fact of life. Most of the time it's no big deal, but what if it contains sensitive data? BitLocker To Go enables you to encrypt data on removable storage devices with a password or a digital certificate stored on a smart card.
47. Lock with Group Policy -- Take control through AppLocker application control. AppLocker intercepts kernel calls that try to create new processes or load libraries and ensures the code is allowed to execute. Practically, that means you can eliminate unknown and unwanted software by implementing AppLocker through Group Policy.
48. Be Our Guest -- Guest mode proves a convenient method to give a guest or child access to your computer with limits on making system changes, installing software, or writing to the disk outside the user profile. After the user is done and logs off, data saved inside of the user profile is deleted. You cannot use Guest mode in an AD environment.
49. Restore from Backed up Restore Points -- You can choose to include restore points in your backups and restore from them when using System Restore. This is convenient if you want to create a baseline of a working configuration and be able to restore to it in the future without overwriting other data on the hard disk.
50. Benefit from BranchCache -- BranchCache helps you save on round trips for requested files in remote branch scenarios. If one person requests a file over the WAN, it's cached locally and either distributed across computers at the remote branch or stored on a central server at the remote branch.
51. Disable Search Suggestion Popups -- As you type in the Search Box, Windows 7 makes suggestions based on past queries by pulling past queries from the Registry. You can disable this in the Local Group Policy by enabling User Configuration | Administrative Templates | Windows Components | Windows Explorer | Turn Off Display Of Recent Search Entries In the Windows Explorer.
52. Pin Control Panel to Taskbar -- If you use the Control Panel frequently, you may have noticed that you cannot simply right-click the Control Panel and select Pin to Taskbar. Instead, you must first Open Control Panel so its icon appears in the taskbar. From there, you can right-click the icon in the taskbar and select Pin this program to taskbar.
53. Leverage Search Connectors -- You can now search the Web using the search functionality. Windows 7 includes Federated Search to increase the search scope beyond the local and network resources. Several search connectors are available, such as for YouTube and Twitter, or you can create custom ones to fit your needs.
54. Use Stickier Notes -- Even though this feature has existed in previous versions of Windows in one form or another, it's much easier to use in Windows 7. You can stick a note on your desktop for quick reminders. It's a snap to change the font or note color. If you have a note selected, use Ctrl-N to create a new one.
55. Try out Improved WordPad -- You probably haven't given much thought to WordPad lately, but the version shipping with Windows 7 has undergone a major renovation. Think of it as a lite version of Microsoft Word. WordPad sports a spiffy ribbon interface, making it a snap to create well-formatted documents. Plus, you are no longer relegated to saving them as .RTF files. WordPad now supports the Office Open XML document (.DOCX) format. This makes it even easier to open .DOCX files created in Word in WordPad.
56. Calculate -- Another basic utility that received a major overhaul is the venerable calculator. In addition to standard and scientific views, there are now programmer and statistic modes. You will also love the conversion and calculation features. Want to convert Celsius to Fahrenheit but can never remember the formula? Use the conversion panel. You'll also enjoy the data calculation extension. Quickly find the difference between two dates or calculate a new date by adding or subtracting years, months or days.
57. Manage Services from Task Manager -- The Windows 7 Task Manager now includes a tab to manage services. You can quickly see at a glance the status of all services on your machine. Click a column heading to sort. You can even start and stop services with a simple right-click. If you need full-blown service management, use the Services button to launch the Services management console. You may often have the Task Manager running in the system tray; now, having service management access means one less window to have open.
58. Get Under the Hood -- Windows 7 offers more ways to peek under the hood without adding third-party solutions. A terrific example is the Resource Monitor. The performance tab in Windows Task Manager is a good start, but sometimes you need more information. Click the Resource Monitor button to get more detailed information and performance graphs for key subsystems like CPU and Disk. You can also find the Resource Monitor under Accessories | System Tools.
59. Check Vital Signs -- Another new system tool you'll enjoy is the System Health report. In the Run dialog box, type perfmon /report, which generates a system health report. This report records details about your computer's performance, resource usage and more. The report also includes diagnostic information about things that aren't working as they should and suggested steps to resolve. The reports are saved and can be accessed with the Performance Monitor management console. You can also save as an HTML file or send via e-mail.
60. Get More Windows PowerShell -- Windows PowerShell v2 promises to be a game-changer for many system administrators. Many will prefer to use the graphical Windows PowerShell console, also known as the Integrated Scripting Environment (ISE). You'll find this in the Windows Power­Shell folder under Accessories. Add a keyboard shortcut of Ctrl+Alt+I to quickly launch it. Run any Windows PowerShell command in the lower panel and see the results in the middle. Create or edit scripts in the top pane. Open multiple Windows PowerShell sessions connected to remote computers. The ISE makes Windows PowerShell v2 easy to use and fun (see Figure 7).
Figure 7 Windows PowerShell has been much more tightly integrated with Windows 7, and adds the Integrated Scripting Environment
Figure 7 Windows PowerShell has been much more tightly integrated with Windows 7, and adds the Integrated Scripting Environment
61. Put It on Old Stuff -- One perhaps-not-so-obvious Windows 7 tip is that you should attempt to install it everywhere. One user has a 6-year-old laptop that originally shipped with Windows XP. He could never get Windows Vista to install on it. But Windows 7 installed without complaint and runs extremely smooth. Granted, there are some Windows 7 features he can't take advantage of because the processor lacks certain features, but these are minor issues considering the laptop now has life again.
62. Improve Security -- In Vista it was difficult to manage system protection via restore points. The System Protection tab in Windows 7 is a vast improvement. In one spot you can configure how much space to devote to restore points, delete and create restore points or even turn off system protection altogether. This is very useful on older systems where disk space may be at a premium.
63. Actually Use Help and Support -- Much of Vista's clutter has been reduced in Windows 7. For instance, the Help and Support page has three links, a search window and a link back to Microsoft's Windows site. It's much less intimidating for end users, so make sure they know about it. Search is much improved as well, making for a better, faster experience.

The 14 Best Windows 7 Keyboard Shortcuts

The Windows key now performs a wide variety of functions. Here are a handful of the most useful ones:
64. Win+h - Move current window to full screen.
65. Win+i - Restore current full screen window to normal size or minimize current window if not full screen.
66. Win+Shift+arrow - Move current window to alternate screen.
67. Win+D - Minimize all windows and show the desktop.
68. Win+E - Launch Explorer with Computer as the focus.
69. Win+F - Launch a search window.
70. Win+G - Cycle through gadgets.
71. Win+L - Lock the desktop.
72. Win+M - Minimize the current window.
73. Win+R - Open the Run window.
74. Win+T - Cycle through task bar opening Aero Peek for each running item.
75. Win+U - Open the Ease of Use center.
76. Win+Space - Aero Peek the desktop.
77. Ctrl+Win+Tab - Open persistent task selection window, roll mouse over each icon to preview item and minimize others.


Original post:: http://technet.microsoft.com/fr-fr/windows/gg394259.aspx

Hyper-V Managing dynamic memory VI: Controlling pressure

Managing dynamic memory VI: Controlling pressure


SP1 de SCVM R2, de momento la RC no incorpora a sus management packs de SCOM la información que necesitamos para tener contralada la presión de memoria en nuestras VMs una vez activemos la memoria dinámica en ellas. SCVM R2 SP1, so far the RC does not incorporate their management packs for SCOM the information we need to have contralateral memory pressure on our VMs once activated dynamic memory in them.
 
Cuando una VM está usando la memoria máxima configurada en la memoria dinámica, decimos que su presión de memoria es un 100% a partir de ese valor estaremos de seguro paginando en disco. When a VM is configured using the maximum memory in dynamic memory, say your memory pressure is 100% from that value insurance will be paged to disk.
Para que el balanceador de memoria de Hyper-V pueda jugar con la memoria es necesario que o bien tenga memoria libre o bien se la pueda quitar a VMs que no estén usando toda su memoria y que tengan activada la memoria dinámica. For the memory balancer Hyper-V can play with memory is necessary that either have free memory can either remove the VMs that are not using all their memory and have enabled the dynamic memory.
Por tanto si yo tuviera que administrar una plataforma de virtualización con memoria dinámica querría ser informado si alguna VM está por encima del 100%, además me gustaría tener una visión a largo plazo de cómo está evolucionando la presión en las VMs y la cantidad de memoria con la que puede jugar el host. So if I had to manage a virtualization platform with dynamic memory would be informed if a VM is above 100%, and I would have a long-term vision of how it is evolving the pressure in the VMs and the amount of memory with which you can play the host.
Para conseguir estos objetivos vamos a usar como es lógico System Center Operations Manager, recalcar que previamente deberíamos haber instalado el management pack de Hyper-V. To achieve these objectives we will of course use System Center Operations Manager, emphasized that we should have previously installed the management pack for Hyper-V.
Quiero comentaros que lo que vamos a hacer es algo muy rápido y que se puede hacer mucho mejor con un poquito de tiempo, sin embargo lo hago de esta forma pensando que en breve tendremos los management packs definitivos que incluirán todo lo necesario. I tell you that what we do is very fast and can do much better with a little time, however I do it this way thinking that we will soon have the definitive management packs contain everything you need.
Lo primero que haremos es crear un nuevo management pack First thing we do is create a new management pack
1
2
3
Bien ahora desde la consola en el apartado de “authoring” generaremos 3 reglas con las configuraciones que se muestran a continuación. Well now from the console under "authoring" 3 rules to generate the configurations shown below.
La primera de ellas recolectara los datos de rendimiento relativos a la presión actual en cada VM The first collect performance data on the actual pressure in each VM
4
5
La segunda guardara la presión media, si lo configuramos con algo más de tiempo que la anterior será más fácil detectar variaciones bruscas. Keep the pressure the second half, if configured with more time than the previous one will be easier to detect abrupt changes.
6
La tercera nos permitirá saber con cuanta memoria cuenta el host para balancear y atender las peticiones de las VMs The third will allow us to know how much memory the host has to balance and meet the requests of the VMs
7
Ahora que ya guardamos los datos es momento de configurar las alertas, para ello creamos un monitor de doble estado con la configuración que veis a continuación. Now that you store the data is time to set up alerts, for it created a dual monitor configuration state that you see below.
8
9
10
11
12
Y aquí ya os puedo explicar por qué digo que se puede hacer mejor, sin usar las herramientas de authoring no podemos evitar que este monitor evalué todas las instancias de VM como un todo, esto significa que si una VM tiene la presión por encima de 100 el monitor se pondrá rojo, pero en la siguiente evaluación si otra VM está por debajo de 100 el monitor se pondrá verde y la alerta se resolvería sola y nunca la veríamos, por esa razón como veis he quitado la opción de resolver automáticamente la alerta si el monitor vuelve a verde. And here you and I can explain why I say you can do better, without using authoring tools can not prevent this monitor I tested all instances of VM as a whole, this means that if a VM is the pressure above 100 The monitor will turn red, but the next evaluation if other VM is below 100, the monitor will turn green and the alert is resolved one and never would see, for that reason as you see I have removed the option to automatically resolve the alert if the monitor turns green. Como digo esto lo podemos resolver haciendo el management pack con algo más de tiempo y las herramientas adecuadas. As I say this can be resolved by the management pack with more time and the right tools.
Perf
Ahora ya será cuestión de hacernos unas sencillas vistas para ver la presión de las VMs y estresarlas para ver si sale la alerta Now let us be a simple matter of sights to see pressure and stress for the VMs to see if the alert comes
alert
Si vemos el explorador de salud del host veremos lo siguiente: If we see the health of the host browser will see the following:
mon
En el siguiente post os explico como sacar un informe de la presión de memoria de las VMs. In the next post I will explain how to get a report from the memory pressure of the VMs.
Un saludo a todos. Greetings to everyone.