SCCM 2012 Client - Powershell to Patch and Reboot

Powershell script to install all outstanding security patches and reboot server having sccm 2012 client.
([wmiclass]'ROOT\ccm\ClientSDK:CCM_SoftwareUpdatesManager').InstallUpdates([System.Management.ManagementObject[]] (Get-WmiObject -Query 'SELECT * FROM CCM_SoftwareUpdate' -namespace 'ROOT\ccm\ClientSDK')); 
while (!((gwmi -Namespace 'ROOT\ccm\ClientSDK' -Class 'CCM_ClientUtilities' -list).DetermineIfRebootPending().RebootPending)){
Write-Host "Patching";Start-Sleep -s 120;
if((gwmi -Namespace 'ROOT\ccm\ClientSDK' -Class 'CCM_ClientUtilities' -list).DetermineIfRebootPending().RebootPending)
{(Get-WmiObject -Namespace 'ROOT\ccm\ClientSDK' -Class 'CCM_ClientUtilities' -list).RestartComputer()}

If your clients are member of an Active Directory, you could also use a startup script to update the client.
Jason has a very popular script you can use:
http://blog.configmgrftw.com/configmgr-client-startup-script/
Ronni Pedersen | Microsoft MVP - ConfigMgr | Blogs:
www.ronnipedersen.com/ and www.SCUG.dk/ | Twitter
@ronnipedersen

Similar Messages

  • SCCM 2012 Client was removed but SCCM console still showing the status as "Yes"

    Hi,
    In a VM, SCCM 2012 client agent was removed and the VM was reverted back to a clean machine. SCCM console still shows the status as "Yes" even after the client agent was removed. Heartbeat Discovery is set to run every 1 hour.
    Please guide on this.
    Regards, Lorin Davis

    It's kind like a person dying (sorry to be a bit morbid) -- how does the phone company know the person died? The dead person certainly can't tell them and the phone company doesn't query every person it services and ask them "are you alive?"
    Thus, someone else must notify them of the person's passing. This is no different than a client agent "dying" in ConfigMgr. A ConfigMgr site never initiates communication with clients and thus something else needs to tell the site that the client
    agent is dead. You! Or, an automated process (as Torsten mentioned) that goes through automatically marks a client as "dead" that hasn't been heard from in x number of days.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • SCCM 2007 to SCCM 2012 client migration via Powershell

    Hi
    I'm looking for a controlled way to migrate a SCCM 2007 server client to SCCM 2012. A push of SCCM Console is no option.
    I 'll do all the testing but hoped to gain some time by having these questions answered:
    *can an install of SCCM 2012 client be remotely triggered in one go (no uninstall of 2007 needed)?
    *if uninstall is needed (of sccm 2007 client), does it need a reboot?
    What command to use (preferrably powershell):
    \\ourserver\Client\ccmsetup.exe" -argumentlist "SMSSITECODE=sitecode","SMSMP=oursccmserver","SMSCACHESIZE=8000","FSP=oursccmserver","CCMLOGMAXSIZE=104857600"
    OR (guess that's the command SCCM is using)
    Install-CMClient-DeviceName$ComputerName-IncludeDomainController$False-SiteCodePRD-ForceReinstall$True-AlwaysInstallClient$True-Verbose
    J.
    Jan Hoedt

     do I need to import the machine in SCCM 2012 also or launching the SCCM 2012 install from a SCCM 2007
    will do this?
    How will you do that? This does not work at all when using client push obviously. You can only use packages/programs to update clients to CM12 in that case and that's something you did not want to do.
    Torsten Meringer | http://www.mssccmfaq.de

  • OSD: TS deployed to Vista SCCM 2012 client, reboots then doesn't find network drivers

    Hi,
    We deploy SCCM 2012 client to a SCCM 2007 Vista pc.
    We then deploy a task sequence to install Windows 7.
    Everything works fine on a vm, it reboots in winpe then starts the task sequence. On a laptop however, it does not work. F8 shows it does not get an ip address, it seems as if no network adaptor is recognized.
    However, the same task sequence works fine on the same laptop when pxe booting + I added the driver to winpe. Didn’t help. Please advise.
    J.
    Jan Hoedt

    I think I know what the root cause is, but not how to solve it.
    In diskpart, I can see 3 volumes:
    *Volume 0 = D-drive, DVD-rom,
    *Volume 1 = no drive letter, partition of 400 GB
    *Volume 2 = C-drive, label "Configuratio", type "removable" 4 GB
    It should install to the 400 GB drive but it seems that its installing to the removable drive.
    Not sure what that is since there is no USB attached. Probably it is the winpe temporarely mounted(?)
    The behaviour I have is described
    here and is also referring to USB.
    => I guess I have to tell the temporarely mounted drive to be f.e. Z when installing in full OS.
    Any idea howto do this?
    J.
    Jan Hoedt

  • How can I remove the SCCM 2012 client and reinstall SCCM 2007 client on all of our computers

    Hello All
    We have  bit of a problem. Our virtual SCCM 2012 r2 server was deleted and the back solution we had in place keeps failing.
    We do have our sccm 2007 server still in place but its only role was imaging as we transferred roles from one to another.
    My question is now our support needs to remote into pcs but cant because the CM12 server is gone. How can I remove the 2012 client from all of our companies computers and reinstall the CM07 client so we can remote into computers again.
    Thanks in advance!
    Phil
    Phil Balderos

    Run a ccmsetup /uninstall on the clients. You may need to run via PSExec. Then push out the SCCM 2007 client via the 2k7 console.
    Cheers
    Paul | sccmentor.wordpress.com
    Thanks Paul!
    I have to do this on over 350 computers and 110 servers. How can I do it on a more massive scale?
    Phil Balderos
    I would check Torsten's approach first and see if the ccmsetup will uninstall the 2012 version. I'm not sure. Obviously the other way round is fine.
    Using PSexec you can script this to call up a txt file of all your servers/computers and run the uninstall.
    e.g. 
    for /f "tokens=*" %a in (computers.txt) do psexec \\%a %WINDIR%\ccmsetup\ccmsetup.exe /uninstall 
    If your account has privileges on all devices you won't need to add in any username/password credentials. Obviously only devices that are switched on and you have access to will run this.
    Cheers
    Paul | sccmentor.wordpress.com

  • SCCM 2012 client in capture but deploy has default step "Setup Windows and ConfigMgr"

    Hi,
    We have our SCCM 2012 client in the capture but the deploy has a single step "Setup Windows and ConfigMgr" in which there is no option to NOT install the sccm 2012 client.
    So what happens then, the client is installed a second time?
    Please advise.
    J.
    Jan Hoedt

    Hello !
    This is a mandatory step in order to configure Windows for a first use. In your case, the SCCM client will just be serialized, it's not a problem. The SCCM client has generally been prepared during the design capture.
    Hope this helps.
    Note: This posting is provided 'AS IS' with no warranties or guarantees, and confers no rights. Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and
    recognises useful contributions.

  • Send SCCM 2012 client or re-send client to individual computer

    We have a tech tools web portal and I need to add an item so techs can send the SCCM 2012 client to a machine. This will be used if they have to reinstall the client for some reason.
    I had planned to use PowerShell and created the script only to find out that it requires too great a permissions role to connect to the SCCM drive so the cmdlets can be used.
    I then thought I could just create a .CCR for a computer. But, the format for SCCM 2007 does not work for SCCM 2012.
    Reasons we are approaching this in this manner are:
    1) We want to install using the CURRENT client files. And, we don't want to copy those off to some other location and need to remember to update them when we update SCCM 2012.
    2) We want the retry capability that comes with using .CCRs.
    3) We want the "smartness" of the client install we have found. We have a distributed operation and doing the client install by an SCCM admin from the PowerShell script or via the right-click in the console allows SCCM to find the closest DP and
    use client install files from a local source when available.
    4) We have a LOT of desktop techs that we do not want having access to the SCCM console. There is just too high a learning curve. We want a simple tool.
    One other thing to mention ... we cannot use the Generate CCR tool because we are not turning on client push (lots of valid reasons for this and some the SCCM admins don't think are valid, but the decision has been made for us :) )
    Anyone have thoughts on how to have a simple tool to send the client install via script or .CCR?
    Thanks in advance!

    You can't turn client push off -- you can turn *auto*-client push off though. The Generate CCR tool does not depend upon *auto*-client push though so there's no reason you can't use it.
    Here's a blog post on the changes in the CCR process:
    http://blogs.technet.com/b/neilp/archive/2012/07/03/client-push-installation-changes-in-configuration-manager-2012-and-how-to-take-advantage-of-these-for-troubleshooting-purposes.aspx
    Jason | http://blog.configmgrftw.com

  • SCCM 2012 Client delpoyment in SCCM 2007 Native world

    Hi Team,
    In my account I have SCCM 2007 running in Native mode.... we do not support internet based clients there..but work on HTTPS only. Now I have implemented SCCM 2012 R2 there and now testing the client migration so that I can upgrade the SCCM client agent from
    2007 to 2012. In SCCM 2012 we have to support internet based clients and so the SCCM 2012 client which we need to install should be compatible on internet and intranet both
    The plan is to use the existing SCCM 2007 infra to do that. Send the ccmsetup.exe ( of SCCM 2012 ) in a package to all the clients via SCCM 2007 Software Distribution and trigger SCCM 2012 installation.
    Just to do a small test I did this :
    1. Created a folder in C drive of a client machine and copied the ccmsetup.exe ( of SCCM 2012 ) in it.
    2. Tried to trigger the installation with below mentioned commandlines..... but getting error as mentioned below.... Please help.
    Command line used : 
    Here ABCD.contoso.org is the intranet MP and PQRS.dmzone.org is internet MP
    CCMSetup.exe /UsePKICert /NoCRLCheck smsmp=ABCD.contoso.org ccmhostname=PQRS.dmzone.org smssitecode=ABC
    CCMSetup.exe /UsePKICert /NoCRLCheck smsmp=ABCD.contoso.org smssitecode=ABC
    CCMSetup.exe smsmp=ABCD.contoso.org smssitecode=ABC
    Error in ccmsetup.log
    <![LOG[==========[ ccmsetup started in process 3068 ]==========]LOG]!><time="12:49:12.547+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="5076" file="ccmsetup.cpp:9441">
    <![LOG[Running on platform X64]LOG]!><time="12:49:12.548+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="5076" file="util.cpp:1892">
    <![LOG[Updated security on object C:\Windows\ccmsetup\cache\.]LOG]!><time="12:49:12.548+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="5076" file="ccmsetup.cpp:9285">
    <![LOG[Launch from folder C:\Windows\ccmsetup\]LOG]!><time="12:49:12.548+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="5076" file="ccmsetup.cpp:721">
    <![LOG[CcmSetup version: 5.0.7958.1401]LOG]!><time="12:49:12.549+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="5076" file="ccmsetup.cpp:727">
    <![LOG[Successfully started the ccmsetup service]LOG]!><time="12:49:12.550+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="4744" file="ccmsetup.cpp:3271">
    <![LOG[Deleted file C:\Windows\ccmsetup\ccmsetup.exe.download]LOG]!><time="12:49:12.551+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="4744" file="ccmsetup.cpp:9497">
    <![LOG[In ServiceMain]LOG]!><time="12:49:12.552+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="ccmsetup.cpp:3365">
    <![LOG[Folder 'MicABCoft\Configuration Manager' not found. Task does not exist.]LOG]!><time="12:49:12.556+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="4744"
    file="wintask.cpp:622">
    <![LOG[CcmSetup is exiting with return code 0]LOG]!><time="12:49:12.556+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="4744" file="ccmsetup.cpp:10879">
    <![LOG[Running on 'MicABCoft Windows 7 Enterprise ' (6.1.7601). Service Pack (1.0). SuiteMask = 272. Product Type = 18]LOG]!><time="12:49:12.618+300" date="11-11-2014" component="ccmsetup" context="" type="1"
    thread="3284" file="util.cpp:1974">
    <![LOG[Ccmsetup command line: "C:\Windows\ccmsetup\ccmsetup.exe" /runservice "/UsePKICert" "/NoCRLCheck" "smssitecode=ABC"]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup"
    context="" type="1" thread="3284" file="ccmsetup.cpp:3590">
    <![LOG[Command line parameters for ccmsetup have been specified.  No registry lookup for command line parameters is required.]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup" context=""
    type="1" thread="3284" file="ccmsetup.cpp:3775">
    <![LOG[Command line: "C:\Windows\ccmsetup\ccmsetup.exe" /runservice "/UsePKICert" "/NoCRLCheck" "smssitecode=ABC"]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup"
    context="" type="1" thread="3284" file="ccmsetup.cpp:3776">
    <![LOG[SslState value: 448]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="ccmsetup.cpp:4425">
    <![LOG[CCMHTTPPORT:    80]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmsetup.cpp:8621">
    <![LOG[CCMHTTPSPORT:    443]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmsetup.cpp:8636">
    <![LOG[CCMHTTPSSTATE:    448]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmsetup.cpp:8654">
    <![LOG[CCMHTTPSCERTNAME:    ]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmsetup.cpp:8672">
    <![LOG[FSP:    ]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmsetup.cpp:8724">
    <![LOG[CCMFIRSTCERT:    1]LOG]!><time="12:49:12.619+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmsetup.cpp:8782">
    <![LOG[HTTPS is enforced for Client. The current state is 31.]LOG]!><time="12:49:12.621+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmutillib.cpp:403">
    <![LOG[Begin searching client certificates based on Certificate Issuers]LOG]!><time="12:49:12.623+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmcert.cpp:4393">
    <![LOG[Completed searching client certificates based on Certificate Issuers]LOG]!><time="12:49:12.624+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmcert.cpp:4550">
    <![LOG[Begin to select client certificate]LOG]!><time="12:49:12.624+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmcert.cpp:4706">
    <![LOG[The 'Certificate Selection Criteria' was not specified, counting number of certificates present in 'MY' store of 'Local Computer'.]LOG]!><time="12:49:12.624+300" date="11-11-2014" component="ccmsetup" context=""
    type="0" thread="3284" file="ccmcert.cpp:4742">
    <![LOG[1 certificate(s) found in the 'MY' certificate store.]LOG]!><time="12:49:12.624+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="ccmcert.cpp:4770">
    <![LOG[Only one certificate present in the certificate store.]LOG]!><time="12:49:12.624+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="ccmcert.cpp:4774">
    <![LOG[Begin validation of Certificate [Thumbprint 50051EB74624621341900739D65706D8089A0941] issued to 'D-LJACKNVM7X64.ABClan.org']LOG]!><time="12:49:12.624+300" date="11-11-2014" component="ccmsetup" context=""
    type="1" thread="3284" file="ccmcert.cpp:1662">
    <![LOG[Failed to get certificate key provider information. Error 0x80092004]LOG]!><time="12:49:12.626+300" date="11-11-2014" component="ccmsetup" context="" type="3" thread="3284" file="ccmcert.cpp:1199">
    <![LOG[The Certificate [Thumbprint 50051EB74624621341900739D65706D8089A0941] issued to 'D-LJACKNVM7X64.ABClan.org' has 'Client Authentication' capability.]LOG]!><time="12:49:12.633+300" date="11-11-2014" component="ccmsetup"
    context="" type="0" thread="3284" file="ccmcert.cpp:582">
    <![LOG[Completed validation of Certificate [Thumbprint 50051EB74624621341900739D65706D8089A0941] issued to 'D-LJACKNVM7X64.ABClan.org']LOG]!><time="12:49:12.633+300" date="11-11-2014" component="ccmsetup" context=""
    type="1" thread="3284" file="ccmcert.cpp:1803">
    <![LOG[>>> Client selected the PKI Certificate [Thumbprint 50051EB74624621341900739D65706D8089A0941] issued to 'D-LJACKNVM7X64.ABClan.org']LOG]!><time="12:49:12.633+300" date="11-11-2014" component="ccmsetup"
    context="" type="1" thread="3284" file="ccmcert.cpp:4850">
    <![LOG[Raising event:
    instance of CCM_ServiceHost_CertRetrieval_Status
    ClientID = "GUID:A5879665-7A1B-4529-827E-52FA34ABD384";
    DateTime = "20141111174912.640000+000";
    HRESULT = "0x00000000";
    ProcessID = 3068;
    ThreadID = 3284;
    ]LOG]!><time="12:49:12.640+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="event.cpp:715">
    <![LOG[Failed to submit event to the Status Agent. Attempting to create pending event.]LOG]!><time="12:49:12.643+300" date="11-11-2014" component="ccmsetup" context="" type="2" thread="3284"
    file="event.cpp:737">
    <![LOG[Raising pending event:
    instance of CCM_ServiceHost_CertRetrieval_Status
    ClientID = "GUID:A5879665-7A1B-4529-827E-52FA34ABD384";
    DateTime = "20141111174912.640000+000";
    HRESULT = "0x00000000";
    ProcessID = 3068;
    ThreadID = 3284;
    ]LOG]!><time="12:49:12.643+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="event.cpp:770">
    <![LOG[Successfully submitted pending event to WMI.]LOG]!><time="12:49:12.648+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="event.cpp:813">
    <![LOG[CCMCERTID:    MY;50051EB74624621341900739D65706D8089A0941]LOG]!><time="12:49:12.649+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="ccmsetup.cpp:8803">
    <![LOG[No MP or source location has been explicitly specified.  Trying to discover a valid content location...]LOG]!><time="12:49:12.649+300" date="11-11-2014" component="ccmsetup" context="" type="1"
    thread="3284" file="ccmsetup.cpp:4729">
    <![LOG[Looking for MPs from AD...]LOG]!><time="12:49:12.649+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="ccmsetup.cpp:4737">
    <![LOG[Performing AD query: '(&(ObjectCategory=mSSMSManagementPoint)(mSSMSDefaultMP=TRUE)(mSSMSSiteCode=ABC))']LOG]!><time="12:49:13.226+300" date="11-11-2014" component="ccmsetup" context="" type="0"
    thread="3284" file="lsad.cpp:657">
    <![LOG[OperationalXml '<ClientOperationalSettings><Version>5.00.7958.1000</Version><SecurityConfiguration><SecurityModeMask>0</SecurityModeMask><SecurityModeMaskEx>448</SecurityModeMaskEx><HTTPPort>80</HTTPPort><HTTPSPort>443</HTTPSPort><CertificateStoreName></CertificateStoreName><CertificateIssuers></CertificateIssuers><CertificateSelectionCriteria></CertificateSelectionCriteria><CertificateSelectFirstFlag>1</CertificateSelectFirstFlag><SiteSigningCert>308202F0308201D8A003020102021012B6F63E56359BB9493496A444140A76300D06092A864886F70D01010B05003016311430120603550403130B53697465205365727665723020170D3134303931383135313330355A180F32313134303832363135313330355A3016311430120603550403130B536974652053657276657230820122300D06092A864886F70D01010105000382010F003082010A0282010100D2F099DE475F5360729CBD0CEB1F9DC291383C9787E19DEA9CBE8988799E60CA26CB3FEBF2E4115FE6D8A6B42E063E72B2B035BEFA0BA9D8FB9E892366699A25FB9F10956770DAC5DD650CBAFB1BC46DACE2F2A777C42D269366361B6207318D5ED52D32078EA0D59CDBE13892B1A7BD7E21CD748B6BF636D9901610BE6D8D363646651ACB10440EE31F9F36FA48227631D9989E8349B888C3C4959E79AC0C4B579F10F41D30285B478FCED289AA23066D407D73AF73408D7609442EC7AC32F96EABB176E42159BEFDF6537864FEFC9F8491DA7C6BB9BCB99C5FF7E31ADC294FFD49088899C1698F44FE9F1C18046AF8255A521C6910AC113845997960ECA8070203010001A3383036301E0603551D11041730158213524F534E543232312E6574736C616E2E6F726730140603551D25040D300B06092B060104018237650B300D06092A864886F70D01010B050003820101002061E3AC32E4EAF2BEA7CF3004372C1FA61B5114B3CB838FA92A2037D1A26FB2926F2D3FB000B1249099E513BBD76DCB01D74BD6A273CCEAE84CD87F77D8BBB256F4FA58030B8DADC3F6C8B84967D8F7DFA81FE2C57426AB918CC61E42D5838C4A40D84F39E1B3288415609F2C3B0E52988EAB6E155A68725828B09D7475D9ED764DFD976F1D40CCEFAAD5E0F3B21E4DE7EA0BFEF617D4C8459C8E37B49EFBCF0C3921B2FD74BFDBEFFEF1B0CB1A1C85C5F3A16AE974DF3AB0E28EED844C43AB0E3F564C82FCD986CC429057702680B3869765A2A5128EC1EC378F90A9E4BA27572E64F500E645CFA5CBC300EAC980D68E6B96A1E1C7D95B2041CC807F7C74FF</SiteSigningCert></SecurityConfiguration><RootSiteCode>ABC</RootSiteCode><CCM>
    <CommandLine>SMSSITECODE=ABC</CommandLine> </CCM><FSP> <FSPServer></FSPServer> </FSP><Capabilities SchemaVersion ="1.0"><Property Name="SSLState" Value="0" /></Capabilities><Domain
    Value="ABClan.org" /><Forest Value="ABCroot.org" /></ClientOperationalSettings>']LOG]!><time="12:49:13.378+300" date="11-11-2014" component="ccmsetup" context="" type="0"
    thread="3284" file="lsadcache.cpp:236">
    <![LOG[The MP name retrieved is 'ABCD.contoso.org' with version '7958' and capabilities '<Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities>']LOG]!><time="12:49:13.381+300"
    date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="lsadcache.cpp:334">
    <![LOG[MP 'ABCD.contoso.org' is not compatible]LOG]!><time="12:49:13.382+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="lsadcache.cpp:345">
    <![LOG[Retrieved 0 MP records from AD for site 'ABC']LOG]!><time="12:49:13.382+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="lsadcache.cpp:287">
    <![LOG[FromAD: command line = SMSSITECODE=ABC]LOG]!><time="12:49:13.383+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="ccmsetup.cpp:288">
    <![LOG[Local Machine is joined to an AD domain]LOG]!><time="12:49:13.383+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="lsad.cpp:715">
    <![LOG[Current AD forest name is ABCroot.org, domain name is ABClan.org]LOG]!><time="12:49:13.386+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="lsad.cpp:843">
    <![LOG[Domain joined client is in Intranet]LOG]!><time="12:49:13.386+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="lsad.cpp:1048">
    <![LOG[CMPInfoFromADCache requests are throttled for 01:07:08]LOG]!><time="12:49:13.386+300" date="11-11-2014" component="ccmsetup" context="" type="0" thread="3284" file="lsadcache.cpp:173">
    <![LOG[No valid source or MP locations could be identified to download content from. Ccmsetup.exe cannot continue.]LOG]!><time="12:49:13.386+300" date="11-11-2014" component="ccmsetup" context="" type="3"
    thread="3284" file="ccmsetup.cpp:4806">
    <![LOG[Failed to parse '"C:\Windows\ccmsetup\ccmsetup.exe" /runservice "/UsePKICert" "/NoCRLCheck" "smssitecode=ABC"' with error 0x80004005]LOG]!><time="12:49:13.386+300" date="11-11-2014"
    component="ccmsetup" context="" type="3" thread="3284" file="ccmsetup.cpp:4611">
    <![LOG[A Fallback Status Point has not been specified.  Message with STATEID='100' will not be sent.]LOG]!><time="12:49:13.386+300" date="11-11-2014" component="ccmsetup" context="" type="1"
    thread="3284" file="ccmsetup.cpp:9767">
    <![LOG[A Fallback Status Point has not been specified.  Message with STATEID='307' will not be sent.]LOG]!><time="12:49:13.387+300" date="11-11-2014" component="ccmsetup" context="" type="1"
    thread="3284" file="ccmsetup.cpp:9767">
    <![LOG[CcmSetup failed with error code 0x80004005]LOG]!><time="12:49:13.388+300" date="11-11-2014" component="ccmsetup" context="" type="1" thread="5076" file="ccmsetup.cpp:10883">

    Hi Jason,
    Thanks for your reply..... I tried with /mp switch.... but same error.... if you look at the logs it says 
    <![LOG[MP 'ABCD.contoso.org' is not compatible]LOG]!><time="12:49:13.382+300"
    date="11-11-2014" component="ccmsetup" context="" type="1" thread="3284" file="lsadcache.cpp:345">
    <![LOG[Retrieved 0 MP records from AD for site 'ABC']LOG]!>
    Not sure why it is saying " not compatible " ... its a valid MP..... from the same client machine below links are working fine..
    http://ABCD.contoso.org/sms_mp/.sms_aut?mpcert
    http://ABCD.contoso.org/sms_mp/.sms_aut?mplist
    Thanks,
    Sam

  • Have you ever seen a 24+ hour delay on a scheduled task to patch and reboot your server?

    Our OS admins set up a schedule so that our SharePoint servers would patch and reboot once a month on the weekend during a scheduled time.
    This past weekend, 3 of the 4 SP 2010 servers in the farm patched and rebooted as expected.
    One of the servers (this is Windows 2012) was patched - but the reboot didn't occur until over 48 hours later.
    I don't see anything in the event logs or the 14 hive logs that indicates the reason for the delay. The OS admins verified that the reboot was scheduled to occur at the scheduled time.
    Has anyone else encountered anything like this?

    My OS Admin has requested I correct one thing in this question.
    > It isn’t really a ‘scheduled task’ that is forcing the machine to reboot. WSUS is sending patches to the machine based on registry settings.
    >When it is done, the machine is supposed to reboot within 15 min.
    > Also, in our case the patches installed around 6pm on the 1<sup>st</sup> and the machine rebooted on the 4<sup>th</sup> at  around 9:40 am.
    > This means about 62+ hours had passed.

  • Download Reports from SCCM 2012 Using PowerShell

    Hi,
    I Wants to Download reports from SCCM 2012 using powershell but couldn't find a way.
    I used Invoke-Cmreport but it says no reporting Service point on site code XYZ and server ABC
    But Reporting Service is enabled and works fine as i can check/download report manually
    Thanks 

    Hi,
    You could have a look at the script in the blog below.
    How to Download All Your SSRS Report Definitions(RDL files) Using PowerShell.
    http://www.sqlmusings.com/2011/03/28/how-to-download-all-your-ssrs-report-definitions-rdl-files-using-powershell/
    Note: Microsoft provides third-party contact information
    to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Best Regards,
    Joyce

  • How to enable SCCM 2012 clients to get Windows Updates through SSL VPN

    I would like my SCCM 2012 client laptops to get Windows Updates through SSL VPN.
    I suppose I need to add VPN Subnet in my boundary and boundary group.
    What other setting I need to enable?
    At this moment, on the 'Software Update Point Component Properties' "Allow intranet-only client connections" radio button is active. Do I neeed to select "Allow both intranet and internet client connections" and Enable SSL communications
    for the WSUS server?
    or are there something else I need to check?

    No, a VPN client is no different than a client connected internally as far as the network is concerned and as far as ConfigMgr is concerned there is no way to explicitly know any different. Internet clients literally are those that connect via the Internet
    using IBCM.
    Jason | http://blog.configmgrftw.com

  • Deploying SCCM 2012 Client over DirectAccess

    I have not been able to successfully deploy the SCCM 2012 client to any DirectAccess clients when they are not connected to the internal network.  I have migrated my collections from SCCM 2007 and all machines connected internally had no issues.  I
    have added the new SCCM server to the Infrastructure Servers configuration on the UAG and applied the Group Policy.  In the CCM logs, I am seeing "the device %computername% does not exist on the network" although I can ping them.  The client push
    account is a local admin on the machines so I am at a loss as to why they can't connect.  Could it be boundary related?
    Rich

    Here is a snippet from the ccm logs:
    ---> The device computername.xxx.local does not exist on the network. Giving up~  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.927+300><thread=4568 (0x11D8)>
    ---> Trying the 'best-shot' account which worked for previous CCRs (index = 0x0)~  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.927+300><thread=4568 (0x11D8)>
    ---> Attempting to connect to administrative share '\\computername\admin$' using account 'xxx\sccm_push'~  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.927+300><thread=4568 (0x11D8)>
    ---> WNetAddConnection2 failed (LOGON32_LOGON_NEW_CREDENTIALS) using account xxx\sccm_push (00000035)  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.942+300><thread=4568 (0x11D8)>
    ---> The device "computername" does not exist on the network. Giving up~  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.942+300><thread=4568 (0x11D8)>
    ---> ERROR: Unable to access target machine for request: "2097152018", machine name: "computername",  access denied or invalid network path.  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.942+300><thread=4568 (0x11D8)>
    Execute query exec [sp_CP_SetLastErrorCode] 2097152018, 53~  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.958+300><thread=4568 (0x11D8)>
    Stored request "2097152018", machine name "computername", in queue "Retry".  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.958+300><thread=4568 (0x11D8)>
    Execute query exec [sp_CP_SetPushRequestMachineStatus] 2097152018, 2~  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.958+300><thread=4568 (0x11D8)>
    Execute query exec [sp_CP_SetLatest] 2097152018, N'08/14/2012 10:47:23', 198~  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.973+300><thread=4568 (0x11D8)>
    <======End request: "2097152018", machine name: "computername".  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:23.973+300><thread=4568 (0x11D8)>
    ---> WNetAddConnection2 failed (LOGON32_LOGON_NEW_CREDENTIALS) using account xxx\sccm_push (00000035)  $$<SMS_CLIENT_CONFIG_MANAGER><08-14-2012 05:47:25.989+300><thread=4688 (0x1250)>

  • SCCM 2012 Client.msi Fails

    I am able to install the SCCM client on many machines, but two machines are failing.  First I looked in ccmsetup.log:
    <![LOG[File C:\Windows\ccmsetup\{59A0EA77-D28C-4286-83A6-04BB57B9CDD6}\client.msi installation failed. Error text: ExitCode: 1603
    Action:
    ErrorMessages:
    ]LOG]!><time="16:25:20.476+00" date="03-16-2013" component="ccmsetup" context="" type="3" thread="1512" file="msiutil.cpp:860">
    <![LOG[Next retry in 120 minute(s)...]LOG]!><time="16:25:20.507+00" date="03-16-2013" component="ccmsetup" context="" type="0" thread="1512" file="ccmsetup.cpp:7554">
    Then i looked at client.msi.log for more detail, and searced for "return value 3".  This log file is hug so i included an excerpt from it.  Let me know where to look in the log file for more descriptive text.
    [15:43:48] Automatic Delayed Start configuration is enabled for CCMEXEC
    MSI (s) (70:64) [15:43:48:682]: Executing op: CustomActionSchedule(Action=CcmRegisterWinTaskRollback,ActionType=3329,Source=BinaryData,Target=CcmRegisterWinTaskRollback,)
    MSI (s) (70:64) [15:43:48:697]: Executing op: ActionStart(Name=CcmRegisterWinTask,Description=Registers tasks with Windows Task Scheduler.,)
    MSI (s) (70:64) [15:43:48:697]: Executing op: CustomActionSchedule(Action=CcmRegisterWinTask,ActionType=3073,Source=BinaryData,Target=CcmRegisterWinTask,)
    MSI (s) (70:64) [15:43:48:697]: Creating MSIHANDLE (24379) of type 790536 for thread 1892
    MSI (s) (70:10) [15:43:48:697]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI6477.tmp, Entrypoint: CcmRegisterWinTask
    MSI (s) (70!24) [15:43:48:713]: Creating MSIHANDLE (24380) of type 790531 for thread 3620
    MSI (s) (70!24) [15:43:48:713]: Closing MSIHANDLE (24380) of type 790531 for thread 3620
    [15:43:48] Registering windows task 'Configuration Manager Idle Detection'
    MSI (s) (70:10) [15:43:48:713]: Closing MSIHANDLE (24379) of type 790536 for thread 1892
    CustomAction CcmRegisterWinTask returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
    MSI (s) (70:64) [15:43:48:760]: User policy value 'DisableRollback' is 0
    MSI (s) (70:64) [15:43:48:760]: Machine policy value 'DisableRollback' is 0
    Action ended 15:43:48: InstallFinalize. Return value 3.
    MSI (s) (70:64) [15:43:48:838]: Executing op: Header(Signature=1397708873,Version=500,Timestamp=1114668398,LangId=1033,Platform=589824,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=1)
    MSI (s) (70:64) [15:43:48:838]: Executing op: DialogInfo(Type=0,Argument=1033)
    MSI (s) (70:64) [15:43:48:838]: Executing op: DialogInfo(Type=1,Argument=Configuration Manager Client)
    MSI (s) (70:64) [15:43:48:838]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back action:,RollbackTemplate=[1],CleanupAction=RollbackCleanup,CleanupDescription=Removing backup files,CleanupTemplate=File: [1])
    MSI (s) (70:64) [15:43:48:838]: Executing op: ActionStart(Name=CcmRegisterWinTask,Description=Registers tasks with Windows Task Scheduler.,)
    MSI (s) (70:64) [15:43:48:838]: Executing op: ProductInfo(ProductKey={D6804B3A-BFEC-4AB4-BFA5-FD9BECC80630},ProductName=Configuration Manager Client,PackageName=client.msi,Language=1033,Version=83893884,Assignment=1,ObsoleteArg=0,,,PackageCode={59A0EA77-D28C-4286-83A6-04BB57B9CDD6},,,InstanceType=0,LUASetting=0,RemoteURTInstalls=0,ProductDeploymentFlags=3)
    MSI (s) (70:64) [15:43:48:838]: Executing op: ActionStart(Name=CcmRegisterWinTaskRollback,Description=Rolls back the changes made by CcmRegisterWinTask.,)
    MSI (s) (70:64) [15:43:48:838]: Executing op: CustomActionRollback(Action=CcmRegisterWinTaskRollback,ActionType=3329,Source=BinaryData,Target=CcmRegisterWinTaskRollback,)
    MSI (s) (70:64) [15:43:48:838]: Creating MSIHANDLE (24381) of type 790536 for thread 1892
    MSI (s) (70:8C) [15:43:48:838]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI6504.tmp, Entrypoint: CcmRegisterWinTaskRollback
    MSI (s) (70!DC) [15:43:48:853]: Creating MSIHANDLE (24382) of type 790531 for thread 3548
    MSI (s) (70!DC) [15:43:48:853]: Closing MSIHANDLE (24382) of type 790531 for thread 3548
    MSI (s) (70:8C) [15:43:48:853]: Closing MSIHANDLE (24381) of type 790536 for thread 1892
    [15:43:48] Removing windows task 'Configuration Manager Idle Detection'
    From successfully installation i typically see folders created in C:\Windows\CCM\* but in this particular case there are only a couple .tmp files and other misc.  Where should i look next?  I have tried ccmsetup.exe /uninstall and then ccmsetup.exe
    /mp:<machine> SMSSITECODE=<code> /noservice and also with /service.
    I have tried winmgmt /resetrepository
    I have checked that BITS service is running.
    What else should i look for?
    thanks

    Did someone able to find the root cause of it and able to it resolve it, i'm currently facing the same issue:
    Error 1904. Module C:\Windows\CCM\DCMADQueryProvider.dll failed to register.
    HRESULT -2147024703. Contact your support personnel"
    This error is not
    restricted to any 1 dll but it's random like DCMADQueryProvider.dll,
    statusagent.dll, ccmcore.dll
    •I'm getting this error while installing
    SCCM 2012 client.
    Steps i tried:
    1.I did try manually registering
    oringinally but when the client fails to install, it removes all the source
    files including the ccmcore.dll. So, ccmcore.dll doesn't reside on the system
    after failing to install the client or at least not that I can see.
    2. I
    have tried timing it just right so that my "regsvr32 ccmcore.dll" is run during
    the install process while the file is in the CCM folder but that didnt work
    either.
    3. I had manually created the directory CCM\x64\ccmcore.dll and
    copied the file from a working client and try to register but it gave me an
    error " Failed to load .dll"
    4. i have tried uninstalling the client from
    ccmclean and tried to reinstall it but still it fails.
    Currently not sure what is wrong with the client install, so still
    investigating the issue, please help if someone was able to solve the issue.
    There are some
    articles out there which points to resolving this issue by registering
    ATL.dll.
    However, in this
    case ATL.dll has been registered only 1 times using regsvr32.exe (system32 and
    syswow64 folders).
    Based on procmon :
    HKCR\Wow6432Node\CLSID\{44EC053A-400F-11D0-9DCD-00A0C90391D3}\InprocServer32\
    While installing, it was looking for ATL.DLL and found the location from
    registry as "“%systemroot%\system32\atl.dll”

  • SCCM 2012 - Client Installed but No Software Center

    Hi Everyone,
    I've a strange problem on my Management Point.
    The SCCM 2012 client is installed, but there isn't Software Center (on all other Server it has been installed).
    I've tryied to install it manually & with the push installation , but no change.
    when I try to push it to the server it has an error File C:\Windows\ccmsetup\{181D79D7-1115-4D96-8E9B-5833DF92FBB4}\client.msi installation failed. Error text: ExitCode: 1635
    But when I try to install Manually Exit code is 0 (no error)
    Cheers

    Hi,
    Have you checked the log files ccmsetup.log ,ccmsetup-ccmeval.log, client.msi.log and SoftwareCenterSystemTasks.log? Maybe it can give us some clues.
    Technical Reference for Log Files in Configuration Manager
    http://technet.microsoft.com/en-us/library/hh427342.aspx#BKMK_ClientInstallLog
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SCCM 2012 Client - missing client actions.

    Hi,
    I am having an issue with a SCCM 2012 client where I am only seeing the actions:
    Machine Policy & Evaluation Cycle
    User Policy & Evaluation Cycle.
    I click on the Machine Policy Evaluation cycle and nothing happens.
    What log file should I be checking to see if the other client actions are
    downloaded?
    Thanks,
    Ward

    Hi,
    Any errors in these logs?
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • Opening a page in a browser when a choice is selected from the Menu

    The choice item is defined in MXML as <menuitem label="Help">                 <menuitem label="Documentation" data="documentation.swf" />             </menuitem> Code on what to do when it is selected is <mx:ApplicationControlBar id="appBar" x="0" y=

  • How to find out the callers class?

    Is it possible to find out whats the callers class from within a method without having the caller to pass a reference to itslef? Ako

  • Compatibilita hard disk

    Salve,avrei una domanda da fare:io ho un hard disk esterno autoalimentato della western digital da 500 giga usato su un pc Windows,se lo collego a un MacBook Pro viene riconosciuto e legge i dati al suo interno?grazie in anticipo!

  • Availability of Win 10 Drivers for *Current* and *New* Systems

    I was wondering if there is any timeframe for posting Windows 10 drives for *Current* and *New* Systems. I notice that there are only like 3 drivers posted so far for the X360 laptops. Even the brand new models which come with Windows 10 preinstalled

  • E72 MFE - Calendar synch from phone to exchange ac...

    Hi everyone, I have had a good search through the threads here and can not find anyone with the same problem that I am having. We support a lot of corporate users most of whom have E71's and are more than happy with them. A new starter has been issue