User Profile
hasanemresatilmis
MCT
Joined 6 years ago
User Widgets
Recent Discussions
Re: Remote Desktop users have access to shutdown/restart, how disable these ?
Hi LeatherHelpDesk, Yes you're right. I couldn't understand mjm1231's question before. But I understand now. mjm1231, If you apply the policy to the OU where the Terminal servers are located and enable the Group Policy Loopback Processing Mode in the same policy, I think your problem will be solved. You can enable Group Policy Loopback Processing Mode in the same policy from the Group Policy setting below. Computer Configuration > Policies > Administrative Templates > System > Group Policy > Configure user Group Policy loopback processing mode Merge: When selected, user policies linked to computer OU will be applied along with the other user policies that linked to the user OU. If any conflicting setting between policies, GPO will process them normally based on the link order. Replace: When selected, user policies linked to computer OU will override the other user policies that linked to the user OU.97KViews0likes1Comment- 2.3KViews0likes0Comments
Re: Script for SCCM Help please
Hi ToptechnicalSolutions, You don't need this configuration for "All Desktop and Server Clients". When you deploy OS via Task Sequence, computers will install SCCM agent automatically. Also computers will add to "All Desktop and Server Clients" collection automatically. So you don't need that task sequence step for this collection. You need this configuration for HP EliteBook 830 G8. You can add Task Sequence step for that collection which name "HP EliteBook 830 G8". Properties tab: cmd /c powershell.exe -Command "&{$Me = $Env:COMPUTERNAME; Invoke-command -Computername YOURSITESERVER -ArgumentList $Me -scriptblock {param($Me)Import-Module ConfigurationManager; cd YOURSITECODE:; $Computer = Get-CMDevice -Name $Me; if ($Computer){Add-CMDeviceCollectionDirectMembershipRule -CollectionName 'HP EliteBook 830 G8' -Resource $Computer}}}" YOURSITESERVER (ConfigMgr Site Server Name, or anywhere with the ConfigMgr Console / Cmdlets installed) YOURSITECODE (Site Code) Change the “Run this step as…” account to an account that has the necessary permissions on the site server Options Tab: Add Condition -> Query WMI WQL Query: SELECT * FROM Win32_ComputerSystem WHERE Model LIKE "%HP EliteBook 830 G8%"2.1KViews0likes10CommentsRe: Script for SCCM Help please
Hi ToptechnicalSolutions, You can add a Run Commandline step to your task sequence Properties Tab: Paste the code below into the Command line window cmd /c powershell.exe -Command "&{$Me = $Env:COMPUTERNAME; Invoke-command -Computername MYSITESERVER -ArgumentList $Me -scriptblock {param($Me)Import-Module ConfigurationManager; cd ABC:; $Computer = Get-CMDevice -Name $Me; if ($Computer){Add-CMDeviceCollectionDirectMembershipRule -CollectionName 'COLLECTIONNAME' -Resource $Computer}}}" MYSITESERVER (ConfigMgr Site Server Name, or anywhere with the ConfigMgr Console / Cmdlets installed) ABC (Site Code) COLLECTIONNAME (The name of the target collection) Change the “Run this step as…” account to an account that has the necessary permissions on the site server Options Tab: Add Condition -> Query WMI WQL Query: SELECT * FROM Win32_ComputerSystem WHERE Model LIKE "%HP EliteBook%"2.1KViews0likes12CommentsRe: Script for SCCM Help please
Hi ToptechnicalSolutions, This link will help you to add a device to a collection during your OS deployment via Task Sequence. Add a Device to a Collection during a Task Sequence (smsagent.blog) After you add that step your task sequence, You can add a WMI query for define HP EliteBooks on options tab. I think that will solve your problem.4.1KViews0likes14CommentsRe: Script for SCCM Help please
Hi ToptechnicalSolutions, Your query for HP EliteBook 830 G8 NoteBook PC seems correct for HP EliteBook G8 Collection. So you don't need a script for new HP ElifteBook 830 G8 NoteBook PCs. They will move automatically in your HP EliteBook G8 collection when your OS installation completed and installed SCCM Client Agent on PCs. You don't need any action for moving new PCs into the collection. When you remove PCs which manually added to the collection and right click to collection select update membership, the PCs will add to the collection automatically. Also new PCs which is same model will.4.1KViews0likes22CommentsRe: Script for SCCM Help please
Hi ToptechnicalSolutions, If you have to add computers manually to collection it seems your query is wrong. When your query is correct you won't need any script for move computers to the collection. They will move automatically. Let's fix it. Could you check that below : 1. Right click a computer in your collection and select start -> Resource Explorer. 2. Find to Hardware -> Computer System -> Model If there is HP EliteBook 830 G8 and you want to computers which model is HP EliteBook 830 G8: select * from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model = "HP EliteBook 830 G8" If you want to all HP EliteBook not only 830 G8: select * from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model like "%HP EliteBook%"4KViews0likes24CommentsRe: Script for SCCM Help please
Hi ToptechnicalSolutions, You can use this script for devices which devices in HP EliteBook collection. #SCCM Installation Path CD 'D:\Program Files\Microsoft Configuration Manager\AdminConsole\bin' #Import Module Import-Module .\ConfigurationManager.psd1 #Enter Site (EHS is my site code) Set-Location EHS: #Getting Devices by Collection Name $Devices = Get-CMCollectionMember -CollectionName "HP Elitebooks" #Add EnableBitlocker Variable and value foreach ($Device in $Devices) { New-CMDeviceVariable -DeviceName $Device.Name -VariableName "EnableBitLocker" -VariableValue "True" -IsMask 0 }4.1KViews1like30CommentsRe: Script for SCCM Help please
Hi ToptechnicalSolutions, I understand you want to Enable Bitlocker for only HP EliteBook models. Is it right? If your answer is yes please try that method which is below. Task Sequence -> Add -> Disk -> Enable Bitlocker Properties Tab -> Configure your settings Options Tab -> Add Condition -> Query WMI -> SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%HP Elitebook%” -> OK. Best Regards4.1KViews0likes33Comments
Recent Blog Articles
No content to show