Archive for category Windows Infrastructure

Configure IP address in Windows Recovery Environment (WinRE)

In W2K8 R2 WinRE, when I used netsh to configure IP address to the NIC, it said “invalid interface name” all the time.

After googling, I found out that a command is needed before setting IP address.
That command is “wpeinit”.

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 20,554 views

No Comments

Hyper-V Server 2008 R2 Host backup (wbadmin)

Hyper-V Server 2008 R2 Host backup (wbadmin)

After using Hyper-V Server 2008 R2 (Free edition), I have a question about how to backup the Host.

I did research on Internet, most people is talking about using Windows Server Backup to do Host backup. Their instruction is based on Windows Server 2008 GUI.

Then, I tried to use the general server core approach to add Windows Server Backup to Hyper-V Server 2008 R2 to see if it works or not.

And the testing result is positive.

Steps for adding Windows Server Backup in Hyper-V Server 2008 R2

Step 1: Check if Windows Server Backup is installed by using the following command
oclist
wbadmin01

wbadmin02

Step 2: Use the following command to add feature
ocsetup WindowsServerBackup
wbadmin03

Step 3: Check again to see if Windows Server Backup is installed
oclist
wbadmin04

Step 4: Use the following command to do system backup with system state
wbadmin start -backuptarget:p: -allcritical -systemstate
wbadmin05

Step 5: Backup completed
wbadmin06

VN:F [1.9.18_1163]
Rating: 5.0/5 (3 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 23,201 views

, , , , , , ,

No Comments

Failed to start VM in my i7-2600K Hyper-V server 2008 R2

MS Hyper-V R2 SP1 (workgroup), Virtual Machine failed to change state

Backgroud:

1. Download Hyper-V R2 SP1 from http://technet.microsoft.com/en-us/evalcenter/dd776191.aspx

2. This server is running in workgroup mode

3. Disable firewall for all profiles

4. Enable all remote access through sconfig

5. Connect through Vista and Win7 in same workgroup with using Administrator account (Same administrator’s password on all machines)

6. hosts file modifed with adding hyper-v server name and IP

7. Windows firewall is disabled on all clients and server.

8. HRremote run to configure anonymous DCOM on client.

9. Remote Management can access to Hyper-V server and create Virtual Machine.

Problem:

When I start Virtual Machine. It has the error message “XXXXX failed to change state”.

I tried to simulate this issue with W2K8 R2 to the same machine. But this issue does not appear in W2K8 R2. I faced this problem in MS Hyper-V R2 SP1 only.

I re-installed 3 times and this issue can be reproduced in my machine.

I tried W2K8 R2 Standard (Full and Server Core) without problem. I can use my Vista to manage it succesfully.

I checked in event viewer. It has an event 3040.

Log Name: Microsoft-Windows-Hyper-V-Worker-Admin
Source: Microsoft-Windows-Hyper-V-Worker
Date: 5/4/2011 9:27:08 AM
Event ID: 3040
Task Category: None
Level: Error
Keywords:
User: NETWORK SERVICE
Computer: hyperv
Description:
‘W2K8_R2_Trial’ could not initialize. (Virtual machine ID CEF2E5E4-97A1-4393-9B5D-24805C81BE09)
Event Xml:
< Event xmlns=”http://schemas.microsoft.com/win/2004/08/events/event“>
<System>
<Provider Name=”Microsoft-Windows-Hyper-V-Worker” Guid=”{51DDFA29-D5C8-4803-BE4B-2ECB715570FE}” />
<EventID>3040</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0×8000000000000000</Keywords>
<TimeCreated SystemTime=”2011-05-04T01:27:08.857Z” />
<EventRecordID>14</EventRecordID>
<Correlation />
<Execution ProcessID=”808″ ThreadID=”2224″ />
<Channel>Microsoft-Windows-Hyper-V-Worker-Admin</Channel>
<Computer>hyperv</Computer>
<Security UserID=”S-1-5-20″ />
</System>
<UserData>
<VmInitialize xmlns:auto-ns2=”http://schemas.microsoft.com/win/2004/08/events” xmlns=”http://www.microsoft.com/Windows/Virtualization/Events“>
<VmName>W2K8_R2_Trial</VmName>
<VmId>CEF2E5E4-97A1-4393-9B5D-24805C81BE09</VmId>
</VmInitialize>
</UserData>
< /Event>

Solution:

Finally, I find out a hotfix which is related to this issue.

KB2517374: “You cannot start virtual machines on a computer that is running Windows Server 2008 R2 and on which a CPU is installed that supports the AVX feature”

http://support.microsoft.com/kb/2517374

After applying this Hotfix, I can start the Virtual Machine.

VN:F [1.9.18_1163]
Rating: 3.0/5 (2 votes cast)
VN:F [1.9.18_1163]
Rating: -1 (from 1 vote)
Total views: 22,650 views

, , , , ,

1 Comment

Microsoft Security Essentials (MS free antivirus software)

Just received e-letter from MS and it mentioned that MS has free AntiVirus software for Vista and Win7.

This software is called Microsoft Security Essentials.

I just installed. It looks good.

MS_Security_Essentials

MS_Security_Essentials2

Reference:

http://www.microsoft.com/security_essentials/

VN:F [1.9.18_1163]
Rating: 1.0/5 (1 vote cast)
VN:F [1.9.18_1163]
Rating: -1 (from 1 vote)
Total views: 17,566 views

, ,

1 Comment

Backup Personal Certificate Store

Platform: Windows XP

Personal Certificate Store is stored in user profile instead of registry.

Location:

%userprofile%\Application Data\Microsoft\SystemCertificates\My\Certificates

personal_cert

Reference:

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

VN:F [1.9.18_1163]
Rating: 2.8/5 (6 votes cast)
VN:F [1.9.18_1163]
Rating: -6 (from 6 votes)
Total views: 37,001 views

, ,

1 Comment

Certutil.exe – Check Personal Certificate Store

Certutil.exe can be found in Windows Server 2003 or Windows Server 2003 Administration Pack.

Following command and parameters can let you to query certificates stored in Personal Certificate Store.

That is very useful if you want to verify if user certificate deployed to user computer or not.

certutil -store -user My

certutil

Other Certificate Store reference information:

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

VN:F [1.9.18_1163]
Rating: 3.4/5 (14 votes cast)
VN:F [1.9.18_1163]
Rating: -6 (from 8 votes)
Total views: 94,220 views

, , ,

1 Comment

Reviews: Windows 7 – Virtual PC and WinXP Mode Comments

Just have time to re-install my Vista box to Windows 7.

My initial planning is using Windows 7 Virtual PC for my PoC Lab testing.

After I have installed Win7 and configured the Virtual PC. I found that it is only support Win32 Virtual Machine.

I am very disappeared to it.

And the so-called killer feature “WinXP Mode”. My comment is “that is a marketing word”.

It is a monster for pushing customer moving to Win7.

The cost is very high to maintain 2 OSs for every users.

Overall comments:
1. The interface of Virtual PC for Windows 7 is not good
2. It does not support 64bit platform OS.
3. Monster “WinXP mode” sound attractive. But actually, it is quite difficult to maintain it.

VN:F [1.9.18_1163]
Rating: 2.7/5 (13 votes cast)
VN:F [1.9.18_1163]
Rating: -5 (from 5 votes)
Total views: 9,779 views

, ,

2 Comments

Read text file for bulk folders creation

Text file name:

folders.txt : Content

folder_a
folder_b
folder_c

CreateFolders.bat

FOR /F "tokens=1 delims=" %%i IN (folders.txt) DO (

md %%1

)
pause

CreateFolders.bat will read file folders.txt and create folder_a,folder_b and folder_c for you.

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 2,363 views

,

No Comments

Deploy Trusted Root CA Certificate (command line)

In Windows XP, local computer certificates are stored in registry

HKLM\SOFTWARE\Microsoft\SystemCertificates\

Trusted Root CA certificates
HKLM\SOFTWARE\Microsoft\SystemCertificates\Root\

Intermediate CA certificates
HKLM\SOFTWARE\Microsoft\SystemCertificates\CA\

Before install trusted Root CA certificate

Root CA cert registry

Root CA cert registry

After install Root CA certificate, one more entry created (D0836D774C16xxxxxx..)

Root CA cert registry 02

Root CA cert registry 02

For the Root CA certificate deployment, you can export this registry and import this registry to target deployment machine by using the following command with local administrator right.

Command line deployment example:
regedit /s root_cert.reg

VN:F [1.9.18_1163]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 15,881 views

, ,

1 Comment

IE8 – Control Panel Lockdown

Some people is asking how to lock down IE8 Internet Option settings.

ie8-lockdown01

You can consider the following way to lock it down at computer level.

1. Open regedit.exe

2. Add the following registry key

\Internet Explorer\Control Panel

ie8-lockdown02

3. Add the following DWORD to lock down “Advanced” Tab and “Programs” Tab.
And set its value to “1″.

ie8-lockdown03

4. Close and re-open IE8 Internet Option.

ie8-lockdown04

Available Options
AdvancedTab = Advanced tab
ConnectionsTab = Connections tab
ContentTab = Content tab
GeneralTab = General tab
ProgramsTab = Programs tab
SecurityTab =  Security tab

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 24,492 views

, ,

2 Comments

Windows 2008: NewSID

Recently, I am preparing my Exchange 10 testing lab.

I tried to use NewSID.exe for prepare W2K8 OS SID.

Environment:
OS: W2K8
SP: Service Pack 1
Arch: x64

Screens

newsid-01

newsid-02

newsid-03
Enter Computer name if you want to rename it.

newsid-04

newsid-05

newsid-06

Completed

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 6,856 views

,

No Comments

Windows Server 2008 x64 installation Screens

It is a time for me to test Exchange 2010.

win2008-screen1

ScreenShot012

Following pdf contains some Windows Server 2008 x64 installation Screens for my E14 Beta testing.

Download PDF file:
Windows Server 2008 installation

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 2,605 views

No Comments

MS will not provide hardcopy certificate anymore

Today, I receied July 2009 MCP Flash. It has big news. MS will not provide hardcopy certificate by default. If you need hardcopy, please pay $$$.

In my career, I took a lot of MS exam and got a lot of MS certificates. If they need me to pay extra $$ for my certificate, I will consider to end my MS certificate plan.

If you are not agree to MS new certificate arrangement, please goto the following url to express your angry and complain.

http://borntolearn.mslearn.net/2009/06/going-green-mcp-digital-certificates-are-here/comment-page-6#comment-2565

I left my comment to this url too.

Actually, I paid a lot of effort to take different MS exam from NT4 to Windows 2008. If exam will not provide paper printout certificate any more, I consider to discontinue my MS cert path in coming future. And in my peer group, I am one of the driver to encourage my peers to take MS exam. In coming, I will discourage my peers to take MS exam and technology. I am strongly disappointed to this arrangement.

I would like to propose the following suggestion for MS if they are really consider to our voice.

1. establish a plan for existing holder to choose to maintain the existing plan. They can order paper certificate w/o paying extra shipping and handling charge

2. Discount the exam fee (Not a short period to CHEAT user), deduct whole shipping and handling fee.

3. Send me an official email and tell me that it is MS new arrangement.
And please note it in the email “if you don’t accept it please do not use MS product”.

I am vvvvvery angry w/ this new arrangement.

I just planned my OCS and W2K8 virtualization in coming months. I will cut it. And I won’t suggest OCS as Enterprise Voice and IM solution to my customer. I will not suggest Hyper-V as Virtualization platform.

I will not take Win7 exam for driving new Desktop deployment.

Angry Loyal MS user
Victor Tong
http://www.0101news.com/?page_id=165

VN:F [1.9.18_1163]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 12,008 views

, , ,

No Comments

How to check disk usage in Windows command prompt?

1. type “cmd” in run menu.

2. type “dir” in command prompt

dir_disk01

VN:F [1.9.18_1163]
Rating: 1.3/5 (7 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 15,531 views

No Comments

Windows 7 System Requirement

After reading Windows 7 System Requirement,I puzzle that why memory requirement for x86 and x64 is different.

Basically, my understanding is that x64 can locate more memory address space than x86 architecture.

I don’t know why memory requirement for x64 Windows 7 is higher than x86?? 1GB vs 2GB ?? 50% more ???

x64 needs more RAM???? I wonder if there is any MS product team guy can explain it more. It is interesting that why x64 needs more memory for running Windows 7.

win7_requirement

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 4,789 views

,

No Comments