Script to install the SCCM client remotely

Hi everyone,
My customer wants me to realize a script that reads
from a computers.txt list containing all the company computers and that do the following steps:
1. Verify that the sccm client is not installed
2. If not present, install remotely the client
3. Verify that the WMI stack is healthy 
Any help will be appreciate :-)
Thank you

If you're looking for a startup script Jason Sandys has written the best one
http://blog.configmgrftw.com/configmgr-client-startup-script/
As for reading the computers from a text file, that's ridiculous. You will find that nobody has ever done that. ConfigMgr is designed to manage tens (and hundreds) of thousands of devices in the simplest way possible. Compiling and maintaining a text file
of computer names is high maintenance and quite frankly crazy.
Gerry Hampson | Blog:
www.gerryhampsoncm.blogspot.ie | LinkedIn:
Gerry Hampson | Twitter:
@gerryhampson

Similar Messages

  • Why the SCCM client always corrupts the WMI repository?

    Hi All,
    I have a Configuration Manager 2012 R2 CU2 installation with hundred of client/servers.
    From the initial deploy of the SCCM client, we seen that many machines had a Windows slow logon process.
    We searched online for a fix and many people had this problem, suggesting to enable a registry key called
    HKLM\Software\Microsoft\CCM\Ccmeval\NotifyOnly.
    From that date, we fixed the slow logon process problem, but still have problems with operating system's updates installed with SCCM.
    In the most cases, when SCCM install updates, it corrupt the WMI database and at the OS reboot, the updates are rolled back.
    On the same machines, if we install updates from Windows Updates, we have no problems.
    Also, with SCCM installation, we see a lot of "DCOM" or "PerfLib" errors.
    Usually, the remote management of a client with SCCM doesn't works because the WMI repository is corrupted, so each time we need to do uninstall the SCCM client and do this:
    1. Disable and stop the WMI service.
         sc config winmgmt start= disabled
         net stop winmgmt
    2. Run the following commands.
         Winmgmt /salvagerepository %windir%\System32\wbem      (I noticed that you have run this command, but I would suggest that you try it again)
         Winmgmt /resetrepository %windir%\System32\wbem
    4. Re-enable the WMI service and then reboot the server to see how it goes.
         sc config winmgmt start= auto
    This is very frustrating.
    Why the SCCM client create all these problems and how to fix this?
    Thanks for your support.

    I think that my case is not isolate.
    There are a lot of posts like this:
    http://www.windows-noob.com/forums/index.php?/topic/8989-wmi-corruption-sccm-2012-win7-sp1/
    http://trevorsullivan.net/2012/11/21/configmgr-2012-ccmeval-exe-causing-client-corruption/
    The strange thing is that the WMI corruptions only happens on machine where the SCCM client is installed, even if the machines is without any additional software (fresh windows installation).
    In the same time, I need to fix a ProfSvc bug (KB2617858) because the PC become unusable.
    Also, why it starts a WMI rebuild if I deploy the client with the "NotifyOnly" option (the registry key is fine)?
    So, basically, on a fresh windows machine, as it joins to the domain:
    1) the SCCM client install itselfs
    2) it starts to install several windows updates
    3) at the first restart, it try to rebuild the WMI and the ProfSvc bug appears
    May be that the problem is not the SCCM client itself, but a windows update deployed via SCCM client?

  • Command line to run the SCCM client installation

    SCCM Client package have been distributed to all servers.  It will be available in \\servername\smspkgf$\GS2002B2
    Do we need a command line to run the SCCM client installation manually?

    More info:
    About Client Installation Properties in Configuration Manager
    http://technet.microsoft.com/en-us/library/gg699356.aspx
    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.

  • Installing the Mobile Client

    Hello,
    I am following the document Oracle® Database Mobile Server Mobile Client Guide Release 11.1.0.
    My client platform happens to be Blackberry RIM 5.0.
    http://<mobile_server>:<port>/mobile/setup
    takes me to the setup page in the Blackberry Simulator browser. Language = English . Platform = Blackberry
    But on clicking SQLite Blackberry, what is the next step to install the Mobile Client on Blackberry? There is no setup.exe for SQLite Blackberry. How do I know that the Mobile Client is installed on Blackberry?
    Please Help

    Mike, thanks for the very quick response.  Not being able to use the MDW and the Mobile Client on the same platform would have been a show-stopper for us.  So, just to be clear, I can use the MDW on my Windows 7 desktop, and use my Windows 7 laptop as the mobile device.
    Thanks,
    Scott Johnson
    Alaska Dept. of Fish & Game.

  • Install SCCM client remotely with admin rights

    Hi,
    I want to deploy SCCM 2012 R2 clients remotely via PowerShell script running on an admin computer with the following commands :
    $Computers = Get-Content C:\Computers.txt
    $Computers | % { Copy-Item -Path C:\Temp\ccmsetup.exe -Destination \\$_\C$\RemoteTemp\ }
    Invoke-Command -ComputerName $Computers -ScriptBlock {\\$_\C$\RemoteTemp\ccmsetup.exe /mp:MP01}
    When I run the PS script, the client is not installed on remote computers. When I run the ccmsetup via command line locally, there is a popup displaying if I want to allow the EXE execution. When I click on YES, the client is well installed. So I want to
    know if there is a solution to do it from my PS script with admin right bypassing UAC on remote computers ?
    Thanks.

    If that's really the road you want to take then this will probably help:
    http://jeffwouters.nl/index.php/2011/11/having-some-fun-with-uac-and-powershell/
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Cumulative Update 2 for Workflow Manager 1.0 (KB 2902007) - installing the workflow client - nothing happens

    I've updated the Service bus and workflow manager to CU2 but when I try and run the workflow manager client it starts but then just bombs out - begins to load then disappears and nothing happens
    On Control Panel - the Service bus, workflow manager and WF client are all there - but click show updates - the CUs for Service bus and Workflow manager are there but not for WF client
    So it's just not installing for some reason
    Anyone know how I can get this to install?
    Cheers
    J

    Hi,
    For CU there are Prerequisites, please check the following requirements:
    Software requirements:
    PowerShell 3.0 must be installed on the computer to be updated. PowerShell 3.0 is included in the Windows Management Framework 3.0 installation. Go to Windows Management Framework 3.0 to install this update.
    Workflow Manager Client 1.0 must be installed on the computer.
    For computers that have Workflow Manager 1.0 installed, the following additional requirements apply:
    The Service Bus for Windows Server cumulative update must be installed on the whole computer farm before you install the cumulative update for Workflow Manager 1.0
    also Service Bus for Windows Server must be installed on the computer.
    You must have administrative credentials on the computer where you are installing the software.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Anyone installed the Oracle client software on MBP?

    Hi there,
    I'm running into problems installing the Oracle 10g client software (not the server) on my macbook Pro (Intel)
    The instant client installs fine, but it doesn't have the tools I need (sqlldr, imp, exp). During the install the installer gives me a java UnsatifiedLinkError.
    Any thoughts? Sorry if I've missed a previous thread on this, but searches turned up nothing.

    So do u mean if we have SQLPLUS on the box, it implies that client tools are installed ?
    and the SQLPLUS.exe is the one that indicates the existance of client tools on a box and this has to be present on the box to say that the clinet tools are installed.
    Can we have client tools on the box with out SQLPLUS.?

  • I start to install the vpn client. Now I do not detect wireless networks, I have no internet.

    Hello, I download the vpn client,I start to intall,  I no longer detects wireless networks.  Help.

    first download a toolbar ex.toogle,my web search . if u r already having any toolbar ,just go to toolbar menu and then right cilck on that toolbar and then clickon menu bar .

  • How to install the Oracle10g client tools?

    hi, I am new
    I have download the oracle 10g and installed it...
    Then I found the menu Oracle - OraDb10g_home1, but there is not as many as tools in the Oracle9i, the oem(Oracle Enterprise Manager) is not exsisted at least.
    So I download the oracle 10g client and installed it...the oem is exsisted now...But there is two suits of tools in the different menu: the one is in the Oracle - OraDb10g_home1, and the other is in the Oracle - OraClient10g_home1.
    I dont know how to deal with them, let them exsist or uninstall one of them?
    Could you give me some idea?
    Thanks a lot!
    Message was edited by:
    user576858

    I have download the oracle 10g and installed it...
    Then I found the menu Oracle - OraDb10g_home1, but
    there is not as many as tools in the Oracle9i, the
    oem(Oracle Enterprise Manager) is not exsisted at least.You can select custom installation , and select all tools while installing 10g.
    So I download the oracle 10g client and installed
    it...the oem is exsisted now...But there is two suits
    of tools in the different menu: the one is in the
    Oracle - OraDb10g_home1, and the other is in
    the Oracle - OraClient10g_home1.
    I dont know how to deal with them, let them exsist or
    uninstall one of them?It depend what all you want on your machine, if you keep both home it hardly affect any thing except occupying some space. If you need, only client,then you can uninstall Oracle - OraDb10g_home1 using OUI.
    Virag

  • Installing the OWB Client

    Hi,
    I have installed full version of OWB 10g in Server.Now i want to install OWB client in local systems.How to select OWB client tools instead of total installation.
    Please suggest me on this.
    Regards,
    Surendra.V

    Hi Surendra,
    since OWB10gR1 (as I remeber) there is not separate option for installing server/client parts of OWB.
    Oleg

  • I cant install the oracle client 8i

    Is there any way we could install oracle client in pentium four
    machines?

    I can't either, therefore there's nothing wrong with your phone.  It's a server / apple issue.  Nothing you can do about it right now, so move on...

  • Script to install and enable file and printer sharing windows 7

    Hello
    I posted this question on the Microsoft Partner Windows 7 forum and the support person told me that I should post it here.
    I have a Customer that was running Novell.  We will migrate them to Active Directory.
    The question I have is.  they did remove the file and printer sharing service on their Windows 7 workstations.
    Is is possible to have a command line or a script to install and enable the file and printer sharing for Microsoft Network?
    We need this enable in order to install the SCCM client remotely
    Greetings
    Gaetan Labrecque

    How are you going to connect to the workstations?
    File and print sharing are not needed for Group Policy to work.  GP can be used to re-enable file and Print Sharing.
    You will also  need to start by joining the machines to the domain.  That will be very difficult unless all have PowerShell and are configured for WinRM.
    This can be somewhat accomplished by using VBScript remotely but will require a very sophisticated admin to set up and debug in your environment.  I recommend hiring a consultant who has experience in conversions or is a master VBScripter in a domain.
    There is no easy answer.  It is not about File Sharing.
    Here is how to add roles and features with PowerShell:
    http://technet.microsoft.com/en-us/library/hh831809.aspx
    ¯\_(ツ)_/¯

  • Problem installing SCCM client in remote untrusted forest

    Hi,
    My configuration is :
    My network is in two parts : intranet and a DMZ. In the DMZ there is another forest and domain. There is no trust between the forest in the DMZ and the internal network. I configured the remote forest in SCCM with a user account that has Domain Admin acces
    in the DMZ forest/domain.
    The primary site server is located in the internal part of my network. SQL is installed on a remote server. Management point, distribution point, Fallback Status Point roles are installed on the primary site server. SMS Provider is installed on the primary
    site server.
    In the DMZ part, I have a management point, distribution point installed on one server.
    The forest discovery works fine. I can query AD in the remote forest (DMZ).
    I have a problem installing the SCCM client on computers located in the remote forest with client push or with the command line.
    CCMSETUP.EXE /MP:DMZ site server /DP:DMZ site server /FSP: primary site server SMSSITECODE:SIT
    In CCMSetup.log I can see that the client try to communicate with my DMZ site server but it reverts to the management point and distribution point located in the internal part of the network. The installation fails and will try in 10 minutes.
    Do anyone has seen this problem before? Am I missing something? Could it be a configuration issue?
    Could you help me whit this please?
    Thanks in advance for your time!
    Jacques

    Does the client installation work when you install the client manually on the untrusted domain client? What does the CCM.log say on the site server?
    Have you double checked the firewall ports for the client push installation? The ports needed for the client push to work are as follows (from the site server to the client):
    SMB - TCP 445
    RPC Endpoint Mapper - TCP 135 / UDP 135
    RPC Dynamic Ports
    And to Management Point:
    HTTP - TCP 80 (When using HTTP)
    HTTPS - TCP 443 (When using HTTPS)
    Also a quote from
    TechNet: "In addition to the ports listed in the following table, client push installation also uses Internet Control Message Protocol (ICMP) echo request messages from the site server to the client computer to confirm whether the client
    computer is available on the network. ICMP is sometimes referred to as TCP/IP ping commands. ICMP does not have a UDP or TCP protocol number, and so it is not listed in the following table. However, any intervening network devices, such as firewalls, must
    permit ICMP traffic for client push installation to succeed."

  • Error 1603 installing SCCM client

    When I try to install the SCCM client on some machines I get an installation error 1603. Setup starts ok, but after a while ends in a 1603 error.
    ccmsetup.log
    MSI: Action 13:45:12: AllocateRegistrySpace. Allocating registry space ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    MSI: Action 13:45:12: ProcessComponents. Updating component registration ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    MSI: Action 13:45:12: UnpublishComponents. Unpublishing Qualified Components ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    MSI: Action 13:45:12: UnpublishFeatures. Unpublishing Product Features ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    MSI: Action 13:45:12: SmsTSManagerStopServiceInit.  ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    MSI: Action 13:45:12: CcmStopService.  ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    MSI: Action 13:45:12: StopServices. Stopping services ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    MSI: Action 13:45:12: SmsStopUIComponents. Stopping UI Components ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    MSI: Action 13:45:12: StopDeleteWUSER32. Stopping and deleting WUSER32 service ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    Installation failed with error code 1603 ccmsetup 14/07/2008 13:45:12 PM 2532 (0x09E4)
    There were no previous SMS/SCCM clients installed.
    Tried a new install after the rebuild of WMI but without any luck.

    Hi John,
    The client.msi.log shows this error (same as above):
    Action start 23:52:25: StopDeleteWUSER32.
    MSI (s) (08:1C) [23:52:26:037]: Machine policy value 'DisableRollback' is 0
    MSI (s) (08:1C) [23:52:26:037]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
    Action ended 23:52:26: StopDeleteWUSER32. Return value 3.
    At the bottom of the ccmsetup.log it ends with this error:
    MSI: Action 23:52:25: StopDeleteWUSER32. Stopping and deleting WUSER32 service 8/20/2009 11:52:25 PM
    Installation failed with error code 1603 8/20/2009 11:52:26 PM
    Next retry in 120 minute(s)... 8/20/2009 11:52:38 PM
    I'm having trouble locating a windows installer log.  The %temp% folder would be in docs&settings\userid\local settings\temp, I would assume and I've looked through the folders for the acct that is doing the client install as well as all the other acct folders and can't seem to locate any logs with a current date/time stamp.  Any idea where I would look?
    Also, BTW, I reinstalled MSI 4.5 before I did this last client installation, but I did it remotely/silently, so no prompts or data returned... I just found the errors below in the \windows\KB942288-v3.log file... might be related?
    4.140: 2009/08/20 23:44:40.146 (local)
    4.140: e:\6c0499dd2b70eebd34aa8b8c33\UPDATE\update.exe (version 6.3.13.0)
    4.172: Hotfix started with following command line: /quiet /norestart
    4.187: In Function GetReleaseSet, line 1240, RegQueryValueEx failed with error 0x2
    8.578: In Function TestVolatileFlag, line 11825, RegOpenKeyEx failed with error 0x2
    8.578: In Function TestVolatileFlag, line 11857, RegOpenKeyEx failed with error 0x2
    8.578: DoInstallation: CleanPFR failed: 0x2
    8.593: In Function GetReleaseSet, line 1240, RegQueryValueEx failed with error 0x2
    8.593: SetProductTypes: InfProductBuildType=BuildType.IP
    8.593: SetAltOsLoaderPath: No section uses DirId 65701; done.
    8.718: DoInstallation: FetchSourceURL for e:\6c0499dd2b70eebd34aa8b8c33\update\update_SP3QFE.inf failed
    8.718: CreateUninstall = 0,Directory = C:\WINDOWS\$NtUninstallKB942288-v3$
    8.718: LoadFileQueues: UpdSpGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
    8.734: BuildCabinetManifest: update.url absent
    8.750: Starting AnalyzeComponents
    8.750: AnalyzePhaseZero used 0 ticks
    8.750: No c:\windows\INF\updtblk.inf file.
    8.750: OEM file scan used 0 ticks
    10.812: AnalyzePhaseOne: used 2062 ticks
    10.812: AnalyzeComponents: Hotpatch analysis disabled; skipping.
    10.812: AnalyzeComponents: Hotpatching is disabled.
    10.812: FindFirstFile c:\windows\$hf_mig$\*.*
    16.500: AnalyzeForBranching used 0 ticks.
    16.500: AnalyzePhaseTwo used 0 ticks
    16.500: AnalyzePhaseThree used 0 ticks
    16.500: AnalyzePhaseFive used 0 ticks
    16.515: AnalyzePhaseSix used 15 ticks
    16.515: AnalyzeComponents used 7765 ticks
    16.515: Downloading 0 files
    16.515: bPatchMode = FALSE
    16.515: Inventory complete: ReturnStatus=0, 7797 ticks
    16.515: Num Ticks for invent : 7797
    16.547: VerifyTargetFileSize: Unable to verify size as Source = NULL for file c:\windows\inf\HFX269.tmp
    16.578: Copied file:  c:\windows\inf\branches.inf
    38.625: Allocation size of drive C: is 4096 bytes, free space = 4751011840 bytes
    38.625: Drive C: free 4530MB req: 5MB w/uninstall 0MB
    38.625: CabinetBuild complete
    38.625: Num Ticks for Cabinet build : 22110
    38.625: DynamicStrings section not defined or empty.
    38.656: FileInUse:: Detection disabled.
    38.656: FileInUse:: Add to list - Service Name: msiserver
    39.656: LoadFileQueues: UpdSpGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
    40.015: Copied file:  C:\WINDOWS\system32\spmsg.dll
    40.125: PFE2: Not avoiding Per File Exceptions.
    41.734: DoInstallation: Installing assemblies with source root path: e:\6c0499dd2b70eebd34aa8b8c33\
    41.734: Num Ticks for Copying files : 3109
    41.812: Num Ticks for Reg update and deleting 0 size files : 78 
    41.828: DoInstallation: ApplyAdminSystemAclsRecursive for c:\windows\$hf_mig$\KB942288-v3 failed; error=0x00000003
    41.843: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
    43.187: RebootNecessary = 0,WizardInput = 1 , DontReboot = 1, ForceRestart = 0
    Thanks again!! --Jo

  • Install SCCM Client Post Install via MDT 2013

    I want to know best practice on how to install the SCCM client via MDT 2013 as a post install task sequence? Im deploying a lot of machines via MDT offline USB....
    Is it grabbing the ccmsetup folder and using the following command line?
    ccmsetup.exe /noservice /MP:<insert> SMSSITECODE=<insert> smscachesize=10000

    There's no such thing as a "best practice" for most real-world tasks; real-world is different for everyone which means you need to know the details and choose the right things for your environment.
    You need to run the command-line that is appropriate for your environment just like you would for any manual install.
    Without knowing any details about your environment, I would add the SMSMP and FSP properties to the above command-line. If this is truly an offline install, you shouldn't use /mp though, you should use /source and point it at the client directory.
    Jason | http://blog.configmgrftw.com | @jasonsandys

Maybe you are looking for

  • Text Messaging Error & Software Update Error

    I got the Blackberry Q10 on Saturday (6.17) and had some issues with text messaging, so I went to Verizon last night (6.17) after two days of having issues. They gave me another blackberry Q10 in hopes that my original phone just had a glitch in it,

  • Different currencies for multiple line items in a AP invoice?

    Hi, Expert, Is it possible to assign different currencies for multiple line items in a AP invoice? Eg: One vendor is supplying raw materials from different regions, and we have to raise one invoice with different currency rate  to each items  regards

  • Rescue stereo audio fades from a mono project

    On Premiere Pro CS3 I accidentally created a project with a mono master audio track. The live audio is in fact mono, but the backing music which fades in and out is stereo. I can't see any way to convert the master track to stereo (or find any advice

  • Optimizing forms

    Hi Could somebody point me in the direction of information about monitoring and optimizing performance of forms 4.5 / developer 2000 i would be very grateful. I'm currently using explain plan,trace and tkprof. TIA Tony

  • My iPod 5 won't take pictures

    my ipod 5 hasn't been letting me take pictures for a WHILE now. Probably about 2 months     its on my inner camera because when I bought my iPod it didn't even come with a back camera which I think is freaking stupid. I've tried everything! I'm done