Thursday, April 18, 2013

How to start the webpage when user logon by logon script (Handle both 32bits and 64bits Windows machine)

If Exist "C:\Program Files (x86)\" goto X64

start /MAX C:\PROGRA~1\INTERN~1\IEXPLORE.EXE http://intranet.abc.com

:X64

If NOT EXIST "C:\Program Files (x86)\" goto END

start /MAX "C:\PROGRA~1 (x86)\INTERN~1\IEXPLORE.EXE" http://intranet.abc.com

:END

Print Friendly and PDF
Share/Bookmark

Netlogon variable file path

If there are folder call “ABC” under Netlogon, the file path can be using the following format":

"%0\..\ABC\IT Support.url"

Example a file call “IT Support.url” under “\\xzy.com\netlogon\ABC” to "C:\Documents and Settings\All Users\Desktop\"

Copy /y "%0\..\ABC\IT Support.url" "C:\Documents and Settings\All Users\Desktop\"

Print Friendly and PDF
Share/Bookmark

Delete file last modified day over 30 days by PowerShell

$TargetFolder = "X:\30days"
$Childitems = Get-Childitem $TargetFolder -recurse |where {$_.attributes -ne "Directory"}
$mdate = Get-Date -format yyyyMMdd
foreach ($i in $Childitems)
{
    if ($i.CreationTime -lt ($(Get-Date).AddDays(-30)))
    {
Write-host $i.fullname -- $mdate
        Remove-Item $i.FullName -force -recurse

    }
}

Print Friendly and PDF
Share/Bookmark

Wednesday, April 17, 2013

Lync 2010 client (Lync online/Office 365) deployment by batch file

If Exist %systemroot%\share\%computername%.txt goto END
If Exist "C:\Program Files (x86)\" goto X64

Set ARCHITECTURE=x86

REM Install Microsoft Online Services Sign-in Assistant
if exist "C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services\MSOIDSVC.EXE" goto lync32
\\server_IP\Lync_Software\x86\msoidcli_32bit.msi /quiet

:lync32
REM Creating Lync and office suite Client folder on %systemroot%\share\
IF NOT EXIST "C:\Program Files\Microsoft Lync\communicator.exe" Copying Lync software to Lync Software folder on %systemroot%\share\
pushd "\\server_IP\Lync_Software\x86\"
XCOPY "*.*" "%systemroot%\share\Lync_Client\X86" /I /Y /Qlient\X86" MKDIR "%systemroot%\share\Lync_Client\X86"
"%systemroot%\share\Lync_Client\%ARCHITECTURE%\LyncSetup.exe" /install /silent
"%systemroot%\share\Lync_Client\%ARCHITECTURE%\Lync.msp" /quiet /norestart
Echo "Lync and Office clients Successfully installed" on %COMPUTERNAME% > %systemroot%\share\%Computername%.txt

:X64

If NOT EXIST "C:\Program Files (x86)\" goto END

Set ARCHITECTURE=x64

REM Install Microsoft Online Services Sign-in Assistant
if exist "C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services\MSOIDSVC.EXE" goto lync64
\\server_IP\Lync_Software\x64\msoidcli_64bit.msi /quiet

:lync64
REM Creating Lync Client folder on %systemroot%\share\
IF NOT EXIST "%systemroot%\share\Lync_Client\X64" MKDIR "%systemroot%\share\Lync_Client\X64"
REM Copying Lync software to Lync Software folder on %systemroot%\share\
pushd "\\server_IP\Lync_Software\x64\"
XCOPY "*.*" "%systemroot%\share\Lync_Client\X64" /I /Y /Q
"%systemroot%\share\Lync_Client\%ARCHITECTURE%\LyncSetup.exe" /install /silent
"%systemroot%\share\Lync_Client\%ARCHITECTURE%\Lync.msp" /quiet /norestart
Echo "Lync and Office clients Successfully installed" on %COMPUTERNAME% > %systemroot%\share\%Computername%.txt

:END


EXIT

Print Friendly and PDF
Share/Bookmark

Using PowerShell to enable or disable backup mode on EV 10.1

Enable backup mode

c:\windows\syswow64\windowspowershell\v1.0\powershell -psconsolefile "C:\Program Files (x86)\Enterprise Vault\evshell.psc1" -command "set-vaultstorebackupmode EVSITE sitename site"

* When the file level backup have been running on EV server (EV data folder: "Enterprise Vault Stores", "EV_CACHE", "EV_INDEX"), you will need to enable the backup mode before running the backup.

Disable backup mode

c:\windows\syswow64\windowspowershell\v1.0\powershell -psconsolefile "C:\Program Files (x86)\Enterprise Vault\evshell.psc1" -command "clear-vaultstorebackupmode EVSITE sitename site"

# When the file level backup have been complete on EV server, you will need to disable backup mode, otherwise the EV open datastore will become readonly.

Print Friendly and PDF
Share/Bookmark

Microsoft Windows Server on HP ProLiant servers and HP ProLiant server blades

As you may know that the HP Service Pack for ProLiant (SPP) replaces the Smart Update Firmware DVD and the ProLiant Support Packs (PSPs).

Before you install the Windows Server 2008 / 2012 to a HP 300 series or above server, you better check the following document to check the BIOS and firmware compatiblilty and also any recommendation from HP.

Implementing Microsoft® Windows Server® 2008 R2 Service Pack 1 on HP ProLiant and Integrity servers

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02778975/c02778975.pdf

Implementing Microsoft Windows Server 2012 on HP ProLiant servers and HP ProLiant server blades, 3rd edition

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c03305495/c03305495.pdf

HP Service Pack for ProLiant Documentation

http://h18004.www1.hp.com/products/servers/service_packs/documentation/index.html

Remark: ProLiant 100 series foundation products are treated differently and are not part of Insight Foundation Suite for ProLiant. Below are the links for the foundation products specific to ProLiant 100 series servers:

  • HP ProLiant Easy Set-up CDs
  • HP LO100i
  • Easy Set-up CDs are provided for all ProLiant 100 series G6 servers and most 100 series G7 servers, with some exceptions (DL165 G6, ML110 G7 and DL120 G7).  Initial drivers for these servers are included on the Easy Set-up CD that ship with these servers and are also found on HP SC (HP Support Center) as the Easy Set-up CD ISO.

    Print Friendly and PDF
    Share/Bookmark

    HP and VMware firmware and driver support matrix

    Before install/upgrade VMware ESX/ESXi to a HP Server, you better to check the compatiblity between HP server firmware, BIOS, driver and the HP customerized VMware ESX/ESXi or VMware patch/hotfix.

    The following document will be helpful for reference:

    HP February 2013 VMware FW and Software Recipe

    http://vibsdepot.hp.com/hpq/recipes/February2013VMwareRecipe5.0.pdf

    Print Friendly and PDF
    Share/Bookmark

    Tuesday, April 2, 2013

    Acer v5-571g Atheros wifi driver bugs on Windows 8

    The Atheros wifi driver version 10.0.0.218 which is come from “Acer live update” for Windows 8 Pro (x64) seems to be got some bug when running in a hidden SSID and 5GHz environment. It cannot reconnect after the computer resume from sleep.

    The workaround solution is download the “10.0.0.217.v3” from http://www.acer.co.uk/ac/en/GB/content/drivers

    image

    Reference: The laptop have been already update to the BIOS 1.20

    Print Friendly and PDF
    Share/Bookmark

    Monday, April 1, 2013

    Workaround for push mail (EAS) did not respond (Exchange Server 2003)

    1) Get into Server and start up IIS manager
    2) Right click on Application Pools and create a new pool for ActiveSync (ie. ExchangeActiveSyncPool)
    3) Right click on the new Application Pool and Properties and set the Recycle worker processes at 1740
    4) Set Maximum Virtual memory to 500
    5) Set Maximum Memory used to 192
    6) Click on Identity tab and Select Local System for the App pool identity
    7) Down under Default Web Site right click on the Microsoft-Server-ActiveSync
    8) In Application Pool select the new pool created in step 2

    This will split out the Active sync app and won’t take down all services if there is a resource issue such a memory.

    Source:

    Remark: Do not change the “Maximum number of worker processes” of the “ExchangeApplicationPool” (Default application pool of exchange front end), it will affect webmail (OWA)

    Print Friendly and PDF
    Share/Bookmark

    AMD SB850/SB950 bug - performance issue

    If you are using AMD SB850/SB950, and also you find your hard disk running very slow. (A new purchase machine and also clean install Windows) For example, when you click a software to run, the whole windows is freezing (cannot open the other software and even the task manager, the performance and reliability monitor about the harddisk is empty (No information is show up).

    It maybe you hit the bug of the SATA IDE combined mode.

    Solution:

    Go to BIOS and disable the “SATA IDE Combined Mode”

    IMG_20130325_010458 (Large)

    If you cannot find this option, please make sure all the SATA connection are using RAID/AHCI. (No “IDE” option have been set for SATA device)

     

    After you make the above change, you should see the IDE ATA/ATAPI Controller – show “AMD SATA Controller” only, no other IDE device/controller.

    AHCI_Win7

    Print Friendly and PDF
    Share/Bookmark