Hi guys,
I want to use a worklet to install the SCCM client, how would be the evalution code?, when is possible that the machine already has the client installed but pointing to an old sccm server.
This worklet is intended to be used most over remote machines that connect to system center over VPN.
So the evaluation code should check if “C:\Windows\ccmcache” exist or not, and run the remediation code exist or not the folder.
I already has the remediation code ready and tested, just need the evaluation code that allow both conditions, exist or not the ccmcache folder.
i know this code check if the folder exist, but not sure if also will run the remediation code if the folder not exist:
if( Test-Path -Path "C:\Windows\ccmcache" )
{
exit 1
}
i Just need that worklet works exist or not the ccmcache folder
Apprecciate any help.
regards.