Jan 30 2009 5:26AM GMT
Posted by: Michael Khanin
Booting from a .VHD,
Windows 7 Booting
If you want to boot from a Windows 7 (Windows Server 2008 R2) installed on a new .VHD do the following steps:
A.- Creating the .VHD file and Windows 7 installation on that .VHD file
- Boot the machine using the Windows 7 DVD
- Choose Windows Repair
- Start CMD
- Run Diskpart
- Type: Create vdisk file=c:\Windows7Build7000.vhd maximum=40000
- Type: select vdisk file=c:\Windows7Build7000.vhd
- Type: attach vdisk (in previous Betas, it was ’surface’ instead of ‘attach’)
- Type: ‘exit’ (you exit Windows Repair, but Do Not Reboot)
- Install Windows 7 to this attached .VHD (From Win7 installation, you now have to ’see’ another Hard Drive, you’ll need to create a partition & format it, first. You might get an error/warning saying that your computer hardware might not support this disk, just ignore it..).
- Reboot, and you ready to go!
Jan 29 2009 10:02PM GMT
Posted by: Michael Khanin
Find MAC Address,
getmac
GetMAC provides a quick method for obtaining the MAC (Ethernet) layer address. I’ve created a small script that rerurens a MAC address (Without delimeter). Here is a content of mac.bat:
@Echo off
SETLOCAL
SET MAC=
SET Media=Connected
FOR /F “Tokens=3 Delims= ” %%a in (’getmac^|find “Media”‘) do set Media=%%a
IF /I %Media% == disconnected (
FOR /F “Tokens=1-6 Delims=- ” %%a in (’getmac^|find “Media”‘) do set MAC=%%a%%b%%c%%d%%e%%f
)
IF NOT %Media% == disconnected (
FOR /F “Tokens=1-6 Delims=- ” %%a in (’getmac^|find “Device\Tcpip_”‘) do set MAC=%%a%%b%%c%%d%%e%%f
)
@echo %MAC%
ENDLOCAL
Jan 29 2009 9:53PM GMT
Posted by: Michael Khanin
Disable IPv6
Personally, i still prefer use IPv4. In Windows Vista and Windows 2008, IPv6 is enabled by default. I’ve created a small script to disable IPv6. Here is a content of my DisableIPv6.bat:
@Echo off
@ECHO Windows Registry Editor Version 5.00 > %TEMP%\DisableIPv6.reg
@ECHO [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters] >> %TEMP%\DisableIPv6.reg
@ECHO “DisabledComponents”=dword:000000ff >> %TEMP%\DisableIPv6.reg
REGEDIT /S %TEMP%\DisableIPv6.reg
Jan 28 2009 12:52AM GMT
Posted by: Michael Khanin
I did a very simple script, and I run it once when I apply a new sysprep image, that imports the date, when this particular image was applied to the specific computer. Sometimes this is very important. Here is a content of my script:
@Echo Off
REM **********************************************************************************************************
REM * This script checks a date Image was deployed and import this data into the Registry as Image-Date REM REM **********************************************************************************************************
For /f “Tokens=2 Delims= ” %%a in (’@DATE /t’) do set IMG-DATE=%%a
Echo Windows Registry Editor Version 5.00 > %TEMP%\IMG-DATE.reg
Echo [HKEY_LOCAL_MACHINE\SOFTWARE\WRHA] >> %TEMP%\IMG-DATE.reg
Echo “Image-Date”=”%IMG-DATE%” >> %TEMP%\IMG-DATE.reg
Reg.exe import %TEMP%\IMG-DATE.reg
Del %TEMP%\IMG-DATE.reg /Q
Jan 28 2009 12:43AM GMT
Posted by: Michael Khanin
How To Disable the Phishing Filter in Internet Explorer,
Disable Phishing Filter
Sometimes , the Phishing Filter can cause problems so disabling the feature can be a valuable troubleshooting step. I do this by changing the registry. Here is a content of my DisablePhishingFilter.reg file:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PhishingFilter]
“ShownVerifyBalloon”=dword:00000003
“Enabled”=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\PhishingFilter]
“ShownVerifyBalloon”=dword:00000003
“Enabled”=dword:00000000
Jan 28 2009 12:35AM GMT
Posted by: Michael Khanin
Disable Java Updates
If for whatever reasons you need to disable updates for Sun Java, do set the EnableJavaUpdate settings to 0. You can create a file, let say DisableJavaUpdates.reg, with following content:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
“EnableJavaUpdate”=dword:00000000
Jan 28 2009 12:30AM GMT
Posted by: Michael Khanin
To totally disable Firewall in Vista, execute the following command from command line:
netsh firewall set opmode mode=DISABLE
netsh firewall set opmode mode=DISABLE profile=ALL
Jan 8 2009 4:33PM GMT
Posted by: Michael Khanin
KB961367,
Windows 7 and MP3
Here’s the warning by Microsoft for those who intends to download and install Windows 7 beta:
To protect your MP3 files:
- Before you install this Beta release, back up all MP3 files that might be accessed by the computer, including those on removable media or network shares.
- Install the Beta release of Windows 7; download and install the Update to Windows 7 Beta (KB961367) located on this page.
Microsoft releases Update for Windows 7 Beta (KB961367) in MSDN and TechNet Subscriber Downloads page to fix the bug and protect the MP3 files for users who use the Windows 7 beta build 7000. The KB961367 is not be published on Microsoft Download Center yet.