Friday, November 4, 2016

Default Software catalog website change to User friendly website name in SCCM 2012

Default Software catalog website change to User friendly website name in SCCM 2012


Purpose : 


              we created and published some applications in Software catalog in SCCM 2012, and during testing we had thought about create user friendly website instead default website which is lengthy


Default Site name: "http://<SCCM SERVER NAME>/CMApplicationCatalog"

User friendly site: "http://SelfServiceRequest"


How to achieve this:  we need to create DNS Alias name for SCCM Server and HTTP Redirect in SCCM server IIS.

Solution: 

1. Create DNS Alias name 

            Sccm server name : incrvsccm      Alias name: selfservicerequest

2. HTTP Redirect in SCCM IIS

            we should give http://SelfServiceRequest/CMApplicationCatalog

            

once done, click on "APPLY" button on right corner in IIS.

Now by clicking http://SelfServiceRequest will take to Software Catalog. 


========================================================

Read below article for exception:

Ref: https://thedesktopteam.com/raphael/sccm-2012-web-redirect-is-evil/

Hi All,
recently i was at a customer site performing the Build & Capture and it was failing when the Install Application step was invoked.
Customer was running WS2012R2, SCCM 2012 R2 with CU3, so the latest updates ðŸ™‚
because we were doing the B&C for Windows 8.1, the hotfix for Windows 7 did not apply, so there problem had to be something else.
Looking at the client logs, I saw:
ClientLocation
[CCMHTTP] ERROR: URL=http://xxxxxx, PORT=80, Options=224, Code=0, Text=CCM_E_BAD_HTTP_STATUS_CODE
LocationServices
Workgroup Client is in unknown location
Failed to execute LSExecuteTask
[CCMHTTP] Error: URL=http://xxxxx, PORT=80, Options=224, Code=0, Text=CCM_E_BAD_HTTP_STATUS_CODE
Raising event: instance of CCM_CcmHttp_Status{ ………………..
Successfully sent location services HTTP failure message
Error sending HEAD request. HTTP code 401, status ‘Unauthorized’
CertificateMaintenance
MP xxxx does not allow client connections matching the client connection type
StatusAgent
HandleFSPCcmHttpStatus – Failed to retrieve assigned MP. Assuming ‘xxxxxx’ is not a relevant MP
So, looking at the IIS logs, I saw that before the setup windows the machine did connect properly to the MP folders (ie /SMS_MP/.sms_aut MPLOCATION, /ccm_system/request, SMS_MP/.sms_pol, etc) not once I see it connecting direct to the root /
However, once the client is installed, it start connecting to the root / and I see this as HEAD / and just after i was it being redirected to /CMApplicationCatalog with HTTP ID 302 but was getting HTTP error 401
Of course this is not normal, but this was happening because we did redirect the default IIS default website to /CMApplicationCatalog
This repeat few times per second, so at the end of the day, with 1 T&B TS, we got around 450MB of IIS log, not good, as this could fill up the drive quickly.
you may be asking, why this redirection? customer had a single server, single primary site. they have created a CNAME called InstallSoftware where the users could open the Internet and browse to http://InstallSoftware to get to the CMApplicationCatalog. as we don’t want users to see the IIS Default webpage and you know, users will not remember to add the /CMApplicationCatalog, we added the redirection…
Once we removed the redirection (that was done via a default.aspx file), it connects to the root / and get status 200, it them goes to ccm_system/request, sms_fsp, etc…fine
Speaking with MS, i asked why this request to the root / as this request doesn’t seem to be necessary and only cause extra network traffic (small, but extra…)
from the reply i’ve got, this behaviour was implemented on SP1 or R2 for specific workgroup scenarios to detect if the client is internet or intranet.
This still not make sense for me and i’ve submitted a DCR to have this behaviour changed, however, while speaking with MS, my fellow MVP Kim Oppalfens gave me the idea to test the IIS Url Rewrite module and i have to say that after testing it, this resolve the issue.
So, to get the redirection to the CMApplicationCatalog (or another website) without breaking your MP connection on a workgroup / OSD scenario, perform the following tasks:
1- Download the URL Rewrite (http://www.iis.net/downloads/microsoft/url-rewrite)
2- Install it (basic next-next-finish)
3- Open IIS and navigate to the default webiste
4- Select URL Re-write and add a new rule
4.1 – Under Match URL -> Using, change to Wildcards
4.2 – Under Match URL -> Pattern, type *
4.3 – Under Conditions, add:
4.3.1 – Condition Input -> {HTTP_USER_AGENT}, check if input string -> Does not match the pattern, Pattern -> SMS+CCM+5.0
4.3.2 – Condition Input -> {PATH_INFO}, check if input string -> Match the pattern, Pattern -> /
4.3.3 – Condition Input -> {REQUEST_METHOD}, check if input string -> Does not match the pattern, Pattern -> HEAD
4.4 – Under Action
4.4.1 – Action type -> Redirect
4.4.2 – Action Properties -> Redirect URL -> type /CMApplicationCatalog (or any other url you want)
4.4.3 – Action Properties -> check append query string
4.4.4 – Action Properties -> Redirection type -> Permanent (301)


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.