I hope this article was able to help you with your SCCM administration as much as it helped it.įinally, don’t forget to check out our SCCM Playlist on YouTube for more SCCM tips and tools. That’s it! The great thing is that we can reuse that code to add more and more machines as needed. Next up we’ll run the little code snippet to execute the job.Īdd-CMDeviceCollectionDirectMembershipRule -CollectionName "Windows 10 Patch Devices" -ResourceID (Get-CMDevice -Name $Computer).ResourceID How to List Installed Software on Multiple Computers Manually: 1. This guide describes how to create a script to list installed software on multiple computers and save the list of installed programs to CSV file. Powershell WMI takes too long to get the information. Information about installed applications should include product name, vendor, version, install path and some other data. There is a need to query many remote servers and get the version of the application and show it on the dashboard. To add a device to a group we’ll leverage the Add-CMDeviceCollectionDirectMembershipRule cmdlet from the SCCM module. I am trying a write an application to fetch the version of the application installed on remote machines. PS PAC:\> New-CMDeviceCollection -Name "Windows 10 Patch Devices" -LimitingCollectionName "All Systems"Īdd Multiple Computers To SCCM Collection Using Powershell Since we’re now on our way to becoming Powershell Wizards we’ll also create the collection in Powershell. In our example we’re going to create a device collection for Windows 10 that needs to be patched. cd PAC:\ Create Device Collection Using Powershell Once you’ve imported the SCCM module you can now change directory into the Primary Site Code. Import-Module ‘C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1’.(Assuming the install dir is on the E Drive) PowerShell I am trying to figure out how to find out what computers have installed older than Microsoft Office 2016 (version 16). Import-Module ‘E:\Program Files\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1’.However, let’s take look at the different paths for different machine types. If you’re doing this on a computer that’s NOT the SCCM site server, you’re going to need to install the SCCM admin console so you can install the binaries needed to connect. I’m very well aware that we can accomplish this task using a query based collection, but what the hey, there might be other scenarios that we’ll need to get the list from a text file or maybe within a cluster from VMware. Let’s say we want to gather a group of Windows 10 devices that need to be patched. In this article I’m going to show you how to add multiple computers to SCCM collection using Powershell as well as make an effort to try to keep everything in the command line. click OK, after about 15 minutes (without a forced gpupdate) the file will start populating as users logon/logoff. Right-click Logon, properties, Add - browse to dcnamenetlogonfilename.cmd. Anytime you’re working with multiple objects its always a good idea to try and streamline the process. Go to User Configuration - Policies - Windows Settings - Scripts.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |