Pages

Thursday, March 13, 2014

Measuring Performance on Hyper-V (Perfmon)

Measuring Performance on Hyper-V

source: http://technet.microsoft.com/en-us/library/cc768535(BTS.10).aspx

While most of the principles of analyzing performance of a guest operating system installed on a Hyper-V virtual machine performance are the same as analyzing the performance of an operating system installed on a physical machine, many of the collection methods are different. The following considerations are significant when evaluating performance of your BizTalk Server solution running on a guest operating system installed on a Hyper-V virtual machine.

Tuesday, December 10, 2013

wmi initialization failure

To resolve this error and recreate any missing or corrupt registry entries, perform the following steps:


  1. Start a command-line session. 
  2. Unregister any WMI service (also known as WinMgmt) performance libraries by typing winmgmt /clearadap 
  3. Stop all running copies of the WMI service by typing winmgmt /kill 
  4. Unregister the WMI service by typing winmgmt /unregserver 
  5. Register the WMI service by typing winmgmt /regserver 
  6. Register any WMI service performance libraries by typing winmgmt /resyncperf

Thursday, May 16, 2013

NTP Time Server Configuration in Windows Server 2008R2

Introduction Time synchronization is one one of the most important aspect in a modern computer network. Network Time Protocol (UDP 123) is the protocol designed to synchronize the clocks of your computers over the network. This tutorial will guide you to configure an NTP Time server in your network. This server will act like an authoritative time server in your domain which will serve the client computers. The NTP Time server in your network will get time from an external time source like time.windows.com or time.nist.gov or from the system BIOS. In our scenario I am going to configure an NTP Server in a PDC Emulator that will obtain time from an external source.But Windows recommend us to configure an NTP server to obtain the time from a hardware source for improved security and accuracy. So optionally I will mention how to get the time from an internal source too. Here I am listing out few importance of Time synchronization in a network: 1. Effective DC & DFS Replication. 2. Tracking security breaches, network usage, or problems affecting a large number of components can be nearly impossible if timestamps in logs are inaccurate. Time is often the critical factor that allows an event on one network node to be mapped to a corresponding event on another. 3. To reduce confusion in shared filesystems, it is important for the modification times to be consistent, regardless of what machine the filesystems are on. This document will help you to configure a NTP Time server in Windows Server 2008. Enabling & Configuring NTP Server 1. Change the server type to NTP. Click Start, click Run, type regedit, and then click OK. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type In the pane on the right, right-click Type, and then click Modify. In Edit Value, type NTP in the Value data box, and then click OK. 2. Set AnnounceFlags to 5. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags In the pane on the right, right-click AnnounceFlags, and then click Modify. In Edit DWORD Value, type 5 in the Value data box, and then click OK. 3. Enable NTPServer. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer In the pane on the right, right-click Enabled, and then click Modify .In Edit DWORD Value, type 1 in the Value data box, and then click OK. 4. Specify the time sources. Open a command prompt and type the command as below: w32tm /config /manualpeerlist:peers /syncfromflags:manual /reliable:yes /update peers: time.windows.com or time.nist.gov 5. At the command prompt, type the following command to restart the Windows Time service, and then press Enter: net stop w32time & net start w32time Some Useful commands 1. To resynchronize time : w32tm /resync 2. To verify the configuartion : w32tm /query /configuration and w32tm /query /status 3. Display the current time zone settings : w32tm /tz 4. To reset the registry settings of NTP server: net stop w32time w32tm /unregister w32tm /register net start w32time 5. To synchronize time with a linux client : ntpdate server_IP For more information visit http://technet.microsoft.com/en-us/library/cc773263%28v=ws.10%29.aspx Allow UPD Port 123 through Firewall Make an exception in your firewall to allow UDP port number 123. Apply the NTP client settings via Group Policy(Optional) Now we have to tell the client computers to obtain the time from the NTP Server. The policy is applied via GPO. The procedure is as follows: 1. Locate the Group Policy Object : Computer configuration/ Policies/Administrative Templates/ System /Windows Time Services/ Time providers 2. Enable the below settings: Configure Windows NTP Client (In our case, it is the IP of the PDC) Enable Windows NTP Client Obtaining time from a Local Source (Optional) This configuration forces the PDC master to announce itself as a reliable time source and uses the built-in complementary metal oxide semiconductor (CMOS) clock. To configure the PDC master by using an internal hardware clock, follow these steps: 1. Click Start, click Run, type regedit, and then click OK. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags In the right-pane, right-click AnnounceFlags, and then click Modify. In Edit DWORD Value, type A in the Value data box, and then click OK. Close Registry Editor. At the command prompt, type the following command to restart the Windows Time service: net stop w32time && net start w32time By accomplishing the above tasks you can configure an NTP server in your domain. For more information about NTP you can visit

Tuesday, January 10, 2012

Hyper V Course (info Trek)

- Map Tool
- WAIK
- Bit Locker
- Starwind
- Resource Monitor


Power Shell
Get - Help
Get - ex command
Get - umm command

Xen - free virtual
Sys internal
DPM
Ops manager

RDS - Replacement Terminal Services

Tuesday, January 3, 2012

How to sysprep win2003

1. Open :\Support\Tools\Deploy.cab and extract setupcl.exe, setupmgr.exe, and sysprep.exe to C:\Sysprep. (N.B. C: is your system drive. If you installed Windows to another drive letter, use that drive letter rather than C:.)

2. Run setupmgr.exe from C:\Sysprep.

3. The Setup Manager wizard starts. Click Next…

4. Create new… Next…

5. Select “Sysprep setup”. Next…

6. Select the correct OS version… Next…

7. Select “No, do not fully automate the installation”… Next…

8. Enter Name and Organization, Time Zone, Product Key, and Workgroup or Domain. The other settings can remain defaulted. Note that you don’t want to specify the computer name since you will be creating multiple computers from the base image and you don’t want to specify the admin password, even encrypted. If the sysprep program can extract the password from the answer file, so can any hacker worth their salt. Click Next… through to the end.

9. Finish… Save to C:\Sysprep\sysprep.inf. OK…

10. Wait while Setup Manager finishes. Cancel… (Yes, odd way to exit a program that has completed successfully.)

11. Run sysprep.exe.

12. Click OK.

13. Ensure that “Don’t regenerate security identifiers” is UNCHECKED. You want to regenerate the SIDs when each new clone boots.

14. Click Reseal, OK to confirm that you want to regenerate SIDs, and wait for the system to shut down.

Wednesday, March 23, 2011

virtuemart installation manual

http://virtuemart.net/documentation/User_Manual/Automatic_Installation.html

Tuesday, February 22, 2011

Unhide folders infected by viruses

go to command prompt and run following command
"attrib -h -s -a -r * /s /d"