Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Auto-deploy SCCM client agent for specific collection

  • Thread starter Thread starter minhbc1996
  • Start date Start date
  • Replies Replies 11
  • Views Views 8K

minhbc1996

Member
Messages
15
Solutions
1
Reaction score
0
Points
1
Hi guys,
I have a question about deploying a client agent.
Currently, in my SCCM, I have around 10 device collections. But according to our policy, I need to "turn on" the auto-deploy agent for some collection that I need to
For more detail, I already configured the query for each collection to automatically add the device to the collection if it matches the requirement. And I want to auto-deploy an agent for some collections I want so after that, it auto-deploys the client to that device. But for some collections, I don't need to install the agent.
Is there any solution for this? Many thanks
 
Client push work for the site not a collection. However, you can use a computer start up script on a GPO basis.
 
Client push work for the site not a collection. However, you can use a computer start up script on a GPO basis.
The situation is as follows:
I have a Windows server, laptop, and workstation in my company. Those devices have a specific name to recognize. Just as the laptop will have LAPTOP-001, the Workstation is WS-001. In the collection, I have configured the query so they will filter to add devices to the collection. Just as LAPTOP Collection will add every device has a name containing "LAPTOP"
What I want to do: I want to auto-install a client agent to the new device when it has been added to the collection such as for WS and Server. We don't need to install it for the laptop collection.
So any solution for this case?
 
The situation is as follows:
I have a Windows server, laptop, and workstation in my company. Those devices have a specific name to recognize. Just as the laptop will have LAPTOP-001, the Workstation is WS-001. In the collection, I have configured the query so they will filter to add devices to the collection. Just as LAPTOP Collection will add every device has a name containing "LAPTOP"
What I want to do: I want to auto-install a client agent to the new device when it has been added to the collection such as for WS and Server. We don't need to install it for the laptop collection.
So any solution for this case?
There is no built-in option within configMgr for this. At best you can script this but it will not be a simple task.

Again, IMO the GPO logon script is the best option.
 
Hi guys,
I have a question about deploying a client agent.
Currently, in my SCCM, I have around 10 device collections. But according to our policy, I need to "turn on" the auto-deploy agent for some collection that I need to
For more detail, I already configured the query for each collection to automatically add the device to the collection if it matches the requirement. And I want to auto-deploy an agent for some collections I want so after that, it auto-deploys the client to that device. But for some collections, I don't need to install the agent.
Is there any solution for this? Many thanks
The only solution that i see is to package the client installer in ConfigMgr and deploy it as required to the collection that you need. When you add the devices to the collection, the client agent is installed automatically.
 
The only solution that i see is to package the client installer in ConfigMgr and deploy it as required to the collection that you need. When you add the devices to the collection, the client agent is installed automatically.
Many thanks for the solution.
I will try it
 
The only solution that i see is to package the client installer in ConfigMgr and deploy it as required to the collection that you need. When you add the devices to the collection, the client agent is installed automatically.
1704876155331.png
No Deploy option the the SCCM Agent Package :(
 
You can not deploy the agent to a collection as you need the agent to install anything. Again look at the GPO startup script.
Hi. Thanks for your support. I have found my solution:
- Create the folder with full permission for "Everyone"
- Create the batch script which follows those step
1. Check hostname (match with my requirement)
2. Disable UAC temporarily by modifying the registry
3. execute command to install sccm client (server\share\ccmsetup.exe MP: server...)
4. Re-enable UAC by modifying the registry
- Create the GPO that deploys the task scheduler to execute the batch script.
 
oh, one more step in the batch script:
- Check SCCM agent is installed or not
If ccmsetup.exe exists in C:\Windows\ccmsetup that means is already installed, if not, continue to process the install step: disable UAC, execute cmd,...
 
oh, one more step in the batch script:
- Check SCCM agent is installed or not
If ccmsetup.exe exists in C:\Windows\ccmsetup that means is already installed, if not, continue to process the install step: disable UAC, execute cmd,...
A startup script would mean you would not need to adjust UAC. Just saying.
 

Forum statistics

Threads
7,136
Messages
27,873
Members
18,159
Latest member
jordysmits
Back
Top