部署SCCM2012后域内PC很快就可以根据规则找到和批量部署客户端,但工作组的PC安装起来却比较麻烦,查看官方文档需要手动安装,具体方法如下:
1、在网卡的IP地址设置的高级选项里配置DNS和WINS地址(DNS地址为DC地址,WINS地址为SCCM服务器IP地址)
命令行:netsh interface ip set wins "本地连接" static 10.100.2.15
2、在hosts文件添加SCCM服务器IP地址(SCCM服务器名及FQDN)
命令行:set hostspath=%windir%\System32\drivers\etc\hosts
echo 10.100.2.15 sccm sccm.jinzhizun.cn >> %hostspath%
3、检查防火墙设置,在允许的程序里“文件和打印机共享”及“Windows Management Instrumentation(WMI)”允许“家庭/工作(专用)”和“公用”打勾。
命令行: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
4、以管理员权限运行SCCM客户端软件安装程序(从SCCM服务器拷贝C:\Program Files\Microsoft Configuration Manager\Client目录到工作组PC,以管理员权限运行CMD,切换到Client目录)
命令行:ccmsetup.exe smssitecode=001 /mp:sccm dnssuffix=jinzhizun.cn
或:ccmsetup.exe smssitecode=001 smsslp=sccm /mp:sccm
或:ccmsetup.exe smssitecode=001 smsmp=sccm.jinzhizun.cn dnssuffix=jinzhizun.cn
5、启动安装安装程序后可以在PC的进程里看到ccmsetup.exe的进程,当进程消失后打开控制面板可以看到CM客户端,打开客户端可以看到管理点及站点配置信息。
6、在SCCM服务端设备里可以看到刚安装的客户端,在属性“资源域或工作组”里显示为“WORKGROUP”
7、批量安装方法:把以上命令行放在一个批处理文件里并和安装客户端client文件打包,拷贝到PC上安装。例如:
@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
· 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.
参考文件:
How to install SCCM2012 Agent with System Center Endpoint Client on Workgroup Computer
http://jackychuasce.blogspot.com/2012/05/how-to-install-sccm2012-agent-with_10.html
如何在 Configuration Manager 基于 Windows 的计算机上安装客户端
https://technet.microsoft.com/zh-cn/library/gg712298.aspx
工作组windows安装Sccm2012Client
http://jif521.blog.51cto.com/848361/1605074