Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all 4762 articles
Browse latest View live

SCCM 2012 R2 - How to Remove Package from Software Center

$
0
0

Hi there!

After deploying package to the device collection the package stays in the "Installation Status" tab with the only available option as "Reinstall". Is there a way to get this package to the "Available Software" where it was right after the deployment?

Thank you!


SCCM 2012 R2 - How to Use Package as a Dependency for the Application

$
0
0

Hi!

Could anybody be so kind to share the way to use SCCM package as a dependency for the SCCM application? Or how to convert the SCCM package (which deploys .bat file) into the SCCM application?

Thank you very much, in advance!

SCCM 2012 R2 - Ways to Get MSI-package with Content Execution Functionality

$
0
0

Hi there!

Could anybody be so kind to point to the free tool(s) and or instructions on how to make my own MSI package?The most important is that this package should be able to run the .bat-file which is the part of the package. I usedAdvanced Installer Freeware, but it does not provide the .bat-file execution functionality for free.

Many thanks to you, in advance!


SCCM 2012 Application Deployment Failed or Downlaod stuck at 0%

$
0
0

SCCM 2012 Application Deployment failed with error 0x80070005 or downloading stuck at 0 % however my boundary group are configured and applications are uploaded successfully to DP 

Cmtrace error : Event maps to notification type = Application Enforcement Failed 

Monitoring Deployments (Can't locate content)

Any Ideas?

how to define detection rule for a package in sccm 2012

$
0
0

I know I can define detection rules for any application deploy in sccm 2012. But I do not see where I can define detection rules for a package. The only thing I can do is to define what o/s I can deploy to. But I would like to detect file existence before deploying the package. How can I define this rule in a package?

Any response will be greatly appreciated!!!

Re-Deploying Office 2013 (with Access) - Adding Additional features and redeploying with SCCM

$
0
0

Good morning,

Here's what I got, we have a package with Office 2013 Pro Plus that has everything installed except Access, b/c most do not use Access.  Our business labs are about to start teaching Access, so we need to deploy access to these device collections that require this feature to be added. I know I can create another custom MSP with the OCT admin pack, and I have, but I do not know how to deploy it to these few collections and force it to update.

My main questions, if I create a completely new application in SCCM and point it to the new MSP file that has ALL the features plus access, what do I set as the detection method, since they already have Office 2013 installed?  WHen I deploy it it will find it's already installed and will not update. (or so I think?)

Long story short, I want to update the existing Office 2013 installation on a few device collections to include / add Microsoft Access 2013 and I need to know your opinions on the easiest way to do this with SCCM 2012


Thanks!

Formula for amount of CO2 saved in tons in sccm

$
0
0

Hi,

I want to calculate the total amount of CO2 saved in the tons from the collection in sccm.

Can you guys help me what formula should be used to identify the total emission of CO2 and how much is saved from the collection of computers.

Regards

Gaurav Rana

Return Codes in Application

$
0
0

Hi all!

For testing purposes, I added return code 1602 in the "Return Codes" tab of a deployement type and added "User cancel installation" as name and description. What else I have to do to read this description in the Software Center? When starting the Application installation and cancelling it, I'm able to see the error code by clicking on "Failed" in the status bar of the Software Center, but the AppEnforce.log shows "Unmatched exit code (1602) is considered an execution failure".  In my opinion it is not an unmatched exit code, because I defined this error code in the deployment type.

Did I miss anything or is this normal behavior?

Best regards, JeeCay


SCCM 2012 R2 - Conditional Installation of Packages

$
0
0

Hi there!

I have 3 SCCM objects:

  1. SCCM Package #1 to uninstall Application #1.
  2. SCCM Package #2 to uninstall Application #2.
  3. SCCM Application to install Application #3.
  4. Application #1 and #2 are not installed on the same workstation, but need to be uninstalled prior to Application #3 installation.

I numerous attempts to accomplish that deployment I decided to go with the Task Sequence. The task sequence will include 3 tasks:

  1. Task #N+1 to run SCCM Package #1 in order to uninstall Application #1 if Application #1 exists.
  2. Task #N+2 to run SCCM Package #2 in order to uninstall Application #2 if Application #2 exists.
  3. Task #N+3 to run SCCM Application in order to install Application #3.

What should I put into the Task Sequence if I know the GUIDs of the Applications #1 and #2?

Thank you very much!

Application show available until system reboot

$
0
0

When I deploy an application and the user goto software catalog and click install...the application shows up in system center as available until the user reboots his computer then it starts the download and install......Why? what logs do I need to look at to see what is happening and causing the new application to not install on demand?

How to get Content Distribution status regarding a specific SCCM Application using powershell - sccm 2012 r2 ?

$
0
0

Hi,

We are creating/deploying Applications using SCCM powershell module...
It runs ok but I can not find how to get Content Distribution (between SCCM DPs) status
regarding a specific SCCM Application using powershell - sccm 2012 r2. 


Has someone did this programatically (Get-WMIObject …. or SCCM Powershell Module) ?
I can't find powershell commandlet from the sccm commandlet reference that does that.

The closest thing I can get to my need is this :

 (Get-CMDistributionPointGroup-Name'RDS_Distribution_Group').ContentInSync
  … returns the number of apps that are not yet in sync between the DPGroup members

 (Get-CMDistributionPointGroup-Name'RDS_Distribution_Group').OutOfSyncContentCount
  … returns true or false

 this doesn't answer my question when we have multiple content being synched... while
what I want to know is just the status regarding a single application content status update/sync 

 Thanks in advance.



MCTS Windows Server Virtualization, Configuration


How to make the Windows and Configuration Manager client install to a different drive path

$
0
0
Hi, I need to make the Windows and Configuration Manager client install onto an X drive though it installs to C:\Windows\CCM , the reason is we are implementing DeepFreeze, how would I do this?

SCCM Application Discovery not working

$
0
0

Dear All,

I have an issue with an application discovery in SCCM 2012 R2. I need to know if a licence file is already in place. Therefore i created an application discovery which uses in the folder path the parameter %ProgramFiles(86)%\application.

is this kind of discovery working or do i need to use hard coded pathes like C:\Program Files (x86)\application.

Thanks in advance for your answers.

Best Regards,

Udo


News from Forum

Java update and uninstall the old one failed

$
0
0

Hi all,

I'm looking to find the best way to update java on desktops. Unfortunately if I only run the last java exe/msi version I will have two java versions. I've tried to create a package and push java latest version with a option run a program first witch is a vb script to uninstall all java versions. Unfortunately vbs script is crushing with sccm. If I run this script manually is working.

Any other approach for this task?

Thanks.

Logs:

Successfully prepared command line "C:\windows\system32\cscript.exe" java-uninstaller.vbsexecmgr 02/12/2015 16:41:39 3760 (0x0EB0)
Command line = "C:\windows\system32\cscript.exe" java-uninstaller.vbs, Working Directory = C:\windows\system32\execmgr 02/12/2015 16:41:39 3760 (0x0EB0)
Created Process for the passed command lineexecmgr 02/12/2015 16:41:39 3760 (0x0EB0)
Raising event:
[SMS_CodePage(850), SMS_LocaleID(6153)]
instance of SoftDistProgramStartedEvent
{
AdvertisementId = "P0120004";
ClientID = "GUID:EA79FDBB-F478-40FC-9598-696EDBF74BA5";
CommandLine = "\"C:\\windows\\system32\\cscript.exe\" java-uninstaller.vbs";
DateTime = "20151202164139.440000+000";
MachineName = "BNW7-20427";
PackageName = "P0100029";
ProcessID = 5072;
ProgramName = "Uninstall Java";
SiteCode = "P01";
ThreadID = 3760;
UserContext = "NT AUTHORITY\\SYSTEM";
WorkingDirectory = "C:\\windows\\system32\\";
};
execmgr02/12/2015 16:41:393760 (0x0EB0)
Raised Program Started Event for Ad:P0120004, Package:P0100029, Program: Uninstall Javaexecmgr 02/12/2015 16:41:39 3760 (0x0EB0)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="P0100029",ProgramID="Uninstall Java", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30lexecmgr 02/12/2015 16:41:39 3760 (0x0EB0)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="P0100029",ProgramID="Uninstall Java", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30lexecmgr 02/12/2015 16:41:39 3760 (0x0EB0)
MTC task with id {6D6AB20E-A776-444D-AD24-C33A38CAAEB0}, changed state from 4 to 5execmgr 02/12/2015 16:41:39 3760 (0x0EB0)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="P010002A",ProgramID="Java 8.0.66", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30lexecmgr 02/12/2015 16:41:39 4892 (0x131C)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="P010002A",ProgramID="Java 8.0.66", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30lexecmgr 02/12/2015 16:41:39 2676 (0x0A74)
Program exit code 1 execmgr02/12/2015 16:41:393636 (0x0E34)
Looking for MIF file to get program statusexecmgr 02/12/2015 16:41:39 3636 (0x0E34)
Script for Package:P0100029, Program: Uninstall Java failed with exit code 1execmgr 02/12/2015 16:41:39 3636 (0x0E34)
Raising event:
[SMS_CodePage(850), SMS_LocaleID(6153)]
instance of SoftDistProgramErrorEvent
{
AdvertisementId = "P0120004";
ClientID = "GUID:EA79FDBB-F478-40FC-9598-696EDBF74BA5";
DateTime = "20151202164139.560000+000";
ExitCode = "1";
MachineName = "BNW7-20427";
PackageName = "P0100029";
ProcessID = 5072;
ProgramName = "Uninstall Java";
SiteCode = "P01";
ThreadID = 3636;
UserContext = "NT AUTHORITY\\SYSTEM";
};
execmgr02/12/2015 16:41:393636 (0x0E34)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="P010002A",ProgramID="Java 8.0.66", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30lexecmgr 02/12/2015 16:41:39 2676 (0x0A74)
Raised Program Error Event for Ad:P0120004, Package:P0100029, Program: Uninstall Javaexecmgr 02/12/2015 16:41:39 3636 (0x0E34)
Execution is complete for program Uninstall Java. The exit code is 1, the execution status is FailureNonRetryexecmgr 02/12/2015 16:41:39 2676 (0x0A74)
Requesting MTC to delete task with id: {6D6AB20E-A776-444D-AD24-C33A38CAAEB0}execmgr 02/12/2015 16:41:39 2676 (0x0A74)
MTC task with id: {6D6AB20E-A776-444D-AD24-C33A38CAAEB0} deleted successfully.execmgr 02/12/2015 16:41:39 2676 (0x0A74)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="P010002A",ProgramID="Java 8.0.66", actionType 10l, value Result:FALSE, user NULL, session 4294967295l, level 0l, verbosity 30lexecmgr 02/12/2015 16:41:39 2676 (0x0A74)
Deleting request for program Uninstall Java. Failing parent program Java 8.0.66execmgr 02/12/2015 16:41:39 2676 (0x0A74)

The script is:

Option Explicit

Dim wshShell, fso, strLogFile, ts, strTempDir, strTempISS, strUnString, tsIn, blFound
Dim strUninstLine, CLSID, search5, search6, search7, strJRE1, strDisplayName, strDisplayVersion
Dim strPublisher, strUninstallString, strJREUninstallString, strJREDisplayName
Dim search1, search2, search3, search4, strJREUninstallStringNEW, ret, strUninstCMD
Dim tsISS, strSetupexe, qVal, strComputername

qVal = 0

Set wshShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")

strComputername = wshShell.ExpandEnvironmentStrings("%COMPUTERNAME%")

If Not fso.FolderExists("C:\Logs") Then fso.CreateFolder("C:\Logs")
strLogFile = "C:\Logs\Java_Uninstall_" & strComputername & ".log"
Set ts = fso.OpenTextFile(strLogFile, 8, True)

ts.WriteLine String(80, "_")
ts.WriteLine String(80, "¯")
ts.WriteLine Now() & " - Java Runtime(s) uninstallation"
ts.WriteLine String(80, "_") & vbCrlf

'# Generate Registry extracts from 'Uninstall' keys.
PreFlight()

'# Kill Java Processes
KillProc()

strTempDir = wshShell.ExpandEnvironmentStrings("%temp%")
strTempISS = strTempDir & "\iss"
strUnString = " -s -a /s /f1"
Set tsIn = fso.OpenTextFile(strTempDir & "\uninstall.tmp", 1)

If Not fso.FolderExists(strTempISS) Then fso.CreateFolder(strTempISS)

blFound = False

Do While Not tsIn.AtEndOfStream
strUninstLine = tsIn.ReadLine
CLSID = Mid(strUninstLine, 73, 38)
search5 = Instr(strUninstLine, "JRE 1")
search6 = Instr(strUninstLine, "]")
If search5 > 0 AND search6 > 0 Then
strJRE1 = Replace(Mid(strUninstLine, search5, search6),"]","")
End If

On Error Resume Next

strDisplayName = wshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & CLSID & "\DisplayName")
strDisplayVersion = wshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & CLSID & "\DisplayVersion")
strPublisher = wshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & CLSID & "\Publisher")
strUninstallString = wshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & CLSID & "\UninstallString")

strJREUninstallString = wshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & strJRE1 & "\UninstallString")
strJREDisplayName = wshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & strJRE1 & "\DisplayName")

On Error Goto 0

'Search for presence of Java and Sun in DisplayName and Publisher
search1 = Instr(1, strDisplayName, "Java", 1)
search2 = Instr(1, strPublisher, "Sun", 1)
search3 = Instr(1, strDisplayName, "J2SE", 1)
search4 = Instr(1, strUninstallString, "setup.exe", 1)
search7 = InStr(1, strDisplayName, "Development", 1) + InStr(1, strDisplayName, "Java DB", 1)

If strJREUninstallString <> "" Then
blFound = True
'# JRE 1 found
strJREUninstallStringNEW = Replace(strJREUninstallString," -f"," -s -a /s /f")
ts.WriteLine Now() & " - " & strJREDisplayName
ts.WriteLine Now() & " - Uninstall String sent: " & strJREUninstallStringNEW
ret = wshShell.Run(strJREUninstallStringNEW , 0, True)
ts.WriteLine Now() & " - Return: " & ret
If ret <> 0 And ret <> 3010 Then qVal = 1

ElseIf search7 = 0 And search1 > 0 Or search3 > 0 And search2 > 0 Then
blFound = True
strUninstCMD = "msiexec.exe /x " & CLSID & " /norestart /qn"

If search4 > 0 Then
'# Old InstallShield setup found
Set tsISS = fso.OpenTextFile(strTempISS & "\" & CLSID & ".iss", 2, True)

'Create Response file for any Java Version
tsISS.WriteLine "[InstallShield Silent]"
tsISS.WriteLine "Version=v6.00.000"
tsISS.WriteLine "File=Response File"
tsISS.WriteLine "[File Transfer]"
tsISS.WriteLine "OverwrittenReadOnly=NoToAll"
tsISS.WriteLine "[" & CLSID & "-DlgOrder]"
tsISS.WriteLine "Dlg0=" & CLSID & "-SprintfBox-0"
tsISS.WriteLine "Count=2"
tsISS.WriteLine "Dlg1=" & CLSID & "-File Transfer"
tsISS.WriteLine "[" & CLSID & "-SprintfBox-0]"
tsISS.WriteLine "Result=1"
tsISS.WriteLine "[Application]"
tsISS.WriteLine "Name=Java 2 Runtime Environment, SE v1.4.0_01"
tsISS.WriteLine "Version=1.4.0_01"
tsISS.WriteLine "Company=JavaSoft"
tsISS.WriteLine "Lang=0009"
tsISS.WriteLine "[" & CLSID & "-File Transfer]"
tsISS.WriteLine "SharedFile=YesToAll"
tsISS.Close

strSetupexe = Left(strUninstallString, search4 + 9)
strUninstCMD = strSetupexe & strUnString & Chr(34) & strTempISS & "\" & CLSID & ".iss" & Chr(34)
End If

ts.WriteLine Now() & " - " & strDisplayName & " - Version: " & strDisplayVersion
ts.WriteLine Now() & " - Uninstall String sent: " & strUninstCMD
ret = wshShell.Run(strUninstCMD , 0, True)
ts.WriteLine Now() & " - Return: " & ret
If ret <> 0 And ret <> 3010 Then qVal = 1
End If

Loop

tsIn.Close

If Not blFound Then
ts.WriteLine Now() & " - No Java Runtime versions found installed."
qVal = 99
End If

ts.WriteLine String(80, "_")
ts.WriteLine String(80, "¯")
ts.Close
fso.DeleteFolder(strTempISS)
fso.DeleteFile(strTempDir & "\uninstall.tmp")

WScript.Quit(qVal)

Sub PreFlight()
'# Creates temp files containing extracts from registry 'Uninstall' keys.
Dim wshShell, fso, sTemp
Set wshShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
sTemp = wshShell.ExpandEnvironmentStrings("%temp%")
wshShell.Run "REGEDIT /E %temp%\registry.tmp HKEY_LOCAL_MACHINE\SOFTWARE\microsoft\windows\currentversion\uninstall", 0, True
wshShell.Run "cmd /c type %temp%\registry.tmp | find /i ""{"" | find /i ""}]"" > %temp%\uninstall.tmp ", 0, True
wshShell.Run "cmd /c type %temp%\registry.tmp | find /i ""JRE 1"" >> %temp%\uninstall.tmp ", 0, True
If Not fso.FileExists(sTemp & "\uninstall.tmp") Then
ts.WriteLine Now() & " - No input - %temp%\uninstall.tmp Reg extract not created."
ts.WriteLine String(80, "_")
ts.WriteLine String(80, "¯")
ts.Close
WScript.Quit(1)
End If
End Sub

Sub KillProc()
'# kills jusched.exe and jqs.exe if they are running. These processes will cause the installer to fail.
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run "Taskkill /F /IM jusched.exe /T", 0, True
wshShell.Run "Taskkill /F /IM jqs.exe /T", 0, True
End Sub

 


SCCM 2012 application stuck at 0% downloading

$
0
0
If content on distribution point is not ready and a client start downloading an application, Software Center says "downloading (0% complete)", that is ok, but it seems to be stuck there, even when the DP is ready, the only solution I have found is a restart.

Many thanks in advance if anyone has a solution to this problem.

Deployment always fails on first time, but succeeds on retry.

$
0
0

Hi,

I've created an application deployment for .Net 4.6 with simple installation: "NDP46-KB3045557-x86-x64-AllOS-ENU.exe" /q (for system, run wether user is logged on or not).
Detection method is to check if registry HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full

"release" is equal to 393297.

I've deployed this as required and everytime device discovers this deployment and tries to install the application it instantly fails with error:

Device: xxx

User: (system)

Error Code: 0x4005 (16389)

Error Description: Unknown Error (16389)

Description: Action failed

When I click on "retry" in software center it always proceeds to downloading and installing it successfully.

What could be the reason of this failure on first try?



Uninstall Lync 2010 client and install Lync 2013

$
0
0
I need to create an application to uninstall Lync 2010 and install Lync 2013 client.  The Lync 2013 client by design does not uninstall the 2010 client.  What is the best way to do this in SCCM 2012 SP1?

Uninstallation of Skype app from windows 8.1 clients using SCCM 2012

$
0
0

Hello,

I was hoping that it would prove easy to remove the above but it's not the case.

I thought I would find the GUID linked to the Skype msi and perform removal this way via command file.

However, I have not found the GUID for Skype. Neither does an entry appear in Add/Remove programs.

I reckon that Skype is installed as an application and I see the tile icon on startup.

Browsing on a client I see a directory under C:\Program Files\WindowsApps\Microsoft.SkypeApp_3.1.0.1016_x86__kzf8qxf38zg5c and a whole load of stuff in there.

Can anyone offer me any guidance ?

Thanks...

Best Practices for removal of retired software from ConfigMgr 2012

$
0
0

Hi experts.

I have made this a discussion rather than a question as I am really after other experts opinions regarding the removal of retired applications from ConfigMgr 2012.

The scenario we have is a list of some 150+ retired applications and a lack of space on the source location to keep them with new apps being added weekly.  Obviously, some of these apps would be superseded by others and may be still installed on some devices, especially if they had only been retired a couple of months ago with no remediation work to remove the apps from the devices.

I'm really after some helpful tips that could provide assistance for me and anyone else who reads this thread and is tackling the same or similar scenarios, so that we don't fall into some obvious potholes during the process. 

As i see it, the following is what I would consider the process:

  1. Run a scan on all devices to locate any installed "retired" applications.
  2. Remove any deployments of the retired applications (should be already done if the apps are retired, but best to check).
  3. Run the uninstall (or install of the superseding software if applicable) to remove the retired application.
  4. Remove retired application's content from all distribution points.
  5. Delete the source files from the source location.
  6. Delete all the deployment types.
  7. Delete the application

One step I haven't included as I believe it should have been included as part of the initial retiring process is:

  • Checking all Task Sequences for references to this retired application

Is anyone able to provide some additional helpful steps that they feel have been overlooked or missed off of the above list?  Any "things to avoid" or "be careful when doing this" comments?

Thanks

Dean


SCCM Clients only seeing Packages not Applications unless the deployment (APP) is removed and deployed again.

$
0
0

Hi All,

I have a number of machines that show they have deployments against them in the management console but but they do not display in software center.  If i delete the deployment and then deploy it again then they show in software center.  How can i find out why deployments are not displaying on some machines?

The apps are not displaying in Appdiscovery.log.  

There is no OS detection against the applications.

I have deleted a couple from SCCm and rediscovered them and they produce the same result.

The client has been reinstalled / repaired and same result.

Any ideas?

Viewing all 4762 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>