Before you start you must do below step only you can sucessfully install SCCM 2012 Agent with System Center Endpoint Client on your Workgroup Computer. Now with my Batch file it will help you save some time.
Step 1:-
· Add SCCM Server IP Address into Wins
clip_image002
Step2 :-
· Add SCCM Server IP address into Hosts files.
C:\windows\system32\drivers\etc\hosts
Ip address SCCM server name SCCMservername with FQDN.
clip_image004
Step 3:-
· Enable the File and Print Sharing & Windows Management Instrumentation (WMI) in your firewall Rules.
clip_image005
clip_image007
Step 4:-
And go to command prompt and Run as Administrator.
cccmsetup SMSSITECODE=xx1 SMSSLP=sccmservername /mp:sccmservername
Now I am Created a Batch files to make your life easiers...
With this Automatically batch file will do all setting for you with automatically.
To Automatically add SCCM IP into wins with batch file command line at below:-
clip_image008
To Automatically add SCCM Server IP address into Hosts files with batch file command line at below :-
clip_image010
To Automcatically Enable the File and Print Sharing & Windows Management Instrumentation (WMI) in your firewall Rules with batch file command line at below :-
clip_image012
To Automatically install SCCM Agent 2012 with System Center Endpoint Protection command line with below :-
clip_image014
This is the finally batch file when put it into one.
@Echo Off
Echo. Adding the SCCM 2012 server to wins...
netsh interface ip set wins "Local Area Connection" static 192.168.90.135
Echo. Adding SCCM ip address to Host files....
set hostspath=%windir%\System32\drivers\etc\hosts
echo 192.168.90.135 SCCM01.staff.dir SCCM01 >> %hostspath%
Echo. Enable WMI and File and Print sharing at firewall rules....
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=yes
netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable =yes
Echo. Installing SCCM Agent 2012 ...... Please wait...
cd\
c:\SCCM\ccmsetup SMSSITECODE=xx1 SMSSLP=SCCM01 /mp:SCCM01
Copy and save it as Auto install SCCM2012.bat and copy into C:\SCCM folder.
clip_image016
· Always check the c:\windows\ccmsetup\ccmsetup.log file for the progress.
· Run the Machine policy & user Policy under configuration manager.
· Remember go to SCCM Server to Approve your workgroup computer after run the install.
· To Remote control to your Workgroup computer ,remember to add your workgroup computer ip address into your SCCM Server hosts file in order for SCCM Server to remote control to workgroup computer.Key in the administrator id and password for
Example :- Workgroup computername\administrator and password.