SCCM: Preventing Restarts During Application Deployments

If an application package is written internally to perform a restart, there is not a way to prevent it. However, if the package returns an exit code that prompts the OS to restart, we can control this behavior in an SCCM deployment.


  1. On the return codes tab, change the code type (action) for the return code 3010 from restart to Success (no reboot).


  2. On the User Experience tab, under the heading "Should Configuration Manager enforce specific behavior regardless of the application's intended behavior - Select No Specific Action


SCCM: MSI Application Deployment with Logging

The easiest way to determine what is going wrong with an application deployment that is utilizing an MSI package is to enable logging.

The switches /L*V enables verbose logging and then specify where to place the log file. We recommend utilizing the log folder in the Windows directory.

example syntax:

msiexec /i "{Product_Name}.msi" /qn /norestart  /L*V "C:\Windows\logs\{Product_Name}.log"

SCCM - Endpoint Protection Policy Application State Failed

How to resolve the issue in System Center Configuration Manager 2012 under the Endpoint Protection Status Screen, under Endpoint Protection Policy Application State a client shows "failed":



  1. Browse to C:\Windows\System32\GroupPolicy\Machine\ on the client affected
  2. Delete Registry.pol
  3. Restart the SMS Agent Host service


Or write a script to deploy to the clients affected containing the following:


del C:\windows\system32\grouppolicy\machine\registry.pol /q

net stop ccmexec

timeout /t 20

net start ccmexec

Error 1602 Installing Software Application MSI or EXE

Error 1612 the installation source is not available
 or
Returned failure exit code 1612. Failed the installation

Resolution

  1. Open Regedit
  2. Navigate to [HKEY_CLASSES_ROOT\Installer\Products\
  3. Find the key associated with the product trying to install and delete it
  4. Re-run the installer

Transferring Phones From Verizon Wireless to AT&T Wireless

To transfer an iPhone 5 or newer:

Obtain a SIM card from AT&T wireless and replace the SIM card in the phone
Gently insert the end of  small paperclip into the small pinhole opening in the SIM tray.
Apply a small amount of pressure until the SIM tray pops out
Grab hold of the SIM tray and pull straight out

This video shows how to remove the SIM card: https://www.youtube.com/watch?v=2mvQlUBGDaM

dump the old SIM card from the tray
insert the new SIM card into the tray
insert the SIM tray back into the phone
restart the phone

To transfer a Samsung Galaxy S5 or newer:

Obtain a SIM card from AT&T wireless and replace the SIM card in the phone
Gently insert the end of  small paperclip into the small pinhole opening in the SIM tray.
Apply a small amount of pressure until the SIM tray pops out
Grab hold of the SIM tray and pull straight out

This video shows how to remove the SIM card: https://www.youtube.com/watch?v=2mvQlUBGDaM

dump the old SIM card from the tray
insert the new SIM card into the tray
insert the SIM tray back into the phone
restart the phone

Program the data settings in the phone for the AT&T network:

Access the Settings menu.
Locate and select either Wireless & Networks, More Networks, or Connections.
Select Mobile Networks > Access Point Names.
Locate and select the option to add a new APN  by pressing the + symbol on the screen
Program each field using the settings below:

Name NXTGENPHONE
APN NXTGENPHONE
MMSC http://mmsc.mobile.att.net
MMS proxy proxy.mobile.att.net t 
MMS port 80
MCC 310
MNC 410
APN type default,mms,supl,hipri
APN protocol IPv4


Save the changes to return to the APN's menu and select the new APN.

How to Change Skype For Business SIP ADDRESS Using PowerShell

Powershell Cmdlet:
Set-CsUser –Identity <username> -SipAddress "<email address>"



  1. Open Skype for Business Management Shell
  2. Type the following cmdlet:
    Set-CsUser –Identity John.Doe -SipAddress "sip:John.Doe@Doe.com"
  3. press <ENTER>



Find Collections With Maintenance Windows in System Center Configuration Manager

With numerous device collections, it can be tedious and time consuming to hunt for maintenance windows that have bet set and on what collection. To obtain a list of all maintenance windows and the device collections where they are applied, run this query against the SCCM site database using SQL Server Management Studio.

In SQL Server Management Studio:
Click databases
Choose the primary site
click New Query

paste this query in and execute it:

SELECT c.Name, c.Comment,SW.Description, SW.StartTime, SW.Duration
FROM v_ServiceWindow SW
JOIN v_Collection C ON C.CollectionID = SW.CollectionID
ORDER BY c.Name