Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all 629 articles
Browse latest View live

Help! MSIEXEC Uninstall via SCCM does not work on manual install program

$
0
0

Hi,

I have this scenario:

1.  If I uninstall a program using either msiexec /x {code} /qb or via the program definition "per system uninstall" I have success uninstalling a program that was deployed via SCCM.

However, if I manually reinstall the program again manually using the same msi program and re-run the uninstall again via SCCM, it does not work anymore.  The task sequence runs but I get a 1605 error which means product could not be found. I doubled check that I have the correct Product Code in the registry but to no avail.

I have tried both program and task sequence, it seems that the advertisement runs but the program is not respected.

Anyone has a suggestion how to do this? I have tried repackaging the program using BAT, CMD, Task sequence ms dos prompt or regular task sequence but the uninstall doesn't work anymore on a program I installed manually.

Please help! Thanks!


Problem distributing packages

$
0
0

I dont understand the cause of my problems. I am not seeing anything in the sender.log (Primary) or the despooler.log (secondary) that really points me one way or the other.

I dont see anything like this in the desplooer.log:

Received package RC100111 version 2 SMS_DESPOOLER 8/8/2013 8:05:08 AM 2544 (0x09F0)
Use drive E for storing the compressed package. SMS_DESPOOLER 8/8/2013 8:05:08 AM 2544 (0x09F0)
Package RC100111 (version 1) exists in the distribution source, save the newer version (version 1). SMS_DESPOOLER 8/8/2013 8:05:08 AM 2544 (0x09F0)
Stored Package RC100111. Stored Package Version = 1 SMS_DESPOOLER 8/8/2013 8:05:12 AM 2544 (0x09F0)
Forward package status for pkg RC100111 to site RC1 SMS_DESPOOLER 8/8/2013 8:05:12 AM 2544 (0x09F0)

Also dont see Finished sending SWD package RC100111 version 2 to site S01 SMS_LAN_SENDER 8/8/2013 8:05:03 AM 11976 (0x2EC8) for the packages failing to install.

Could someone point me in the direction of what I should be looking for in the sender.log and despooler.log?

These servers do have other packages installed. More than 100 of 132.

Thanks.



Deploying packages to secondary site

$
0
0

We had to rebuild a secondary site.   I'm using the Copy Package wizard within the admin console to get the packages out there.   484 packages have now been copied to the SMSPKGD$ on our secondary site.  But the Source has 493 packages.   I've notice on my D:\ drive on the secondary site I have some .TMP Folders from yesterday.   They won't seem to go away so I'm thinking something might be stuck.

What log files do you look at when using the Copy Package Wizard?  


mqh7

[SOLVED] Errors Executing Batch Files for Post Application Installation Configuations

$
0
0

I'm super new to SCCM - still trying to figure a lot of things out.


Nearly all of our applications have post installation steps like applying a registry configuration (via either `regedit /s` or `reg add`), creating directories, copying files (license file, configuration file) and so on.  Since I've already created a bunch of applications, leveraging SCCM's nifty little feature that grabs all the app info from the MSIs, I'm now looking for how to accomplish 'the next step': applying the proper configurations.

I realize there are a variety of ways to accomplish this, but, one method I've seen time & time again is to create the application via the MSI, and then afterward change the command line to whatever script I want to run; which does the installation plus the extra actions.

Here's the process I've been following that's resulting in errors in SCCM but *not* in the script [read: batch file] I'm calling:

  1. Build the batch file that calls the installer and does the post installation configuration:
    1. Calls setup file (actual MSI or setup.exe etc) via relative path and any necessary parameters/arguments etc: "%~dp0Full_Installer\setup.exe" /S /v"/qb SERIALNUMBER=12345 /l*vx c:\Logs\ApplicationName.log"

    2. Performs a variety of operations: xcopy /r /ymd/mkdirreg add/deleteregedit /s; Each operation is redirected to >>!logfile! 2>>&1

  2. Test each batch file the follow this process:
    1. confirm no errors on screen during install
    2. confirm no errors in logs after install
    3. confirm application successfully installed, which means:
      1. checking the location of where the app is expected to install to verify its there and it works
      2. checking that all applicable changes were made successfully
        1. so I'm looking for registry entries, configuration files, directory creation etc - everything in the batch
      3. checking Programs and Features to validate its presence
  3. I repeat this process (all of Step 2 above) for the uninstall batch file to confirm it too completes successfully

With the batch files tested & confirmed working

  1. I create new Application in SCCM
  2. Select Windows Installer (*.msi file)
  3. Choose msi file from \\unc\path\application\fullinstaller\file.msi
  4. Make any necessary adjustments to the General information screen
  5. Close Application Wizard
  6. Edit Properties of newly created Application
  7. Go to Deployment Types tab
  8. Select the MSI entry in there & click Edit
  9. Go to the Content tab & alter directory
    1. During creation its pointed to \\unc\path\application\fullinstaller\file.msi
    2. While not always the case, the batch file actually lives one directory up in \\unc\path\application, so I'm adjusting it to point to that directory. instead
  10. Go to Programs tab
  11. Change Installation program to the batch file: install_myapp.cmd
  12. Change Uninstall program to the batch file: uninstall_myapp.cmd
  13. Click Apply & click OK

Ok, now that all my changes are made, I need to get this into the DP:

  1. I Deploy Content (if I haven't already done so)
    1. Right click on Application > Distribute Content > Add DP > Continue through Wizard
  2. Redistribute Content (especially if edits were made to existing applications)
    1. Right click on Application > Properties > content Locations > Select location > Click Redistribute
  3. Verify deployment/redistribution via Content Status > View Status
  4. Wait a little while (usually just a few minutes <5)

With that now complete, I'm ready to test the install/uninstalls via SCCM.  So I go to client workstation, load up Software Center & Locate application & click 'Install', and this is where things get strange.

  • Misreported Failure
  1. It successfully downloads but installation fails with a variety of errors (see below):
    1. Unable to make changes to your software.
      There was a problem applying changes to the software.  You can try again.  Or, if the problem continues, the information that is shown in the following section can assist your help desk in troubleshooting.
      Click OK to return to Software Center
      More Information
      The software change returned error code 0xVARIES(n).
  2. I check "Program Files (x86)" and I see the program installation directory & its populated with files.
  3. I check "Programs and Features" and I see the application listed.  I can uninstall, change & repair.
  4. I restart software center, refresh it a few times and the application is still listed under 'Available Software' and 'Installation Status'.
  5. If I click 'Retry' it immediately disappears from view
    1. What that means is: If I'm looking at 'Available Software' or 'Installation Status', the application vanishes from that 'tab', and appears under 'Installed Software' within 'Software Center'
  6. I reviewed the MSI manually but saw no "return value 3" entries; Passed the same log through WiLogUtil.exe and its not isn't showing any problems either.

So it actually did install successfully, yet something 'failed', or was translated as a failure, causing Software Center to believe the install failed.

  • Outright Failure
  1. With application 'X' installed, from the 'Installed Software' tab I click 'Uninstall' and like before I get an error:
    1. Unable to make changes to your software.
      There was a problem applying changes to the software.  You can try again.  Or, if the problem continues, the information that is shown in the following section can assist your help desk in troubleshooting.
      Click OK to return to Software Center
      More Information
      The software change returned error code 0xVARIES(n).
  2. I check "Program Files (x86)" and the other tasks - its still installed and everything is still in place.
  3. I don't create uninstall log files so I don't have anything to view, but again: running the uninstall batch file manually results in success.

I'm quite perplexed!

As I mentioned above, the install & uninstall errors vary:

  • The software change returned error code 0x1(1).
  • The software change returned error code 0x4(4).
  • The software change returned error code 0xFF(255).
  • The software change returned error code 0x87D00213(-2016411117).
  • The software change returned error code 0x87D00325(-2016410843).
  • The software change returned error code 0x87D01107(-2016407289).

Running the batch file to install/uninstall completes without error so either something unexpected is happening that SCCM interprets as an error, or, I made a mistake in the way I created the application.  I want to believe its something very simple that I'm missing or just not doing right.

When installing/uninstalling applications via Software Center, I'm looking at task manager to view the actual command line being run for the install, and in some situations, its incorrect.  In other situations the command line is correct, but, the actual install batch file (in c:\windows\ccmcache\random) is not the most recent one and/or its missing additional files that were recently added.


Perhaps this is the source of all my problems: The DP is not up to date/doesn't contain the latest changes made to the batch files.  (Because remember, as I mentioned above, the install/uninstall batch files currently work without issue when executed manually or in our current deployments.)

 

So maybe my question should be: If the below isn't the proper method for 'refreshing' the DP with the latest application data (updates to the install package, updated files etc), what is the proper method for doing so?

  1. Right click on Application > Deploy Content  & complete wizard (if I haven't already done so)
  2. Right click on Application > Properties > Content Locations > Select location > Click Redistribute > Click OK

Lastly, I'm a big log person.  All the batches log each operation and redirects the results (1> and 2>) to a log file for review.  It makes it super simple to see where something failed down the road.  SCCM includes a wealth of log files for various operations, and, in my humble opinion, its great but a bit overwhelming!

I know that the client logs are all stored in C:\Windows\CCM\Logs but there are over 100 logs in there and its not inherently obvious which log corresponds to which component or action of CM.  So, all that said, I'm happy to comb through with cmtrace to troubleshoot deeper & get a better understanding of the process, but I'm in need of help finding a good place to start.

  • Is there a resource available that provides a breakdown/definition of each of the logs in C:\Windows\CCM\Logs?
  • Is there something similar for the logs on the SCCM server itself?


SCCM BITS will apply to local subnet?

$
0
0

hi,

If apply SCCM BITS policy to 5Kbps to client, will the BITS settings also apply to client PC if the client PC copy file on within same subnet? (Client PC connect SCCM server need through WAN link)

Thanks...KEN

How to deploy winzip multiuser license from SCCM.

$
0
0

Hi

Need to know how can we deploy Winzip multiuser luicense from SCCM.

i have tried coping the  

Regards

Sushain Kapoor


Regards Sushain KApoor

Edit a text file with a varible.

$
0
0

I am deploying some software and when it gets to the end I need to prompt the user for input and then edit a text file based on that input. I currently have a VBS script that does this although I am unsure what the best way to do this through SCCM is.

Anyone out there done something like this before?

Patches failed to Install

$
0
0

Dear All

I have a peculiar problem for some clients having healthy SCCm clients. I am able to deploy advt on them but when patches deployment comes. It fails.

Also their are few client where we install sccm and all inventories and tabs are appropriate in control panel -> configuration manager, still showing no client in SCCM console. 

Troubleshooting Done

Recreated WBEM repository and started services -- no success

repaired the sccm client - no suuscess

uninstalled and reinstalled sccm client -- no success

manually installe patches on the system and recreated repository and reranm manually the inventories, still patches fail to deploy status in the SCCm enforcement status report. -- no success

Suggestion Required

What particular log to be checked for status of patches deployment

further more troubleshooting approach i should adopt, in addition to steps what i have already done.

Is the troubleshooting approach adopted by me correct.

What are the best practises for troubleshooting a client i am not able to send\delpoy from sccm.

Regards

Sushain Kapoor


Regards Sushain KApoor


deploy to users

$
0
0
We have a GROUP in AD.  Within this GROUP we have 5 test users.   How do I write a collection query so it populates with the 5 users from this GROUP?   

mqh7

SCCM 2007 Task Sequence Software Installs - Question

$
0
0

Hi all, firstly apologies if this question is in the wrong place!

I'm trying to create a step in our task sequence to install a piece of software for a group of machines with a certain computer name. I can set the task sequence up to install the software on all machines, but from here, how do i change the step to install only the machines i need it on?

Example:

Our estate has numerous sites around the country - A, B, C and D. Each machine on our estate is prefixed with the site name when it is built e.g. A-PC-01 or B-PC-34. I want to be able to build a PC and install this specific software ONLY for sites A, B and C yet not touch D as people at site D do not use the software.

My build/task sequence that is currently in place works fine, just need to add this step in. We have already completed the roll out of the software to the sites, so this is purely for new builds.

Any ideas would be great and much appreciated.

Thank you

The software could not be found on any servers at this time.

$
0
0
I installed SCCM 2012 Beta 2 and have followed many online videos to set this up.  The clients have been installed fine, and i have created several packages (Firefox 4.0) following several instructional video's.  The software package shows up fine in the software center on the client, however when i click the install button, i get the following error.  Unable to start software change.  There was a problem changing the software. The software could not be found on any servers at this time.  I have checked the distribution points and everything looks like its setup correctly.  I believe the permissions on the directory are setup correctly also, Authenticated Users have Read and Execute permissions on the directory where the firefox.exe is saved.  

distribution manager is throwing error

SCCM Reporting site used for web delivery

$
0
0

I'm trying to use the SCCM reporting site as a tool to advertise software out to our clients instead of having to access to cm console every time.   Has anyone seen this before and have any idea on how to get this setup. 

Thanks

J

Limit Forefront Endpoint Protection's collections

$
0
0

Hi,

Somebody know how I can limit Collections of Forefront Endpoint Protection?

Thanks in advance.

Finding Local Distribution Point From Client Machine VB/Powershell

$
0
0

Hi Sccm Gurus,

Im trying to find the distribution point server name from the sccm client machine thru script (VB / PowerShell). I need this info for running a customised tool to fix issues and for manual installations in client machines.

As I have found some threads in the same topic, i have gone thru those and didn't find very useful info except checking locationservices.log file which i have tried thru script for finding DP name. It works fine sometime and It fails if the log file doesn't have any entry with DP server names.

I want a sureshot way of finding DP name for the client. May be a query in server to find DP name / query to find MP and again another query in MP to find DP.. something kind of. Even is there anywhere the DP info is stored in the machine that also will be useful.

Please help me to find the fix for the above obstacle. Even there is no script for it, Give me the way to access, i will try to automate it. Thanks.


- Vijay Murugappa - ### If you wouldn't be forgotten as soon as you are dead, either do something worth writing, or write something worth reading ###


DMZ software updates not downloading.

$
0
0

Hi,

I am tring to get software updates working on DMZ.

Ports are opened cocrrectly.

SLP working correctly.

The only error I get is on the DataTransferService.

It says,

DTSJob {CCC47DD8-3B5A-4A1D-B2A3-EB2C479ABC5D} in state 'DownloadingManifest'.

DTSJob {D22FBF2A-C4C0-4DCC-B85C-D9E5399A1892} in state 'DownloadingManifest'.

Error retrieving manifest (0x80070035).  Will attempt retry 5 in 480 seconds.

Error retrieving manifest (0x80070035).  Will attempt retry 5 in 480 seconds.

Any ideas?

PCK file not contains all files

$
0
0

Hi Experts,

(sorry, I know this is for SCCM 2007 forum, but we are in the progress of migration from 2003 to 2007... hope you still can help)

We have a SMS2003 server which sometimes distributed incomplete package to the distribution points. We found the PCK files are not containing all the files from the source. But if we refresh the distribution point again, the PCK is complete. We have no idea when would this happen, and the sms logs are purged all the times.

Wonder if any of you have seen this type of problem?  What is the root course and how to prevent it happen again.

Thanks

SPC


Microsoft Patch's not loading - Error 5 : Access is denied. The Operation was cancelled.

$
0
0

Trying to install a bunch of old patchs from Microsoft and they keep failing (23 different patchs)  When I look in the updspapi.log I see the following - 

#-336 Copying file "c:\windows\softwaredistribution\download\867447292cadbe3f2a4fde7df0d7206e\SP2QFE\win32k.sys" to "C:\WINDOWS\system32\win32k.sys" via temporary file "C:\WINDOWS\system32\SET246.tmp".
#W190 File "C:\WINDOWS\system32\SET246.tmp" marked to be moved to "C:\WINDOWS\system32\win32k.sys" on next reboot.
#E236 The file "C:\WINDOWS\system32\SET246.tmp" could not be queued for delayed rename to "C:\WINDOWS\system32\win32k.sys". Error 5: Access is denied. The operation was cancelled.

This is just one patch that is failing....  The system32 folder is in read only but we are installing these with admin rights.  We have tried downloading the patch and manually trying to install, we have tried the Microsoft website windows update and have tried shavlik 9.0 and come up with the same thing.  Anyone know which permissions its having a issue with?  Ideas?

Invalid Executable File Copy

$
0
0

Im trying to create a very simple program to copy a shortcut to the Windows 7 Startup Folder.  I created a batch file, that works, and works through SCCM however it is being reported in SCCM as a failure. So now I am trying to just enter a command in the Command Line field in SCCM and it is failing with Invalid Executable File Copy.  

Here is what I tried:

copy "\\Server\sources\DesktopInfo\DesktopInfo.lnk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" /y

Copy DesktopInfo.lnk "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" /y

Copy "DesktopInfo.lnk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" /y

I guess I do not understand exactly how this command line field works.  


TM

Install Lync client setup to desktops using SCCM 2007.

$
0
0

Team,

I need to install Lync clients on all the desktop.

So, as a test, i have selected 10 machines with different OS flavors to install the software.

I have created a collection to match those 10 machines using Netbios and it was successful. 

I have a two MSI package of LYNC client with XP and Windows 7 - So how to do a installation to the collection silently?

How the machines will identify the different packages?

Could anyone please let me know the complete installation process of this.

Thanks in Advance,

Dj

Viewing all 629 articles
Browse latest View live