Find MAC Address (GetMac)
Posted Thursday, 29 January 2009 by Misha Hanin

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

 

Disable IPv6 over all interfaces and prefer IPv4 to IPv6
Posted Thursday, 29 January 2009 by Misha Hanin

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

 
How to know when the sysprep image applied to computer?
Posted Tuesday, 27 January 2009 by Misha Hanin

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 **********************************************************************************************************

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


 
How To Disable the Phishing Filter in Internet Explorer
Posted Tuesday, 27 January 2009 by Misha Hanin

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

 
Disable Java Updates
Posted Tuesday, 27 January 2009 by Misha Hanin

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


 
Happy New Year
Posted Wednesday, 31 December 2008 by Misha Hanin
 
Resetting the Background Colors on Clients Computers by Using GPO
Posted Tuesday, 30 December 2008 by Misha Hanin

To control background colour on the client’s computer (XP) the custom ADM file (BGColor.adm) could be created. The BGColor.adm should be manually added to the network environment before start using it. Here is a content of BGColor.adm:

CLASS USER
CATEGORY !!category
 CATEGORY !!categoryname
   POLICY !!policyname
   KEYNAME "Control Panel\Colors"
   EXPLAIN !!explaintext
   PART !!labeltext DROPDOWNLIST REQUIRED
   VALUENAME "Background"
   ITEMLIST
    NAME "Normal" VALUE "0 128 128"
    NAME "Black" VALUE "0 0 0"
    NAME "White" VALUE "255 255 255"
    NAME "Red" VALUE "255 0 0"
    NAME "Brown" VALUE "128 0 0"
    NAME "Yellow" VALUE "255 255 0"
    NAME "Green" VALUE "0 128 0"
    NAME "Sky" VALUE "0 255 255"
    NAME "Brown" VALUE "0 0 255"
    NAME "Blue" VALUE "0 0 255"
    NAME "Dark Blue" VALUE "0 0 128"
    NAME "Pink" VALUE "255 0 255"
    NAME "Grey" VALUE "160 160 164"
   END ITEMLIST
   END PART
   END POLICY
 END CATEGORY
END CATEGORY

[strings]
category="Custom Policy Settings"
categoryname="Desktop BG Colour Changer"
policyname="Change the background color of the client computer via GPO"
explaintext="This policy sets the background color of the client computer"
labeltext="Select Colour" 

 
How to Enable (unblock) Windows Hot Keys (Windows Logo Key + M or Windows Logo Key + D)
Posted Tuesday, 30 December 2008 by Misha Hanin

To minimize all open windows Microsoft provides “Hot Keys”, like Windows Logo Key + M or Windows Logo Key + D.  All Hot Keys was disabled by old GPO. To allow using Windows Logo Keys the following steps should be enabled through GPO:

  1. Go to: Administrative Templates \ Windows Components \Windows Explorer
  2. Change “Turn off Windows+X hotkeys” settings to Disable

Note: Client’s computer should be restarted to start using Windows Logo Keys.

 
I'm MCITP: Enterprise Messaging Administrator :)
Posted Wednesday, 24 December 2008 by Misha Hanin

Yesterday I passed additional MS exam, PRO: Deploying Messaging Solutions with Microsoft Exchange Server 2007 (70-238), this is a last exam in serial MCITP: Enterprise Messaging Administrator.

This one was pretty similar to the previous, 70-237, but with a more details and tricks. It was a lot of questions about CCR, CSR, NLB and RAID’s. It was many question about “How to deal with multi sites organizations...” and questions like “What if..”. It was 50 questions in this exam.

The study resources I used to pass are:
Book "Microsoft Exchange Server 2007"
http://technet.microsoft.com
http://www.msexchange.org
http://msexchangeteam.com
http://exchangepedia.com
http://www.exchangeprovip.com
http://www.exchangeninjas.com
http://searchexchange.techtarget.com/generic/0,295582,sid43_gci1272907,00.html
http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/exchange-2007-message-queues.html
http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/understanding-back-pressure-feature-exchange-server-2007.html

 
PRO: Designing Messaging Solutions with Microsoft Exchange Server 2007 (70-237)
Posted Sunday, 14 December 2008 by Misha Hanin

I’ve just passed additional MS exam, PRO: Designing Messaging Solutions with Microsoft Exchange Server 2007 (70-237)!  Got 935 on it :) .

This one was easy that previous, 70-236. I’ve got a lot of questions about clustering, HA and multi-sites design. It was just 37 questions in this exam.

The study resources I used to pass are:

Book “Microsoft Exchange Server 2007″ http://www.amazon.com/Microsoft-Exchange-Server-2007-Unleashed/dp/0672329204/ref=pd_sim_b_1/191-1807479-9996238 (yes, this book again :) )

http://www.msexchange.org/
http://msexchangeteam.com/
http://technet.microsoft.com/
http://www.cbtnuggets.com/

 
TS: Configuring Exchange Server 2007 (70-236)
Posted Monday, 08 December 2008 by Misha Hanin

I’ve just passed my TS: Configuring Exchange Server 2007 (70-236)!  Got 100% on it.

For those of you intending to write this, even do not try to register for it if you do not have good understanding in PowerShell. I’ve got about 80% of questions about how to do things by using PowerShell. You have to answer a 53 questions in this exam and they give you 150 mins. to write the exam.

The study resources I used to pass are:

Book “Microsoft Exchange Server 2007″  http://www.amazon.com/Microsoft-Exchange-Server-2007-Unleashed/dp/0672329204/ref=pd_sim_b_1/191-1807479-9996238

http://www.trainsignal.com/Exchange-Server-2007-Training-P22.aspx

http://www.msexchange.org/articles_tutorials/exchange-server-2007/

http://msexchangeteam.com/

http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/exchange-2007-sp1-mailbox-management-part1.html

http://www.msexchange.org/tutorials/Managing-mailboxes-Exchange-Server-2007-Part1.html

http://technet.microsoft.com/en-us/library/aa998579.aspx

http://www.exchangeninjas.com/

http://www.exchangeinbox.com/article.aspx?i=83

http://technet.microsoft.com/en-us/library/bb124977.aspx

As I said, make sure you really have good understanding in PowerShell before you write the exam.
 
Deploying Cluster Continuous Replication (CCR) on Windows Server 2008 by Command-Line Only
Posted Saturday, 29 November 2008 by Misha Hanin

If you are lazy (I’m very lazy :) ) you probably will want to create a script to deploy Cluster Continuous Replication (CCR) on Windows Server 2008.
As a source for this scrip I really recommend to take a look on the following article: “Deploying CCR on Windows Server 2008 by Command-Line Only

 
Offline Virtual Machine Servicing Tool 2.0 Released
Posted Wednesday, 26 November 2008 by Misha Hanin
Microsoft announced the availability of the Offline Virtual Machine Servicing Tool 2.0. Offline Virtual Machine Servicing Tool 2.0, now with support for Hyper-V technology. Go here to get this new Solution Accelerator: http://technet.microsoft.com/en-us/library/cc501231.aspx

With the availability of Hyper-VT technology, Microsoft is boosting the adoption of virtualization by providing a very robust and fast virtualization platform managed by Microsoft® System Center Virtual Machine Manager 2008. However, the challenge of keeping the virtual machine client operating system up to date remains. Virtual machines that are left offline for extended periods of time do not automatically receive operating system, antivirus, or application updates that would keep them compliant with current IT policy.

The Offline Virtual Machine Servicing Tool 2.0 provides a way to automate the process of updating virtual machines running on virtual servers and Hyper-V with the latest operating system updates....

 
Canadians: Use Live Search, win a 2009 Mitsubishi Lancer SE
Posted Friday, 21 November 2008 by Misha Hanin

In addition to continuously updating Live Search and trying to get developers on board with new features, Microsoft is also promoting Live Search via various deals and giveaways. The latest is Big Ticket Search, and surprisingly it's only for Canadians. Every search on the site gives you a chance to win a prize (1,488 total prizes):

  • (2) 2009 Mitsubishi Lancer SE, value of $21,493
  • (1) $10,000 cash
  • (1) Two Raptors 09-10 Season Tickets, value of $8,000
  • (5) Entertainment Centre, value of $5,330
  • (1) Raptors VIP Package, value of $5,000
  • (15) HP Pavilion 15.4" Laptop, value of $800
  • (43) Xbox 360, value of $300
  • (43) 80GB Zune, value of $230
  • (400) Ticketmaster $100 Gift Card
  • (15) Raptors signed basketballs, value of $100
  • (15) Raptors signed jerseys, value of $100
  • (947) Ticketmaster $50 Gift Card
  •  
    Detect HALs under WinPE (Vista) by Running Batch Script
    Posted Tuesday, 28 October 2008 by Misha Hanin

    It’s a lot of posts that explained how to detect HAL. Almost all of those solutions done in VB script. As well I’ve seen a lot of post about “problems’ running VB script under WinPE. So, one day I tried to create a batch file, that allows to detect a HAL under WinPE. I did all my tests under VistaPE 12 (I’ve used the VistaPE v.12 RC1).

    Here is content of HAL_Detector.bat script:

    @echo off
    REM .
    REM . - Advanced Configuration and Power Interface (ACPI) PC:  ACPIPIC_UP
    REM . - ACPI Uniprocessor PC:                                                 ACPIAPIC_UP
    REM . - ACPI Multiprocessor PC:                                               ACPIAPIC_MP
    REM .
    REM . Advanced Configuration and Power Interface (ACPI) PC
    REM . - halacpi.dll (renamed to hal.dll)
    REM . - ntkrnlpa.exe
    REM . - ntoskrnl.exe
    REM .
    REM . ACPI Uniprocessor PC
    REM . - halaacpi.dll (renamed to hal.dll)
    REM . - ntkrnlpa.exe
    REM . - ntoskrnl.exe
    REM .
    REM . ACPI Multiprocessor PC
    REM . - halmacpi.dll (renamed to hal.dll)
    REM . - ntkrpamp.exe (renamed to ntkrnlpa.exe)
    REM . - ntkrnlmp.exe (renamed to ntoskrnl.exe)
    REM .
    REM ……………….. Explanation About Diferent HAL Versions ………………… ……..
    REM .

    SETLOCAL
    SET PC-HAL=
    SET NumberOfLogicalProcessors=
    SET New-HAL=

    For /F “Tokens=3 Delims= ” %%a in (’REG QUERY HKLM\SYSTEM\CurrentControlSet\Enum\Root\ACPI_HAL000 /v HardwareID’) DO Set PC-HAL=%%a

    IF %PC-HAL% == acpipic Set New-HAL=ACPI_Uniprocessor_PC
    IF %PC-HAL% == acpiapic (
    For /F %%a in (’@WMIC COMPUTERSYSTEM GET NumberOfLogicalProcessors /value^|find “NumberOfLogicalProcessors”‘) do Set %%a
    )

    IF %NumberOfLogicalProcessors% ==  Set New-HAL=HAL_NOT_DETECTED
    IF %NumberOfLogicalProcessors% == 1 Set New-HAL=ACPI_Uniprocessor_PC
    IF %NumberOfLogicalProcessors% == 2 Set New-HAL=ACPI_Multiprocessor_PC
    IF %NumberOfLogicalProcessors% == 4 Set New-HAL=ACPI_Multiprocessor_PC

    @echo Detected HAL: %New-HAL%
    @echo Number of Logical Processors: %NumberOfLogicalProcessors%

    endlocal

     
    << Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>