Get Free Space (in GB) on C: Drive from Remote Computer

Advertisements

FIX Error -The software change returned error code 0x8024401C (0x8024401C -2145107940 WU_E_PT_HTTP_STATUS_REQUEST_TIMEOUT Same as HTTP status 408 – the server timed out waiting for the request.)

HI,

If you get above mentioned error on software center (client Server), than follow the below steps to resolve the issue.

1- Check how many servers are impacted with this error.

2-  Check the serving WSUS server that should be running fine with resources (RAM/CPU)

3- Check the serving DP that should be running fine with resources (RAM/CPU)

if  WSUS server running with High CPU, than install below KB’s on WSUS server to resolve this issue.

FIX Error -The software change returned error code 0x80072EE2 (0x80072EE2 -2147012894 ERROR_INTERNET_TIMEOUT The request has timed out.)

HI,

If you get above mentioned error on software center (client Server), than follow the below steps to resolve the issue.

1- Check how many servers are impacted with this error.

2-  Check the serving WSUS server that should be running fine with resources (RAM/CPU)

3- Check the serving DP that should be running fine with resources (RAM/CPU)

if  WSUS server running with High CPU, than install below KB’s on WSUS server to resolve this issue.

Fix- Error -Unable to compile Sql CE script file during SCCM client install or upgrade (80004005)

IF you get the below error.

File C:\WINDOWS\ccmsetup\{CA4329EC-A4F5-4E5E-A9FE-EFAAE88B0D67}\client.msi installation failed. Error text: ExitCode: 1603
Action: CcmCompileSqlCEScripts.
ErrorMessages:
Setup was unable to compile Sql CE script file C:\WINDOWS\CCM\StateMessageStore.sqlce.
The error code is 80004005.

Steps to Resolve the issue :

1- Uninstall the SCCM client . (C:\Windows\ccmsetup>ccmsetup.exe /uninstall)

2- Then move the following files to a backup folder. These are the old client Sql CE database files. They are located in the client install folder %windir%\CCM\ or in the SMS_CCM folder).

  • CcmStore.sdf
  • CertEnrollmentStore.sdf
  • ComplRelayStore.sdf
  • InventoryStore.sdf
  • UserAffinityStore.sdf

OR you can take a backup and empty the CCM Folder

3- Install the SCCM client again.

This will resolve the issue

FIX- Rebuild the WMI On Windows Servers

Needs to follow the below Steps to resolve the WMI Issues.

1. Change startup type to Window Management Instrumentation (WMI) Service to disabled
2.  Stop the WMI Service; you may need to stop IP Helper Service first or other dependent services before it allows you to stop WMI Service
3.  Rename the repository folder: C:\WINDOWS\system32\wbem\Repository to Repository.old
4.  Open a CMD Prompt with elevated privileges
5.  CD windows\system32\wbem
6.  for /f %s in (‘dir /b /s *.dll’) do regsvr32 /s %s
7.  Set the WMI Service type back to Automatic and start WMI Service
8.  cd /d c:\ ((go to the root of the c drive, this is important))
9.  for /f %s in (‘dir /s /b *.mof *.mfl’) do mofcomp %s
10.  Reboot the server

Recover the WMI

Follow the Below Steps to

1. Stop WMI and kill any WmiPrvse.exe processes.
2. Start up WMI
3. cd C:\Windows\System32\wbem\AutoRecover
4. Run this command: for /f %s in (‘dir /b *.mof *.mfl’) do mofcomp %s

 

Batch File  for same activity.

Copy the below lines and create the batch file and run on problem server.

@echo off
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%system32wbem
for /f %s in (‘dir /b /s *.dll’) do regsvr32 /s %s
wmiprvse /regserver
winmgmt /regserver
sc config winmgmt start= auto
net start winmgmt
cd \
for /f %s in (‘dir /s /b *.mof *.mfl’) do mofcomp %s

MS Patch Installation failed with Error Code:0x87D00668

Checked all software update related logs and found that required patches, already got installed with failed software update returns error code 0x87D00668.

I have tried the below steps which resolve the issue.

1- Stop-Service “wuauserv”
2- Stop-Service “CcmExec”
3- Remove-Item -Path “C:\Windows\SoftwareDistribution\*” -Recurse
4- Start-Service “wuauserv”
5 -Start-Service “CcmExec”

Also we can use below command to execute the above steps on remote computer :

Invoke-Command -ScriptBlock {Stop-Service “wuauserv”; Stop-Service “CcmExec”; Remove-Item -Path “C:\Windows\SoftwareDistribution\*” -Recurse ;Start-Service “wuauserv”; Start-Service “CcmExec” } -ComputerName “Remote Computer”