Howto Force remote clients to update their Sccm clients Machine Policy Retrieval & Evaluation Cycle via Powershell

Hello!

Here is some script to force a Sccm Client’s Machine Policy Cycle on remote client in a domain.

But first. You need to be sure you have enable the service “Windows Remote Managment” on that client in the domain.
And be sure you run the script in correct logon context.

Link: http://msdn.microsoft.com/en-us/library/aa384372(v=vs.85).aspx

Script:

$ComputerName = Read-host("Enter The computername")</code>

<code>Invoke-Command -ComputerName $ComputerName -ScriptBlock {
Invoke-WmiMethod -Namespace "Root\CCM" -Class SMS_Client -Name TriggerSchedule -ArgumentList "{00000000-0000-0000-0000-000000000021}"
}

Lämna ett svar

E-postadressen publiceras inte. Obligatoriska fält är märkta *

Tool – Application Folder Builder 1.0.0.1

I Made a tool again. This time I meet a problem in Application Packaging Project. Where we wanted to collect our applications we packed in one sorted folder place. So

Howto – Connect to Configuration Manager 2012 from Powershell

Hi, Emil here. Have you ever wonder howto connect to a configuration manager 2012 site from Powershell? Okay, follow the steps below to success: Requirements: SCCM 2012 Console Powershell 3.0

404 Server Error on CMApplicationCatalog – SCCM 2012

When you install “Application Catalog web service point” and “Application Catalog website point” in SCCM 2012 you get 404 Error when browsing http://SCCMserver/CMApplicationCatalog. To fix this you need to enable/activate