SCCM 2012 R2 - Updates not installing

Hi all,
I have a SCCM 2012 R2 setup at a customer which has problems with distributing updates to the Windows 7 computers in the environment. The update group (with updates that are 100% sure required) is deployed to some test computers but the updates don't get
installed. It is also configured to be able to install the updates without looking at any maintenance windows.  I see in the reporting that the updates are required, so in my opinion they should get installed.
I've checked the registry and the Windows Updates registry keys are pointing towards the right server (my SCCM primary site server). I've created a new software update group with fewer updates, same problem. 
What I find in the UpdatesDeployment.log on one of the test machines is rather strange:
Assignment {8209BD9C-A86C-460B-99B3-CD6364F8BD1B} has total CI = 2
UpdatesDeploymentAgent 29/09/2014 15:21:05
1244 (0x04DC)
Assignment ({8209BD9C-A86C-460B-99B3-CD6364F8BD1B}) reconnected to the existing job ({779CA9E2-ABB8-43E1-B8AE-F4A94BA8C761}) successfully.
UpdatesDeploymentAgent 29/09/2014 15:21:05
1244 (0x04DC)
Assignment {c076f100-c2f7-43f9-a3f9-51fd33872b94} has total CI = 216
UpdatesDeploymentAgent 29/09/2014 15:21:05
1244 (0x04DC)
Assignment ({c076f100-c2f7-43f9-a3f9-51fd33872b94}) reconnected to the existing job ({A9758363-1871-4BD9-86D9-1BE0D82531AE}) successfully.
UpdatesDeploymentAgent 29/09/2014 15:21:05
1244 (0x04DC)
OnPolicyModify for assignment ({8209BD9C-A86C-460B-99B3-CD6364F8BD1B})...
UpdatesDeploymentAgent 29/09/2014 15:23:18
2740 (0x0AB4)
Work in progress for assignment {8209BD9C-A86C-460B-99B3-CD6364F8BD1B}, forced trigger (TriggerEnforce) will be attempted when done
UpdatesDeploymentAgent 29/09/2014 15:23:18
2740 (0x0AB4)
EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0
UpdatesDeploymentAgent 29/09/2014 15:30:32
4532 (0x11B4)
EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0
UpdatesDeploymentAgent 29/09/2014 15:30:32
4000 (0x0FA0)
Message received: '<?xml version='1.0' ?><SoftwareUpdatesMessage MessageType='EvaluateAssignments'><UseCachedResults>False</UseCachedResults></SoftwareUpdatesMessage>'
UpdatesDeploymentAgent 29/09/2014 15:46:47
4836 (0x12E4)
Removing scan history to force non cached results
UpdatesDeploymentAgent 29/09/2014 15:46:47
4836 (0x12E4)
Assignment({8209BD9C-A86C-460B-99B3-CD6364F8BD1B}) already in progress state (AssignmentStateDetecting). No need to evaluate
UpdatesDeploymentAgent 29/09/2014 15:46:47
4836 (0x12E4)
Assignment({c076f100-c2f7-43f9-a3f9-51fd33872b94}) already in progress state (AssignmentStateDetecting). No need to evaluate
UpdatesDeploymentAgent 29/09/2014 15:46:47
4836 (0x12E4)
Evaluation initiated for (0) assignments. UpdatesDeploymentAgent
29/09/2014 15:46:47 4836 (0x12E4)
Message received: '<?xml version='1.0' ?><SoftwareUpdatesMessage MessageType='EvaluateAssignments'><UseCachedResults>True</UseCachedResults></SoftwareUpdatesMessage>'
UpdatesDeploymentAgent 29/09/2014 17:06:31
6032 (0x1790)
Assignment({8209BD9C-A86C-460B-99B3-CD6364F8BD1B}) already in progress state (AssignmentStateDetecting). No need to evaluate
UpdatesDeploymentAgent 29/09/2014 17:06:31
6032 (0x1790)
Assignment({c076f100-c2f7-43f9-a3f9-51fd33872b94}) already in progress state (AssignmentStateDetecting). No need to evaluate
UpdatesDeploymentAgent 29/09/2014 17:06:31
6032 (0x1790)
Evaluation initiated for (0) assignments. UpdatesDeploymentAgent
29/09/2014 17:06:31 6032 (0x1790)
CUpdateAssignmentsManager received a SERVICEWINDOWEVENT START Event
UpdatesDeploymentAgent 29/09/2014 22:00:00
3240 (0x0CA8)
Suspend activity in presentation mode is selected
UpdatesDeploymentAgent 29/09/2014 22:00:00
3240 (0x0CA8)
At least one user has elected to suspend non-business hours activity when in presentation mode. Checking for presentation mode.
UpdatesDeploymentAgent 29/09/2014 22:00:00
3240 (0x0CA8)
Proceeding to non-business hours activites as presentation mode is off.
UpdatesDeploymentAgent 29/09/2014 22:00:00
3240 (0x0CA8)
Auto install during non-business hours is disabled or never set, selecting only scheduled updates.
UpdatesDeploymentAgent 29/09/2014 22:00:00
3240 (0x0CA8)
A user-defined service window(non-business hours) is available. We will attempt to install any scheduled updates.
UpdatesDeploymentAgent 29/09/2014 22:00:00
3240 (0x0CA8)
Attempting to install 0 updates UpdatesDeploymentAgent
29/09/2014 22:00:00 3240 (0x0CA8)
No actionable updates for install task. No attempt required.
UpdatesDeploymentAgent 29/09/2014 22:00:00
3240 (0x0CA8)
Updates could not be installed at this time. Waiting for the next maintenance window.
UpdatesDeploymentAgent 29/09/2014 22:00:00
3240 (0x0CA8)
CUpdateAssignmentsManager received a SERVICEWINDOWEVENT END Event
UpdatesDeploymentAgent 30/09/2014 5:00:00
3132 (0x0C3C)
No current service window available to run updates assignment with time required = 1
UpdatesDeploymentAgent 30/09/2014 5:00:00
3132 (0x0C3C)
Attempting to cancel any job started at non-business hours.
UpdatesDeploymentAgent 30/09/2014 5:00:00
3132 (0x0C3C)
There are several updates found in the assignment (2 in the first, 216 in the second). Some of them are required but still the log says: No actionable updates. 
The SERVICEWINDOWEVENT events originate from the business hours set in the client settings I suppose?
But I don't get why the log sais "No current service window available to run updates assignment with time required = 1"
Any advice?
Kind regards,
Bert

Hi,
What's the status in Software Center on clients?
Please check ScanAgent.log, WUAHandler.log, UpdatesHandler.log and Windowsupdate.log on the client to see if there is any helpful information.
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • SCCM 2012 Software Updates not installing (bothh Windows patches & 3rd party updates)

    Using SCCM 2012 R2, I am having a problem getting Windows updates to install.  Applications published to people work, and basic software installations published to machines for a straight install work.  However, both Windows patches and Adobe patches
    fail to install on clients. I have imported the Adobe catalog into SCUP, and publish through WSUS. I can see the Adobe patches and Windows patches in SCCM, and can publish them. However, in deployment status out of 4 machines in my test group the Windows patches
    installed on 1 and the other 3 are still in Unknown status with category of "Client check passed/Active". However, none of them are installing the patch - they don't even seem to try.  All of those are Windows 7 PCs, incidentally. On Adobe patches,
    one PC fails and the other 3 machines still sit in Unknown status.  Certificates are distributed,
    Any ideas what might cause the deployment to not push some targets, even when it's past the deadline?
    Thanks,
    Andy Maslin

    An unknown status means that the clients are not reporting back to ConfigMgr correctly. This is often due to the WUA not pointing at the correct WSUS instance. You can verify this by examining the WUAHandler.log on one of those clients and it will clearly
    indicate an issue with this which in turn is often due to a group policy overriding the ConfigMgr behavior.
    Jason | http://blog.configmgrftw.com

  • SCCM 2012 R2 MP not installing

    Hope someone can assist me. I have a SCCM 2012 R2 Primary server on Windows 2012 and installed some site Servers with DP's and MP's installed on Windows 2008.
    2 of the MP's have failed. I have tried to reinstall but can not.
    Checking the mpmsi.log I get the following error.
    [14:54:05] Successfully created virtual directory application
    [14:54:05] Enabling BITS
    [14:54:06] @@ERR:25006
    MSI (s) (90!EC) [14:54:06:876]: Product: ConfigMgr Management Point -- Error 25006. Setup was unable to create the Internet virtual directory CCM_Incoming
    The error code is 80090016
    Error 25006. Setup was unable to create the Internet virtual directory CCM_Incoming
    The error code is 80090016
    CustomAction CcmCreateIISVirtualDirectories returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
    MSI (s) (90:64) [14:54:06:909]: User policy value 'DisableRollback' is 0
    MSI (s) (90:64) [14:54:06:909]: Machine policy value 'DisableRollback' is 0
    Action ended 14:54:06: InstallFinalize. Return value 3.
    I have reinstalled BITS,IIS and MP. I have stopped the Task Scheduler and renamed the folder and restarted the server.
    Basically short of reloading the server I have done everything I found on the internet.

    Duplicate post of
    https://social.technet.microsoft.com/Forums/en-US/b7c9f09a-0fe1-4d8d-b6cb-5182ebaac364/mp-will-not-install?forum=configmanagerdeployment
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SCCM 2012 R2 Update not Downloading

    Hi
    i had install SCCM 2012 R2 and WSUS  on the same server  and i configure the software update point component .(End Point Protection) when I'm trying
     to download software  update, i  click  on All software updates  repository right click and  run synchronization i cant see any update.
    wsyncmgr.log :
    Thread terminated by service request.  $$<SMS_WSUS_SYNC_MANAGER><07-14-2014 14:41:50.922-330><thread=5384 (0x1508)>
    SMS_EXECUTIVE started SMS_WSUS_SYNC_MANAGER as thread ID 5976 (0x1758).  $$<SMS_WSUS_SYNC_MANAGER><07-14-2014 14:46:27.078-330><thread=2736 (0xAB0)>
    Log level 2  $$<SMS_WSUS_SYNC_MANAGER><07-14-2014 14:46:27.309-330><thread=5976 (0x1758)>
    Wakeup by SCF change  $$<SMS_WSUS_SYNC_MANAGER><07-14-2014 15:19:48.428-330><thread=5976 (0x1758)>
    Please help

    WCm log error
    Remote configuration failed on WSUS Server.    SMS_WSUS_CONFIGURATION_MANAGER    7/15/2014 1:41:13 PM    5680 (0x1630)
    STATMSG: ID=6600 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_CONFIGURATION_MANAGER" SYS=BDC.mydomain.com SITE=NAV PID=2648 TID=5680 GMTDATE=Tue Jul 15 08:11:13.273 2014 ISTR0="BDC.mydomain.com" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7=""
    ISTR8="" ISTR9="" NUMATTRS=0    SMS_WSUS_CONFIGURATION_MANAGER    7/15/2014 1:41:13 PM    5680 (0x1630)
    Setting new configuration state to 3 (WSUS_CONFIG_FAILED)    SMS_WSUS_CONFIGURATION_MANAGER    7/15/2014 1:41:13 PM    5680 (0x1630)
    Waiting for changes for 49 minutes    SMS_WSUS_CONFIGURATION_MANAGER    7/15/2014 1:41:13 PM    5680 (0x1630)

  • Deploy SCCM 2012 Monthly updates (not with ADR), updates get expired

    Hi,
    I’m looking howto use monthly updates in SCCM 2012 R2. This post is showing howto with automatic deployment rules (ADR), but I’d need to do this without ADR.
    http://www.windows-noob.com/forums/index.php?/topic/6799-using-system-center-2012-configuration-manager-part-9-deploying-monthly-updates/
    What I do:
    1.filter on updates I need
    2.add them to an update group
    3.distribute these updates as mandatory to our default windows 7 collection
    Now everything works fine until some updates in the update group get expired. Then no updates are distributed anymore. Please advise.
    J.
    Jan Hoedt

    Leave the expired updates and group the remaining updates (create software group fo these) and deploy to your clients.
    Search the updates in sccm console: Add criteria: Expired NO
    Have a look in this post (Software updates deployment without ADR)
    http://www.windows-noob.com/forums/index.php?/topic/4467-using-sccm-2012-rc-in-a-lab-part-6-deploying-software-updates/
    Thanks, Prabha G

  • SCCM 2012 Client agent not installing

    Hi,
    We have some client machines which has Client as "No" in the SCCM console. The ccmsetup.log file of these machines shows repeated entries like:
    Download Update: 56283664 out of 66797088 bytes transferred.
    ccmsetup.log file of another machine shows entries as below:
    Download Update: Copy job has been queued.
    I repaired a client machine using "Install Client" and monitored the ccmsetup.log file but it does not show any entries for repair or re-installed as it is downloading updates for a long time.
    Also found the below error messages in ccmetup log file:
    File 'C:\Windows\ccmsetup\MicrosoftPolicyPlatformSetup.msi' doesn't exist.
    File 'C:\Windows\ccmsetup\WindowsFirewallConfigurationProvider.msi' doesn't exist.File
    'C:\Windows\ccmsetup\SCEPInstall.exe' doesn't exist.
    File 'C:\Windows\ccmsetup\client.msi' doesn't exist.
    Please guide on how to troubleshoot this client issue.
    Thanks & Regards,
    Lorin
    Regards, Lorin Davis

    This issue can be related with BITS settings. It can occurs if the BITS throttling is enabled on the client machines.
    https://abdujalil.wordpress.com/2014/03/22/configmgr-client-push-installation-issue-download-transfer-take-long-time/
    http://www.windows-noob.com/forums/index.php?/topic/7473-configuration-manager-2012-sp1-client-install-taking-hours-to-install/
    Please take a moment to Vote as Helpful and/or Mark as Answer where applicable. Thanks.

  • SCCM 2012 - SUP - updates not showing as downloaded when they actualy are

    Hello. I have a strange problem.
    I have collected my updates by year to have an overview of what is still updates.. 
    In the console I have 4 updates showing as not downloaded.
    If I highlight these and choose to download I get this
    So appearantly it works. However these continue to show as not downloaded. R
    My WSUS installation uses a SQL database on a proper sql server.
    Help needed

    Nothing happened in the logfile. I have no clue to what is happening.  What I ended up doing was that I recreated the Software Update Group with the exact same updates and downloaded it again. Problem solved. The views in the console are made from SQL
    queries. Guess the download process just didnt finish its sql job. 
    Old log history is of course gone but I will post the logfile here if/when it happens again.

  • SCCM 2012 software update point not sync with Microsoft Updat,

    Hi 
    Recently my SCCM 2012 software update is not syncing with microsoft update, am getting below error.  can any one suggest/help me how to resolve this issue.
    WebException: The remote server returned an error: (500) Internal Server Error.
    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.UpdateServices.ServerSyncWebServices.ServerSync.ServerSyncProxy.GetAuthConfig()
       at Microsoft.UpdateServices.ServerSync.ServerSyncLib.InternetGetServerAuthConfig(ServerSyncProxy proxy, WebServiceCommunicationHelper webServiceHelper)
       at Microsoft.UpdateServices.ServerSync.ServerSyncLib.Authenticate(AuthorizationManager authorizationManager, Boolean checkExpiration, ServerSyncProxy proxy, Cookie cookie, WebServiceCommunicationHelper webServiceHelper)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.SyncConfigUpdatesFromUSS()
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)

    am just trying to tracert catalog.update.microsoft.com
    from my wsus server but it is failed, would that be the reason/
    Regards,
    Madhan

  • Windows Updater Not Installing and Troubleshooter Wizard Is Not Working???

     I am in need help desperately!
            I have tried to install the Windows 7 latest update since late October 2014 and every time that I have tried it has failed, this is messing with certain programs to either not run such as my Troubleshooter,
    leaving me unable to fix the issue, and making my computer to run poorly as well as when I am on Firefox unable to load pages, do downloads, watch movies & TV, or watch videos on You Tube without having to move the mouse around to keep it running and just
    freeze the picture on the You Tube and Xfinity but the sound keeps playing though. I am unable to run the Troubleshooter Wizard at all; gives me an error code  0x80131018. I have gone to the forums to find a solution I tried everything possible. Such
    as trying to do all the maintenance; disc clean ups, compressing files to save on space, checking the disc drives for errors, defragmenting the drives, try to use the Fix It (MicrosoftFixit.malware.RNP.1343648269423620.1.1.Run,  as well as: MicrosoftFixit.ProgramInstallUninstall.RNP.1343648269423620.2.1.Run, 
    as well as:  MicrosoftFixit.wu.FISC.1341772369343897.1.1.Run,   and:  MicrosoftFixit50123) all the these would not help.
            I also tried to run what information I received from viewing options from the Error Code 0x80131018 and all the HP Support Assistant and Windows Help and Support. These are some of them;  SCUDownloader, 
    Windows6.1-KB947821-v34-x64,   HPSupportSolutionsFramework-en-11.51.0048,   HPSupportSolutionsFramework-11.51.0048,   HP CoolSense Technology - sp65424,   HP Notebook System BIOS Update (Intel Processors) - sp55068,  
    HP Power Manager Utility Software - sp55151,   HP On-Screen Display Utility - sp55152,   HP System Diagnostics UEFI - sp52407, and    Intel Rapid Storage Technology Driver - sp55101. All these with running the maintenance, 
    I also installed Boost, also ran the scans through my Norton Security, and so much more to try and fix this problem, I just can't remember everything that I tried I have been working so hard at solving this problem since of the effect of how this Windows Updater
    failing at updating and Troubleshooter not working to leaving me unable to find and fix these issues.
               I am a Graphic Design Artist and I am pretty computer savvy but I am at a loss on this . If anyone has any advise on these issues please help me ASAP, I use my HP everyday and it is important for
    me to have it for work purposes, concepts and so much more. My Mother got this computer for me when I graduated from college in 2012 for my graduation gift so I can do what I do.
    Thank you so much for your help in trying to get this resolved without having to take it into somewhere and pay $$ that I do not have.

    I recently had a similar problem - Windows 7 Ultimate. Apart from updates not installing and troubleshooters not running I started getting crashes and BSOD's
    I checked that my Cryptographic services was set to auto (it was)
     Press the 'Windows key" and and key "R" together   to launch the  RUN  box. Type
    services.msc in the box and press Enter. It'll open Services Manager.
     Scroll down to  "Cryptographic Services" in the list. It should be set to Auto ( mine was)
    I then checked my Windows updates to see when the problem started
    Taking the bull by the horns I deleted the last 20 updates installed.
    I restarted the computer and was amazed to find the troubleshooters working ok
    I downloaded the Windows updates and installed them 5 at a time checking the troubleshooter after each batch. Everything was ok .
    I can only assume the troublesome update was not re-offered or the one that installed itself was corrupt.

  • SCCM 2012 SP1 update to R2

    Hi!
    SCCM 2012 SP1 update to R2.
    I use SQL 2008R2 SP2 (10.50.4000.0), this version is Ok for SCCm 2012 R2 update?
    cenubit

    Yes it is.
    See supported configurations
    http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigSQLDBconfig
    Also, see procedure to upgrade from SP1 to R2
    http://www.gerryhampsoncm.blogspot.ie/2013/10/in-place-upgrade-sccm-2012-sp1-to-r2.html
    Also, note that CU1 for R2 has also been released. You should apply this afterwards.
    http://support.microsoft.com/kb/2938441/en-us
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • EAS Updater Not Installing

    Anyone encountered EAS Updater not installing properly.  In the documentation to verify In VersaMail, press Menu . From the Options menu, select Preferences, then select AutoSync. There is now an option for "As items arrive."  I don't see this on the Treo.  Any ideas?
    Post relates to: None

    I've heard about several different versions of VersaMail (e.g., 3.0/3.1 on the Treo 650; 3.5 update; 4.0 on the Centro). You might check and see whether you have the correct installation instructions for your version.
    Post relates to: Treo 800w (Sprint)

  • System updates not installed/downloaded

    I noticed in the ThinkVantage Systemupdate history several Windows 7 updates that did not install or download, but I am not able to select them from the history to try again. Why do Windows updates not install and hoew can I move the failed installations back into the upgrade list?

    It is possible that in the meantime, Windows Update downloaded and installed the same updates, which would cause TVSU to not detect it as there is no need. Check in the Windows Update history for the same updates.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • SCCM 2012 SP1 Update to CU5 not showing version 1600 for clients updated !

    Recently upgraded SCCM 2012 SP1 and its showing a version of 5.0.7804.1600 as it should be. Pushed out the CU 5 client manager update to few machines and they are also showing .1600 as the version, however in SCCM 2012 manager itself it is not updating the
    status of those machines from say .1000 or .1400 to .1600. Why is this happening and any solution for it ? I have also updated the CM on the server hosting the SCCM and is current to .1600 version.

    Because the client agent version is returned from clients via heartbeat discovery which only occurs by default every 7 days. Thus, you need to be patient. Note that I generally recommend reducing the heartbeat cycle to at least once a day partly for
    this reason.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Installing an application through Powershell with SCCM 2012 r2 is not working as expected

    I am trying to install a VOIP client using a powershell script. When I run the powershell script on the client in a administrative powershell prompt the script runs fine and it installs the application as expected. When I try to do the same thing through
    the SCCM client using an application it does not install.
    I am not a Powershell Guru so the script below is my simple understanding of installations through powershell as of this moment
    <#
    Installatiescript CIC Client SU6 32 bit (kantoor)
    Versie 1.3
    17 april 2015 - Uitbreiding logfile. Fix opschonen startmenu
    16 april 2015 - Aanpassing verwijderen oude client, logfile aanmaken in TEMP
    13 maart 2015 - Eerste versie
    #>
    # Bepaal installatiebron
    $SourceDir = "\\VSC0501\SetupShare\APP_IC_Client_SU6\x86"
    # Bepaal logvariabelen
    $logfile = "$env:TEMP\cic_su6-install.txt"
    $Logdate = get-date -f yyyyMMdd-HHmm
    # Controleer of oude CIC client aanwezig is (versie 4.04.316) en deinstalleer deze indien nodig
    If (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}")
    $val = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}").DisplayVersion
    if($val -eq "4.04.316") {
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed" | out-file $logfile -Append
    exit
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed - " $process.ExitCode | out-file $logfile -Append
    exit
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru).exitcode
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru).exitcode
    Get-ChildItem "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" | Remove-Item -Recurse
    Remove-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" -Recurse -Force
    else {
    Write-Output "$logdate - Client not present" | out-file $logfile -Append
    # Installeer CIC Client SU6
    $Arguments = "/i `"$SourceDir\ICUserApps_32bit.msi`" /l*vx `"$env:TEMP\cic_su6.log`" TRANSFORMS=`"$SourceDir\Kantoor.mst`" PATCH=`"$SourceDir\ICUserApps_32bit_SU6.msp`" ICSERVERNAME=cic.abvakabofnv.local /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 (kantoor) has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 (kantoor) cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit
    # Installeer CIC Client SU6 NL Language Plugin
    $Arguments = "/i `"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl.msi`" /l*vx `"$env:TEMP\cic_su6_nl.log`" PATCH=`"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl_SU6.msp`" /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit
    # Opschonen Desktop en Start menu
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Fax.lnk"
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Voicemail Player.lnk"
    Move-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Interactive Intelligence" "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV" -force
    The uninstall part works fine, but the installation (2 parts) do not. As I mentioned before... when I run the script manually it all works fine.
    The application is installed using a script. The commandline is
    powershell.exe -excecutionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1
    The application runs hidden in the context of the system wether or not the user is logged on. The maximum allowed run time is sufficient (30 minutes).
    There is no installation log from the msiexec command so the line were the application should be installed is not executed at all. There is also no mention in my own little log ($logfile = "$env:TEMP\cic_su6-install.txt") mentioning the result
    of the installation.
    The appenforce.log says...
    +++ Starting Install enforcement for App DT "Interaction Client - Standaard SU6" ApplicationDeliveryType - ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision - 7, ContentPath - C:\WINDOWS\ccmcache\13, Execution Context - System AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    A user is logged on to the system. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    App enforcement environment:
    Context: Machine
    Command line: Powershell.exe -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1
    Allow user interaction: No
    UI mode: 0
    User token: null
    Session Id: 1
    Content path: C:\WINDOWS\ccmcache\13
    Working directory: AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Prepared working directory: C:\WINDOWS\ccmcache\13 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Found executable file Powershell.exe with complete path C:\WINDOWS\System32\WindowsPowerShell\v1.0\Powershell.exe AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Prepared command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Executing Command line: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file Install_UserApps_SU6_Kantoor.ps1 with user context AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Working directory C:\WINDOWS\ccmcache\13 AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Post install behavior is BasedOnExitCode AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Waiting for process 2916 to finish. Timeout = 30 minutes. AppEnforce 17-4-2015 16:31:05 640 (0x0280)
    Process 2916 terminated with exitcode: 0 AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Looking for exit code 0 in exit codes table... AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Matched exit code 0 to a Success entry in exit codes table. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    ++++++ App enforcement completed (3 seconds) for App DT "Interaction Client - Standaard SU6" [ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4], Revision: 7, User SID: ] ++++++ AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    I'm thinking of going back to a batchfile because that seems to do the job, but Powershell is much more powerfull.
    Anybody got any answers on what is going wrong are some suggestions for a better script? 

    You have a number of problems here.
    1.  As mentioned you have UNC paths ... which means there's no reason for a package at all.  f you want SCCM to use the package it just downloaded you should use $PSScriptRoot (PS equivelant of %~0dp).  If the client is using v2 or earlier
    ... fix that quick by starting your script with:
    If (!$PSScriptRoot) {
    $PSSCriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
    Now you can call your install easy enough with a $PSScriptRoot+"\app.exe"
    2.  your discovery is failing after install.  This will always make SCCM report an installation failed even when the exit code is 0.  You can see it at the end of your log:
    Matched exit code 0 to a Success entry in exit codes table. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    Performing detection of app deployment type Interaction Client - Standaard SU6(ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, revision 7) for system. AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    +++ Application not discovered. [AppDT Id: ScopeId_2EC1E80A-D73E-4152-A94F-546E7827CCB6/DeploymentType_720b132a-5626-4055-9555-18b4775724c4, Revision: 7] AppEnforce 17-4-2015 16:31:08 640 (0x0280)
    So either your installation script is spitting out a exit code 0 regardless of the event OR your detection is wrong.
    EDIT:  you have exit statemetns after failed installs ... but no exit code (simply exit).  Change those to exit 1 so sccm knows it's a failed exit and not just a generic exit.  That's probably your problem (unc can't be reached as system, you're
    getting an exit  .... not defining exit 1).
    Something like this (warning this is a fast change so review it):
    <#
    Installatiescript CIC Client SU6 32 bit (kantoor)
    Versie 1.3
    17 april 2015 - Uitbreiding logfile. Fix opschonen startmenu
    16 april 2015 - Aanpassing verwijderen oude client, logfile aanmaken in TEMP
    13 maart 2015 - Eerste versie
    #>
    If (!$PSScriptRoot) {
    $PSSCriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
    # Bepaal installatiebron
    #$SourceDir = "\\VSC0501\SetupShare\APP_IC_Client_SU6\x86"
    $SourceDir = $PSScriptRoot
    # Bepaal logvariabelen
    $logfile = "$env:TEMP\cic_su6-install.txt"
    $Logdate = get-date -f yyyyMMdd-HHmm
    # Controleer of oude CIC client aanwezig is (versie 4.04.316) en deinstalleer deze indien nodig
    If (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}")
    $val = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{543BE3AC-426D-4FDD-8160-ECEEC2E211B6}").DisplayVersion
    if($val -eq "4.04.316") {
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed" | out-file $logfile -Append
    exit 1
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - Client has been succesfully removed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - Client cannot be succesfully removed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {3F20671C-9CA2-41FA-B94A-C7C7FD95C7B4} /QN" -Wait -Passthru).exitcode
    #(Start-Process -Filepath "msiexec.exe" -Argumentlist "/x {543BE3AC-426D-4FDD-8160-ECEEC2E211B6} /QN" -Wait -Passthru).exitcode
    Get-ChildItem "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" | Remove-Item -Recurse
    Remove-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV\Interactive Intelligence" -Recurse -Force
    else {
    Write-Output "$logdate - Client not present" | out-file $logfile -Append
    # Installeer CIC Client SU6
    $Arguments = "/i `"$SourceDir\ICUserApps_32bit.msi`" /l*vx `"$env:TEMP\cic_su6.log`" TRANSFORMS=`"$SourceDir\Kantoor.mst`" PATCH=`"$SourceDir\ICUserApps_32bit_SU6.msp`" ICSERVERNAME=cic.abvakabofnv.local /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 (kantoor) has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 (kantoor) cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    # Installeer CIC Client SU6 NL Language Plugin
    $Arguments = "/i `"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl.msi`" /l*vx `"$env:TEMP\cic_su6_nl.log`" PATCH=`"$SourceDir\LanguagePlugins\ICUserApps_LanguagePlugin_nl_SU6.msp`" /QN /norestart"
    $process = Start-Process -Filepath "msiexec.exe" -Argumentlist "$Arguments" -Wait -Passthru
    if ($process.ExitCode -eq 0) {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL has been succesfully installed" | out-file $logfile -Append
    else {
    Write-Output "$logdate - CIC Client SU6 Languagepack NL cannot be succesfully installed - " $process.ExitCode | out-file $logfile -Append
    exit 1
    # Opschonen Desktop en Start menu
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Fax.lnk"
    Remove-Item -Path "$env:PUBLIC\Desktop\Interaction Voicemail Player.lnk"
    Move-Item -Path "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Interactive Intelligence" "$env:SYSTEMDRIVE\ProgramData\Microsoft\Windows\Start Menu\Programs\Abvakabo FNV" -force
    Exit 0

  • Security Update 2012-001 Will Not Install

    When I try runnng Software Update to install Security Update 2012-001 I get "An unexpected error has occured." at the end of the installation process.  I tried downloading the standalone installer but that fails too.
    Any ideas?

    Christopher Chew wrote:
    Tried the above suggestions and none of them worked.
    I tried an re-install of 10.6 from my system disk and upgrading that.  The combo update fails too.
    I tried wiping the partition and doing a complete restore from a Time Machine backup.  Still same error.
    When I have time I could try wiping the parition, reinstalling 10.6 and using Migration Assistant instead of a straight restore.
    One more thing.  I installed a Boot Camp partition about a month ago.  Could that have something to do with this?
    Thanks.
    Possible some  corruption occured to the MBR section of your GPT,  boot sector virus on Windows?
    Bad Bootcamp updated the GPT wrong perhaps?
    Could be OS X on TM is hosed too, can't trust that then.
    Fresh install it is then, cures all ills. Follow on.
    Hold c boot off the 10.6 disk, use Disk Utility there to select your entire internal drive on the far left (you got backups right? because all is going bye bye including Windows)
    Next chose Erase and Security option Zero All Data, come back after lunch. this will check the drive really good for bad bits/sectors, takes a bit of time though.
    Next chose Partiton and Option: GUID, format OS X Extended (J) and give it the same name, click apply. This will rebuilt the GPT in case it was corrupted.
    Install 10.6, reboot and update to 10.6.8., c boot off the 10.6 disk and Repair Disk just in case.
    Prefereably you should clone your pristine 10.6.8 install first to a blank external drive, you can always option boot off of it.
    http://www.bombich.com/get_ready_for_lion.html
    You can then  try restore from TM or just go ahead and install programs from fresh sources and just use Migration Assistant to bring your user back.
    If your problems continue after migration assistant, then option boot and reverse clone. how to cherry pick your files off a corrupt TM drive is no easy matter, may need DataRescue $99.
    Far as cloning Windows bootcamp later when you reinstall it, you need the free WinClone on Macupdate.com.
    you should be fully armed now.
    Good Luck.

Maybe you are looking for

  • Does anyone elses iPhone 5 just randomly shut off or freeze on a blue screen after only having it for a week??

    I got a white 16G iPhone 5 last Sunday (Jan 6th 2013) and I have already been on the phone with apple once and in the store twice about this issue. The phone randomly shuts itself off or freezes on a blue screen for 5-30 minutes at a time. Apple rese

  • Alternative way of saying white space...

    I am writing a properties file and one of the property keys needs to return a white space i.e. something= What character can i use to indicate a white space i.e. i can use \n to mean a carriage return. Thanks!

  • Check Box Line Width

    Hi. Is it possible to reduce the weight of check boxes? With some small boxes the default width seems heavy. Is there a way to change the width of the check box lines?

  • Strange issue with Power Saver on my Satellite M30

    When connected via mains to the power supply, my laptop is completely fine. However, when not connected (i.e. using it on battery), it shows 100% battery until about 90%, when I get a Windows Error Window "Toshiba Power Saver must be closed, would yo

  • Slideshow not sizing portrait images correctly

    Hi I've seen a lot postings about portrait images not showing correctly but none of them helped me with my problem. I'm using DVD Photo Slideshow Professional for Mac to make my MP4  slideshow and I was quite pleased with the results until I loaded i