Friday, May 30, 2014

CLR error:80004005



Tried to install SCCM admin console on a Windows 7 which has installed with .net framework 4. But, i got a prompt meesage as below:

Microsoft.ConfigurationManagement.exe - Fatal error.
CLR error: 80004005
The program will now terminate.

Google it, the error code is required a higher version of .net framework on the machine. So, i installed Microsoft .NET Framework 4.5.2 on the client machine. Restart the client machine and try to install SCCM admin console. The SCCM admin console is working perfectly now.

Have a nice day.

Tuesday, May 20, 2014

SCCM Windows Update - Error = 0x8024401f.

I have completed all the pre-req for Windows Update and I was expected SCCM console telling me how many Patches are required/installed, percent compliant and etc. However, I noticed SCCM agent still failed to reflect windows updates information in SCCM console.

When i check from %windir%\ccm\logs\WUAHandler.log, I saw the following error message:

"OnSearchComplete - Failed to end search job. Error = 0x8024401f."
"Scan failed with error = 0x8024401f."



After trouble a while and google, it suggest to enable Directory Browsing from IIS. So, I launch IIS manager and enable "Directory Browsing".



WUAHandler log does not has any error message after run the "Software Update Scan Cycle" from SCCM agent. 


I ran "Software Update Scan Cycle" action for 2 computers, therefore, I can see the status for the 2 computer as below:

Good luck. :)

Thursday, December 12, 2013

Migrate Shortcuts to Files on Network Drive

I have struggled to figure out how to use USMT 4.0 and SCCM 2012 SP1 to migrate user desktop's shortcuts which point to network drive during Win7 migration. Shortcuts are not migrate from XP to Win7 :(

The best result I can had was backup and restore the shortcut which pointed to the network drive but not the shortcuts which point to a file in network drive.

And I read below:
http://blogs.technet.com/b/mniehaus/archive/2011/08/24/troubleshooting-the-user-state-migration-tool-4-0.aspx


  • Shortcuts to files on network drives don’t migrate

    • Known issue, you can modify MigUser.xml to remove section with IgnoreIrrelevantLinks (but then all links are retained, even invalid ones).
    I have decided to script it and work together with SCCM Task Sequence in order to migrate all the users' desktop shortcuts.

    To backup shortcut:
    Put below script before USMT step which able to backup all users' desktop shortcut files:

    cd /d %windir%/../Users
    for /f "delims=*" %%i in ('dir/b') DO xcopy %%i\Desktop\"*.lnk" D:\shortcuts\%%i\ /Y /B /Z /G

    To restore shortcut:
    Put below script at any steps after USMT which able to restore all the user's shortcut files:

    cd /d %windir%/../Users
    for /f "delims=*" %%i in ('dir/b') DO xcopy D:\shortcuts\%%i\*.* %%i\Desktop\ /Y /B /Z /G

    Then, remember to delete the D:\shortcuts folder after the shortcut restoration step.

    The scripts worked perfectly in my Win 7 migration. I am able to migrate all the shortcuts to files on network drive (NOTE: limit to User's desktop only).

    Tuesday, December 3, 2013

    How to Delete File(s) with Similar Name from Different Users' Desktop?

    If you want to manage file/shortcut on all the Win 7 Users' Desktops, you can always navigate to C:\Users\Public\Desktop or %AllUsersProfile% to delete or add the file/shortcut.

    I want to use SCCM Task Sequence to delete some shortcuts with similar file name under different users' desktop today. I tried to Google around but most of the blog lead me to %userprofile% which delete the file/shortcut on the current logon user's desktop only

    After google around, check with my script mater (Mr Brian Rayel) and testing, finally we able to delete files with similar names under different user desktops.

    Option 1:
    @echo off
    cd C:\Users
    for /d %%i in (*.*) do del %%i\Desktop\"Sample Of Shortcut*.lnk"

    Option 2 (credit to my colleague, Master Brian Rayel):
    @echo off
    cd /d %windir%/../Users
    for /f "delims=*" %%i in ('dir/b') DO del %%i\Desktop\"Sample Of Shortcut*.lnk" /q

    It will remove all the shortcut start with Sample Of Shortcut*.lnk. For example, Sample Of Shortcut1.lnk, Sample Of Shortcut2.lnk and etc under different user's Desktop.

    Happy trying. :)

    Tuesday, June 26, 2012

    SCCM Admin Console -

    If you have checked all the possible SCCM console issues from http://technet.microsoft.com/en-us/library/bb932213.aspx, but SCCM admin console still cannot launch and you got the following error message at SmsAdminUI.log:



    [3][6/26/2012 3:08:35 PM] :Error returned from WMI Query Engine\r\nMicrosoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryException\r\nYou do not have security rights to perform this operation.\r\n   at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryResultsObject.<GetEnumerator>d__0.MoveNext()
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryProcessor.ProcessQueryWorker(AsyncOperationDatabase asyncData)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)\r\nConfigMgr Error Object:
    instance of SMS_ExtendedStatus
    {
    Description = "User \"OCBCATMDEV\\peichen\" does not have permission to read the objects.";
    ErrorCode = 1112017920;
    File = "c:\\qfe\\nts_sms_fre\\sms\\siteserver\\sdk_provider\\smsprov\\sspobjectquery.cpp";
    Line = 1849;
    Operation = "ExecQuery";
    ParameterInfo = "SELECT r.*, s.NetbiosName, s.ClientVersion, s.SMSInstalledSites FROM SMS_PendingRegistrationRecord r left JOIN SMS_R_System s ON r.ConflictSMSID=s.SMSUniqueIdentifier";
    ProviderName = "WinMgmt";
    StatusCode = 2147749889;
    };

    Solution

    Please make sure sccm admin user name is added correctly inside SCCM console.  I found out my SCCM admin console was corrupted which causing me can not add user correctly. For example, I added domain\user at the SCCM console, but, it changed to localhost\user.
    What I did was, i removed the SCCM admin console from MMC at following path:
    ะก:\Users\<[USER]>\AppData\Roaming\Microsoft\MMC\ for Windows Vista, 7, 2008.
    C:\Documents and Settings\<[USER]>\Application Data\Microsoft\MMC\ for Windows XP, 2003.

    Then, add the user into SCCM console again.

    Da lang..... My SCCM admin console can run remotely :)

    Good luck to you.


    Tuesday, June 19, 2012

    Failed to send HTTP request. (Error at WinHttpSendRequest: 12030)

    Scenario:
    I got error messages in my ccmsetup.log for my SCCM Native Mode agent installation via command prompt:

    Failed to send HTTP request. (Error at WinHttpSendRequest:12030)
    DownloadFileByWinHTTP encountered an unrecoverable error


    To solve this issue:
    I was able to proceed my client installation by:

    1. Go to Site Database > Site Management > SCCM Site > Site Settings > Site Systems > 
    2. Click at the \\Server
    3. Select the ConfigMgr management point
    4. Check the "Allow devices to use this management point"



    Then, I rerun my client installation command as "ccmsetup.exe /native:FALLBACK /mp:sccm.poc.com smssitecode=ICG ccmfirstcert=1"

    My agent is appearing in my SCCM console now. :)

    Wednesday, May 16, 2012

    Task Sequence: Image Capture Wizard has failed with the error code

    Scenario:

    I got Task Sequence Error when I try to capture image for my Windows 7.

    The error message is as below:

    Task Sequence Error:
    Running: Image Capture Wizard
    Description:  Task Sequence: Image Capture Wizard has failed with the error code (oxoooo4005).



    After some research, I found out there is a maximum 3 time limit to capture image from same computer.

    http://technet.microsoft.com/en-us/library/cc766514(v=ws.10).aspx
    " Each OS capture will run sysprep command which will reset windows product activation. However, there is a max 3 times per computer limit for the sysprep command. After the 3 time, the clock to reset Windows Product Activation can no longer be reset."

    Solution: 

    To overcome this 3 Sysprep time limitaiton, following are the walkaround:

    1. Open regedit and look for:

    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState\

    Set to value: 2

    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\

    Set to value: 7

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm

    Set to value:

    Then, run the command:
    msdtc -uninstall (wait a few seconds)
    msdtc -install (wait a few seconds)

    Then, reboot the system and try to run sysprep again.

    It is working to me. Good luck to you. :)

    Wednesday, April 11, 2012

    OSD: Boot from USB

    I wanted to boot the OS from offline media (USB) for a HP laptop. I have changed the BIOS setting which enable boot from USB.

    However, the laptop dint boot from the USB drive after I restart the HP laptop.... >.<
    After few attempts, I pressed F9, it prompted me the "Boot sequence". I choose USB as my 1st option and then restart again.

    Finally, my OSD boot from USB!

    Happy trying!

    Tips for Boot sequence setting:
    IBM - F2/F1
    HP - F9
    Dell - F12

    Saturday, March 3, 2012

    SCCM Blank Report

    My SCCM 2007 R3 is up and running. However, I got blank page when I try to view some SCCM reports.

    Scenario:
    I tried to view SCCM reports from the SCCM console. I found out report which does not required my input (with "Values.." button) is working fine, such as "Computers in a specific site", "Client Assignment Detailed Status Reports".

    When I want to view those reports required my input(report name: Computers discovered by a specific site), then, i got black page as below:


    You have to add the SCCM reporting URL into the Web Browser Trusted Sites. Steps as below:


    1. Open IE, Select Tool (Alt+X) > Internet Option > Security Tab. Select Trusted sites icon and client the Sites button.

    2. Click the Add button to add the reporting URL into the trusted sites.


    3. Now, my report is working fine. 

    I hope this post is going to help you. :)

    Saturday, January 14, 2012

    SCCM Tools

    Share this website with you all:

    http://www.myitforum.com/myitwiki/SCCMTools.ashx

    Let's try the tools to play magic together with SCCM. You will find SCCM is amazing! :)

    Friday, December 9, 2011

    SCCM Agent Push Installation - Cannot get the right machine to install SCCM agent

    You have a checklist and followed exactly all the steps to install and configure SCCM server. However, you might still face problem when you doing client push installation from the SCCM console.

    Scenario:
    You select a set of collection and right click and select Install Client. You will assume the client push installation success rate is higher because all the machines are connecting to the network. After a while, you notice some of your computer can get the SCCM agent installed but alot more still not. You try many times, but the SCCM agent still cannot push to the targeted machines.

    Nothing goes wrong in SCCM server. In this case, you might have to check the DNS server. Probably you might notice a hostname is holding multiple IP records or vice versa. Therefore, DNS server can't resolve the name and caused SCCM server cannot contact the targeted computer and push the SCCM agent to the targeted computer.

    To solve this issue:
    1. Open DNS
    2. In the console tree, right click the DNS server, then click Properties.
    3. Click the Advanced tab.
    4. Check the "Enable automatic scavenging of stale records". As below:


    Try to check your DNS records again and make sure the DNS can resolve the hostname. Then, try to push the SCCM client installation. I am sure you will like me because the success rate of the SCCM client push installation has been increased significantly. :)

    Friday, December 2, 2011

    Missing Required Software at Self Service Portal

    Encountered a problem while setting up a demo set for software distribution in SCCM 2012. My Windows 7 cannot download software from the Software Catalog.

    Scenario:
    I have Windows XP and Windows 7 machines in my test environment. Distributed the software and both Win XP and Win 7, both users can see the list of software in their self service portal.

    I can install software via self service portal in my Windows XP. However, when comes to Windows 7, I got the following error message after i clicked "install" or "request" button at software catalog page:


    Error Message:
    Missing require software.

    The software that is required for this installation is unavailable. Either the required software is not installed on your computer, or it cannot be found on your network. You can continue to browse the Software Catalog or to manage your software requests, but software cannot be installed until the required software is available.

    After some research, found out this issue was caused by the Protected Mode at Internet Explorer 7 in Windows Vista and later.

    To solve this issue:

    1) Open the IE. Select Tool (Alt + x) > Internet Option > Security tab. Select Trusted sites and click the Sites button:

    2) Add the URL of the SCCM 2012 Application Catalog Web Site Point.

    Gentle reminder: Remember to uncheck "Require server verification (https) for all sites in this zine" to avoid getting the error message "Sites added to this zone must use the https:// prefix. This prefix assures a secure connection".



    3)Then, click the Add button and the URL will appear in the Websites list as below:

    4) Da~lang~~~ It works for me!!!


    I can request or download software from my self service portal.


    Enjoy SCCM 2012. :)




    Saturday, November 12, 2011

    System Center 2012 Configuration Manager RC is Available

    SCCM RC is available now!

    The released date is 26th Oct 2011.

    You can download the installer from here.

    Read the Configuration Manager (Prerelease) from Technet Library.

    Let's enjoy and install SCCM RC version together. :)

    Friday, October 28, 2011

    Failed to install SCCM client by Right Click Tool - 0x80040281

    I got this error message after I tried to use Right Click Tool (version: 0424ConfigMgrTools) to install SCCM client:

    Error Message:
    Failed in GetCertificate0x(...) 0x80040281
    File 'C:\WINDOWS\system32\ccmsetup\{4CD82FBB-0AFC-4864-A089-15364DF5F14B}\client.msi' doesn't have a valid digital signature.

    This scenario happened when the Right Click Tool is using an older version of ccmsetup.exe to install the SCCM client on the workstation.

    To solve this issue:
    1. At your SCCM server, copy newer version of ccmsetup.exe from DriveLetter:\Program Files\Microsoft Configuration Manager\Client\
    2. Paste the newer version of ccmsetup.exe to DriveLetter:\Windows\SCCMTools

    I dint get same error message after replaced the ccmsetup.exe. Good luck to you. :)

    Friday, October 14, 2011

    Error - Configuration Manager Product Updater

    Yesterday went for a fruitful microsoft event - TechDays Singapore 2011. Today, I joined as a student helper and as well as a student in weiking SCCM 2012 master class at Tiong Bahru.

    One of the students got this error message when he was trying to install SCCM 2012:

    Error message: An error has occurred while attempting to download or verify required prerequisite components and Setup cannot continue. Review the configmgrsetup.log file for further details.

    And we found out "ConfigMgr.Manifest" is missing from the pre-download prerequisite updates folder:

    This file missing scenario happened when user select the "Download and use the latest updates. Updates will be saved to the following location"

    To solve this issue:
    1) Copy the missing file back to the pre-download prerequisite updates folder. Make sure the prerequisite update folder has 14 items in total:

    2) At the updated Prerequisite Components page, select " Use previously downloaded updates from the following location".

    Hope this helps. :)

    Wednesday, October 12, 2011

    Microsoft tech.days in Sg (13-14 Oct 2011)

    One of the important events for Microsoft - TechDays Singapore 2011. It provides IT Professionals and Developers with comprehensive insights on Microsoft cloud technology and learning opportunities to manage cloud infrastructure, integrate with cloud platforms and develop modern applications.

    I am personally looking forwards to the Techdays in Suntec tomorrow. Have a look at the tech.days' schedule. Definitely, I will not miss the session for Configuration Manager 2012 Technical Overview, from 1.30pm-1.30pm by my colleague Teh Wei King.

    Location for the Sg tech.days:

    Suntec Singapore International Convention and Exhibition Centre
    1 Raffles Boulevard,
    Suntec City
    Singapore 039593
    www.suntecsingapore.com

    see ya in the Suntec tomottow :)

    Tuesday, October 11, 2011

    Configuration Manager

    System Center Configuration Manager (SCCM 2007 or ConfigMgr or Configuration), formerly known as Systems Management Server (SMS 2003), is a member of the Microsoft System Center suite of management products.

    Configuration Manager provides patch management, software distribution, operating system deployment, network access protection, and hardware and software inventory.

    Latest version of configuration manager - SCCM 2012, increases IT productivity and efficiency by reducing manual tasks and enabling you to focus on high-value projects, maximize hardware and software investments, and empower end-user productivity by providing the right software at the right time. System Center 2012 Configuration Manager helps you to provide more effective IT services by enabling secure and scalable software deployment, compliance settings management and comprehensive asset management of servers, desktops, laptops, and mobile devices. (Source: MS TechNet).

    Following is the version history of Configuration Manager: