Simple, but nice script to install the ConfigMgr Client

This is simple, but nice script to install the ConfigMgr Client – very handy in transition phases.

‘Install-CMClient.vbs
on error resume next

Dim currentVer
currentVer = “5.00.7711.0000”

‘Init common variables
Dim wshShell
Dim objFileSystem
Set wshShell = wscript.CreateObject(“wscript.Shell”)
Set objFileSystem = CreateObject(“scripting.FileSystemObject”)

‘Main Flow
If CheckSCCM = False Then
InstallSCCMAgent
ElseIf CheckSCCMVersion maxVer Then
maxVer = thisVer
End If

Next
CheckSCCMVersion = maxVer
End Function

Feel free to comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.