Monday, July 25, 2016

Windows Process Activation Service – Error 13: The data is invalid



I ran into a strange error recently on an Sccm 2012 server. The WWW Publishing Service was stopped. When I tried to start the service it failed on a dependency. A quick check revealed the Windows Process Activation Service (WAS) was stopped. When I tried to start WAS I received the following error.


Windows could not start the Windows Process Activation Service service on Local Computer. Error 13: The data is invalid.
The Event Viewer was littered with equally cryptic Event IDs, such as WAS 5005 and WAS 5036.
Not the first time
I’ve actually encountered an error like this before. I am not sure what causes it. But evidently something in Internet Information Services (IIS) becomes corrupt.
The applicationHost.config file was messed up. For me the file was completely empty. Not a line of code to be found.
Luckily IIS takes backups that can be found in C:\INETPUB\HISTORY. Under here you will see several folders with a prefix of CFGHISTORY. The folder with the highest revision number will be your latest backup. Copy this file and overwrite the existing file at C:\WINDOWS\SYSTEM32\INETSRV\CONFIG.


applicationHost.config
Once the file has been replaced start the WAS service.


If WAS starts successfully then you should be able to start the WWW Publishing Service. If that starts successfully, then you can restore all Exchange Web Services.


Wednesday, March 2, 2016

Windowsupdate.log ERROR CODE= 0x80072EE2, Endpoint protection not updating.


Problem: 

                We had installed JAN'2016 patches on SCCM server and WSUS server, after reboot, we got below error on all servers and workstations,

                 Microsoft end point protection not updating, error getting updates not required/applicable, even though updates are missing.


SOLUTION:

we ran below command on both SCCM and WSUS Server,

wuauclt /resynchronize /detectnow /reportnow

it took few hours to take effect. and updates are started working flawlessly.


Wednesday, January 27, 2016

Background Intelligent Transfer Service (BITS) not listed in services Windows 8


Open command prompt in Administrator mode, and run below command.

"sc create BITS binpath= "c:\windows\system32\svchost.exe -k netsvcs" start= delayed-auto"

reboot the system and check service now.

Friday, November 6, 2015

SCCM QUERY TO FIND INSTALLED APPLICATION FROM "ADD OR REMOVE PROGRAMS" - SCCM 2012

Select DISTINCT SYS.Netbios_Name0,SYS.Resource_Domain_OR_Workgr0,SP.DisplayName0, SP.Publisher0, SP.Version0, SP.InstallDate0
from  v_Add_Remove_Programs sp
JOIN v_R_System SYS ON SP.ResourceID=SYS.ResourceID
JOIN v_FullCollectionMembership fcm on sys.ResourceID=fcm.ResourceID
WHERE fcm.CollectionID = 'SMS00001'
ORDER By SYS.Netbios_Name0, SP.DisplayName0, SP.Publisher0, SP.Version0, SP.InstallDate0


Note: 'SMS00001' is All systems collection ID, you can change to any other collections ID and generate the report.

Tuesday, October 27, 2015

SCCM SQL QUERY TO FIND "MS-OFFICE PRODUCTS REGISTERED IN ADD or REMOVE PROGRAMS"

select distinct (a.Netbios_name0), a.Creation_date0,a.User_name0,a.client0, a.ad_site_name0,a.obsolete0,b.sms_installed_sites0 as 'sitecode',
os.Caption0 + ' '+ os.CSDversion0 as 'Operating System',addr.DisplayName0,addr.Version0,addr.Publisher0,addr.InstallDate0
from v_r_system a
left outer join v_RA_System_SMSInstalledSites b on a.resourceid=b.resourceid
left outer join v_GS_WORKSTATION_STATUS c on a.resourceid=c.resourceid
left outer join v_GS_Operating_system OS on os.resourceid=a.resourceid
inner join v_GS_ADD_REMOVE_PROGRAMS addr on addr.resourceid=a.resourceid
where (addr.DisplayName0 like 'Microsoft Office 2%'
 OR addr.DisplayName0 LIKE 'Microsoft % Professional%'
 OR addr.DisplayName0 LIKE 'Microsoft % Enterprise %'
 OR addr.DisplayName0 LIKE '%Microsoft % Standard%' )
 ORDER BY Netbios_Name0 ASC

Tuesday, October 20, 2015

COMMAND LINE TO INSTALL SCCM CLIENT ON WINDOWS 10 SYSTEMS

Windows-10 32Bit OS: “ccmsetup.exe /skipprereq:WindowsUpdateAgent30-x86.exe”
Windows-1064Bit OS: “ccmsetup.exe /skipprereq:WindowsUpdateAgent30-x64.exe”

Monday, October 19, 2015

SCCM Collection query to find "WINDOWS 8" and "WINDOWS 8.1" Systems

WQL Query to find Windows 8 Systems and Windows 8.1


select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System   where    SMS_R_System.OperatingSystemNameandVersion like "%Workstation%"   and SMS_R_System.OperatingSystemNameandVersion like "%6.3%"  or SMS_R_System.OperatingSystemNameandVersion like "%Workstation%"   and SMS_R_System.OperatingSystemNameandVersion like "%6.2%"