Send state message to SCCM after uninstall of SCCM client

Hi Everyone,
I have a batch file to uninstall the client from PC's, how would I could I send a state message back to SCCM to say the uninstall was successful? Asking because the console doesn't come back with success info, just waiting, and accepted on the program.....as
the client is uninstalled etc.
Currently running a simple ccmsetup.exe /uninstall as below, thanks for any help in advance.
I know there's a Vb script to force any existing messages to be sent, but as the CCM WMI will not exist, there would be nothing to send, right?
And I have to do this for a POF......Is this even possible??I could write to a log file with the name of the computer that just uninstalled, but really wanted to use a report.....or if there's another way to uninstall client and get the info in SCCM then
please let me know, it's been a very long few days..... cheers :)
@echo off
echo Please Wait while the system is uninstalling Microsoft's SMS/SCCM Client.
REM 'echo Checking for SCCM 2007 client...
REM 'IF EXIST %windir%\System32\ccmsetup\ccmsetup.exe GOTO DEL07
REM 'echo No SCCM 2007 client found.
echo Checking for SCCM 2012 client...
IF EXIST %windir%\ccmsetup\ccmsetup.exe GOTO DEL12
echo No SCCM 2012 client found.
echo Checking for SMSCFG file...
IF EXIST %windir%\SMSCFG.INI GOTO DELINI
echo No SMSCFG file found.
echo All software already removed or no client installed.
GOTO END
REM :DEL07
REM echo Found SCCM Client v2007. Removing...
REM %windir%\System32\ccmsetup\ccmsetup.exe /uninstall
REM RD /S /Q %windir%\System32\ccmsetup
REM RD /S /Q %windir%\System32\ccm
REM RD /S /Q %windir%\System32\ccmcache
REM echo SCCM Client 2007 removed.
REM IF EXIST %windir%\ccmsetup\ccmsetup.exe GOTO DEL12
REM IF EXIST %windir%\SMSCFG.INI GOTO DELINI
REM GOTO END
:DEL12
echo Found SCCM client v2012. Removing.
%windir%\ccmsetup\ccmsetup.exe /uninstall
REM RD /S /Q %windir%\ccmsetup
REM RD /S /Q %windir%\ccm
RD /S /Q %windir%\ccmcache
echo SCCM Client 2012 removed.
IF EXIST %windir%\SMSCFG.INI GOTO DELINI
GOTO END
:DELINI
echo SMSCFG file found. Removing...
del /F %windir%\SMSCFG.INI
echo SMSCFG file removed.
GOTO END
:END
echo Done!
rem pause
exit
many thanks

Don't you think this is a bit of a silly question? The client is what sends state messages therefore what would you expect to "send" the message that the client was removed? Seems about as effective as putting the address on the inside of an
envelope and expecting the post office to just know where to send the mail.
John Marcum | Microsoft MVP - Enterprise Client Management
My blog: System Center Admin | Twitter:
@SCCM_Marcum | Linkedin:
John Marcum

Similar Messages

  • Anyone have a problem sending text messages being delivered after few minutes up to five minutes?

    Has anyone have a problem sending text messages and the messages won't get delivered after few minutes? From time to time I would have this problem and it's annoying.  I would expect someone to receive it by then and response to my text right away.  But when I look up the text it hasn't been delivered and it's in the process.  I would hear that the message get delivered after few minutes? What gives? I never had a problem with my iphone 4 i think? Now with iOS 5 it let's me know whether it is delivered or not.  This new feature is awesome but disappointing when I know my text hasn't been delivered right away.  I'm not sure if it's the software or my iphone 4s or my carrier? anyone suggestions?  Thanks!!

    I have the same problem when sending iMessages.. Wasnt sure if it was apple or Sprint? But it happens VERY often and I end up having to send it as a text message instead

  • Cannot send text messages on iphone4 after updating to ios7

    After updating iphone4 with ios7 , I cannot send text messages

    Hi Dargo31,
    Thanks for using Apple Support Communities.  This article has steps to try if you're unable to send text messages on your iPhone 4:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Cheers,
    - Ari

  • HT1688 why cant i send picture messages any more after upgrading to IOS 6

    Yesterday my iphone for some odd reason turned to reovery mode and I was forced to restore&update my iPhone to the iOS 6. Now I can no longer send picture messages. i would like to go back to iOS 5.1 because the 6 is also draining out my battery and also for some reason my phone, again like yesterday, went into Recovery mode!  It is really fustrating. I spoke with AT&T and I am still on  the unlimited SMS&MMS plan. I dont know what the cause is of all these issues but I hope someone can fix it fat because every restore takes up 3-4 hours

    I've never been able to share FaceBook posts nor seen the option using the iOS FaceBook app regardless the FaceBook app and iOS version. I can Like and I can Comment, and if I select a link or video to view under iOS 6, I can use the Share option for the link or video, but not for a post.

  • Error message in Itune, after uninstalling and reinstalling of itune

    I have uninstalled the itunes by following the instructions in apple website, removing intunes, quicktime and other components in my computer. Then after I reinstalled the itunes 10, it doesnt launch the itunes and gives me a message that "The itunes application could not be opened. An unknown error occured (-50)". I would very much appreciate if someone could explain the solution to this problem. Thanks.

    Doublechecking something before proceeding. Do you have a 32-bit or 64-bit Windows 7?

  • Problem solved in sending text messages in 1110i

    last week my 1110i cannot send text messages and i did everything to fix it..i called up my network provider and nokia care center..both of them told me that i just have to restore all my settings and of course i did that..and still my phone cannot send text messages..so after a week of not sending text messages i went to nokia center and waited for like 2 hours because of the long queue..when i got to the customer service guy..he just scanned my phone or like 30 seconds and asked me if he can erase all my sent messages and let me try to send text messages..and guess what?!my jaw dropped because i did send a text message..HE TOLD ME TO JUST ERASE ALL MY SENT MESSAGES AND THEN I CAN ALREADY SEND TEXT MESSAGES..that's it..**bleep**?! all this time i thought it was a software problem or what..they should have told me in the phone that it was an option..just for info guys..thanks for the time..

    hey! thanks for this post! it saved my life! wahahaha ^_^ Message Edited by michaels on 12-Sep-2007 10:36 AM

  • HT2292 I am using win vista and have installed itunes for my ipod shuffle four years back. now I have purchased iphone 4, and trying to reinstall itunes after uninstalling my earlier itunes i always get a message that error in installation. kindly help

    I am using win vista and have installed itunes for my ipod shuffle four years back. now I have purchased iphone 4, and trying to reinstall itunes after uninstalling my earlier itunes i always get a message that error in installation. kindly help

    You might find this article helpful: http://support.apple.com/kb/TS3694
    It has the error range of 3000's which states
    Errors 3000-3999 (3002, 3004, 3013, 3014, 3018, 3164, 3194, and so on): Error codes in the 3000 range generally mean that iTunes cannot contact the gs.apple.com server on ports 80 or 443. This may be because out-of-date or incorrectly configured security or firewall software is interfering, an old version of iTunes is installed, an entry in your hosts file redirecting requests to gs.apple.com (see error 1004 above), or because of your Internet proxy settings. If you are using a proxy, try without using one or with a known-good network. If that does not resolve the issue, follow iTunes for Windows: Troubleshooting security software issues. Error 3014 may indicate that you need to free up more disk space on the computer before trying to restore again. Error 3194 most likely indicates you do not have the latest version of iTunes installed Update to the latest version of iTunes. 

  • After I upgraded my iphone 4 with the ios 7.1.1 it locks up sending text messages.  It will send a few, then mid conversation I will have to turn my phone off and back on, sometimes a few times, before it will allow me to send or receive messages again.

    After I upgraded my Iphone 4 with the ios 7.1.1 it locks up while sending text messages.  I can usually send a few then will have to restart my phone(often more than once) to get it to send and receive messages again.  I have done a back up and complete reset and that has not fixed the problem.    Have been told that the ios 7.1.1 just isn't compatible with the Iphone 4 so that's why it is locking up so often, but I am hoping someone else may have a better answer since it can't be undone.  Thanks!

    7.1.1 is certainly compatible with the iPhone 4. Just try a reset first.
    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Reset your device: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • HT3529 Have an Iphone 5 and had to restore.  I recieved text message and replied after restore but they are no longer in thread.I did not erase. past messages still exist.  Did sending party delete them? If so can I retreave them?

    Have an Iphone 5 and had to restore.  I recieved text message and replied after restore but they are no longer in thread.I did not erase. past messages still exist.  Did sending party delete them? If so can I retreave them?

    No, they probably got lost out there somewhere. They're gone.

  • After years of owning all things Mac, I am finally trying to use iChat, and can't get it to work. I see my buddy, but all I can do is send a message--the video and audio chat icons are gray, as is inviting to a video chat under Buddies.

    After years of owning all things Mac, I am finally trying to use iChat, and can't get it to work. I am using gmail, and I see my buddy (no camera icon next to her name), but all I can do is send a message--the video and audio chat icons are gray, as is inviting to a video chat under Buddies. My buddy has the same problem as I.  We are able to do video chat through gmail, but I had hoped to use iChat.  I am using OS 10.6.8, iChat v. 5.0.3.  What am I missing?

    HI,
    iChat will Video chat to another iChat in a Jabber Buddy List (Google run a Jabber server for GoogleTalk)
    However it will not Video to the Web Page login to iGoogle or the Web Mail Page login.  (where people can Google Chat as it were in a  Web Browser).
    Nor does it video to the Google Talk Stand alone app for PCs or any other Jabber apps on any platform.
    iChat uses a connection Process called SIP (Session Initiation Protocol) which is also used by other VoIP devices.
    Jabber/XMPP invited the Jingle Protocol for Jabber Applications.
    Google have included this in their Standalone app and the Plug-in for Web Browsers on both PCs and Mac (you can get this as a Standalone Plug-in or as part of Chrome)
    More on this here  This article has been changed several time in the recent months.  It now claims a greater involvement by Google in writing the Jingle Library (Although now Google's version does not work with the others)
    This tends to mean that using the web Login to Google to Chat also cannot video chat to other Jabber apps that are using Jingle.
    If your Buddy is using iChat then check the Video Menu has two items to Enable Camera/Video chat and Microphone/Audio chats are ticked.
    In the View Menu the Show Status Items should be ticked (Selecting them toggles the tick and the function On or Off)
    It could be Internet speed but at this stage I would doubt this at this stage.
    10:27 PM      Saturday; January 21, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I cannot use  my iPhone to make calls or send text messages after upgrading to ios 7

    I just upgraded to ios7 and I can no longer  make calls or send text messages.  The screens seem to be locking.   Does anyone know what I can do to fix it?

    My wife is having the exact same issue after updating to the new iOS 8.1.1 and we've tried all the same steps even restoring the phone as a new phone. We've contacted our service provider and they've told us to go to apple to potentially "remove" her serial number from their servers to allow it to work properly on the service we have. We are desperate as purchasing a new phone right now is not an option and she desperately needs her phone for work and life.
    Iphone 5 8.1.1

  • After uninstalling and downloading the latest Abobe Flash player, I can no lnger play youtube videos. I get the message "blocked plug-in". It works in Firefox, but not Safari.

    After uninstalling and downloading the latest Abobe Flash player, I can no lnger play youtube videos. I get the message "blocked plug-in". It works in Firefox, but not Safari?

    Frostbitblue,
    in Safari’s Preferences, select its Security tab, and make sure that its “Internet plug-ins: Allow Plug-ins” checkbox is checked.

  • Even after uninstalling, reinstalling Firefox, the Firefox profile folder is empty, and I get the message "Firefox is still running and not responding close firefox...

    Even after uninstalling, reinstalling Firefox, the Firefox profile folder is empty, and I get the message "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." I have followed all the directions I can find, on my computer and Firefox Support. Still, the same message comes up, and "firefox" is not shown in my Windows Task Manager.
    What can I do?

    Delete the profiles.ini file and let Firefox create a new default profile.
    * http://kb.mozillazine.org/profiles.ini_file
    * http://kb.mozillazine.org/Profile_folder_-_Firefox#Files_and_folders_outside_the_profile_folder

  • TS5185 Hi After I have report a junk message I coudl not get Imessge from other iphone. and could not send any message in blue color but green which need to pay for.

    Hi After I have report a junk message to 7726, I coudl not get Imessge from other iphones. and could not send any message in blue color but green which need to pay for. Does Apple blocked my imessage ? I have checked the setting. imessage is on.
    Thanks,
    J

    Make sure that your date and time settings and time zone are accurate (Settings - General - Date and Time). Reset your phone to 'Set Automatically' and then try signing in again - this worked for me.  My date/time settings were not automatic (candy crush cheats!!).

  • Enforce to send the messages pending, after the Time To Deliver is changed

    JMS Queue is being used to send data from our database to the headquarters’ database.
              Our organization considers using "Time To Deliver Override" during the scheduled downtime of the headquarters’ database. For example, when our admin is informed by the headquarters' admin that downtime is scheduled, our admin can change "Time To Deliver Override" from -1 to 1200000 (20 hrs) in WebLogic Consol. Then, when the database is back, our admin will reset the value to -1.
              It is simple and quick. However, I realized that the messages pending will not processed for the “Time To Deliver” which was configured when the message was added.
              Can WebLogic enforce to send the messages pending, after the "Time To Deliver Override" is changed back to -1?

    A few related points:
              - I think 9.x may provide mbean/JMX/administrative options to change time-to-deliver in existing messages - but, even if it does, this seems unwieldy.
              - 9.x also provides options for adminstratrively pausing delivery of a destinations messages, and/or pausing MDBs.
              - I think the "time-to-deliver override" also supports setting absolute times via cron like schedules (eg - you can configure it so messages are born at a specific time.)
              - Another option is to introduce an intermediate destination and configure a "messaging bridge" to forward messages between them. When messaging needs to be pause, administratively stop the bridge.
              Tom

Maybe you are looking for