Showing posts with label operating system. Show all posts
Showing posts with label operating system. Show all posts

Monday, March 25, 2013

how to increase Virtual Processor ( vCPU) in Hyper-v Guest OS

Hi,

here I will show you how to increase Virtual CPU for particular Hyper-V guest OS, basically hyper-v (windows Server 2008 R2 Sp1 )Supports only 4 Virtual CPUs which is a limitation of Hyper-V, the limitation of Hyper-v is described on below TechNet article.

http://technet.microsoft.com/en-us/library/ee405267(WS.10).aspx

So if you want to increase Virtual CPU of the GUST please follow below Steps.

1) Shutdown all Virtual Servers.

2) Stop All Hyper-V Services ( services.msc)


3) Open Hyper-V data Store where GUEST server .VHD is stored.

4) Open Virtual Machine Folder and edit .xml file.

5) Edit below parameter in .xml File.

<processors>
<count type=”integer”>8</count><features>
< limit type=”bool”>False</limit>
< /features>
< limit type=”integer”>100000</limit>
< limit_cpuid type=”bool”>False</limit_cpuid>
< reservation type=”integer”>0</reservation>
< weight type=”integer”>100</weight>
< /processors>

6) Save and Close the file.
7) Start Hyper-V Services.
8) Start Guest server.
9) Check the Processor ( you need to restart )
10) Done!!!!


Note : 1) Physical host should have enough core to support more cores for Ex: Physical server has only 4 Core and you want to assign 6 core then it won't work.

2) this is a work around solution so please take care before making change in production environment.

3) for more information please follow http://social.technet.microsoft.com/Forums/en-US/virtualmachingmgrhyperv/thread/cf17b31f-3ef9-49c8-93a0-a6d6b83b2bbe



regards,,
Gaurang

Tuesday, April 10, 2012

Determine when the operating system was installed on a computer

Determine when the operating system was installed on a computer

Introduction

The Win32_OperatingSystem WMI class can be used to gather useful information about the Operating System. It supports many properties, out of which the InstallDate property is used to determine the Operating System installation date in a computer.

Script to determine the Operating System installation date

To run the script, copy the following lines to a Notepad document, and save as a file with .VBS extension (use double-quotes) and double-click the file. The installation date and time would be displayed.
' © 2006 Ramesh Srinivasan.
'Returns the Operating System installation date.

strComputer = "."
Set dtmInstallDate = CreateObject( _
  "WbemScripting.SWbemDateTime")
Set objWMIService = GetObject("winmgmts:" _
  & "{impersonationLevel=impersonate}!\\" _
  & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
  ("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
  MsgBox "Install Date: " & getmydat (objOperatingSystem.InstallDate)
Next
Function getmydat(wmitime)
  dtmInstallDate.Value = wmitime
  getmydat = dtmInstallDate.GetVarDate
End function

Two more methods - For Windows XP Professional systems

Systeminfo.exe console-utility

Systeminfo command-line tool displays detailed configuration information about a computer and its operating system, including operating system configuration, security information, product ID, and hardware properties, such as RAM, disk space, and network cards. More information available at Microsoft Windows XP - Systeminfo

WMIC - command-line tool

Click Start, Run and type:
CMD /K WMIC OS GET InstallDate
You'll see the Operating System installation date (in WMI format). The first eight characters in that output gives you the installation date.