<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://sufan.maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://sufan.maytide.net/read.php/1557.htm</link>
<title><![CDATA[[GPO] 利用 GPO 实施部署 BgInfo]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Windows Server]]></category>
<pubDate>Thu, 16 Feb 2012 04:04:39 +0000</pubDate> 
<guid>https://sufan.maytide.net/read.php/1557.htm</guid> 
<description>
<![CDATA[ 
	<p><img border="0" src="http://goxia.maytide.net/up/1163131140.jpg"> 利用 GPO 实施部署 BgInfo</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://technet.microsoft.com/en-us/sysinternals/bb897557" target="_blank">Bginfo</a> 是 <a href="http://technet.microsoft.com/en-us/sysinternals/default" target="_blank">Windows Sysinternals</a> 系列的一个小工具，利用 Bginfo 我们可以生成一张包含系统信息的桌面背景。在桌面标准化应用方面非常有价值，此外在测试或评估环境下，也是 ITPro 常用的工具，例如 <a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 经常要搭建一个虚拟化测试环境，包含数台虚机，频繁在虚机间切换时能够获取到当前系统的相关信息就显得尤为重要，而 Bginfo 完全能够为我们解决此类的问题。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/7a048d4f3638_A0D2/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/7a048d4f3638_A0D2/image_thumb.png" width="644" height="306"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bginfo 的使用非常简单，而且支持命令行，不用 gOxiA 再多介绍。常见的实施部署方法可以预先在 VHD Templates 的启动项添加命令行或脚本，如果环境是基于 AD（Active Directory）那么就可以使用 GPO 来统一的为客户端部署。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/7a048d4f3638_A0D2/image_3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/7a048d4f3638_A0D2/image_thumb_3.png" width="644" height="484"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下面将就利用 GPO 实施部署 Bginfo 来与大家分享一下经验心得，gOxiA 当前的环境是基于 Windows Server 2008 R2 的 AD，环境中有 Windows Server 2008 R2 和 Windows 7，默认设置并启用了 UAC。要通过 GPO 实施部署 Bginfo，我们需要用到命令行、脚本文件以及 Bginfo 的模板。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;首先，打开 Bginfo 创建一个标准的模板并将其另存为一个扩展名为 bgi 的文件，如：template.bgi，然后将这两个文件保存在“＼＼dc＼netlogon＼bginfo”子目录下，然后再单独创建一个批处理脚本文件，如：bginfo.bat，内容如下：</p> <p><div class="code">＼＼dc＼netlogon＼bginfo＼bginfo.exe ＼＼dc＼netlogon＼bginfo＼template.bgi /nolicprompt /timer:0</div></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;然后，在 DC 上打开组策略管理，找到“Default Domain Policy”这条 GPO 并进行编辑。展开“用户配置”-“策略”-“Windows 设置”-“脚本（登录/注销）”，编辑“登录”属性。在“脚本”选项卡下点击“显示文件”，就会打开登录脚本存储的目录，然后将之前已经做好的 bginfo.bat 拷贝到这个目录中，然后回到”脚本“选项卡进行”添加“选择 bginfo.bat，完成后确定退出。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/7a048d4f3638_A0D2/image_4.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/7a048d4f3638_A0D2/image_thumb_4.png" width="644" height="484"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最后在 DC 和 Client 上执行“gpupdate /force”之后 GPO 就生效了，重新注销登录 Client，就可以看到最终的效果。</p><br/>Tags - <a href="https://sufan.maytide.net/go.php/tags/microsoft/" rel="tag">microsoft</a> , <a href="https://sufan.maytide.net/go.php/tags/windows/" rel="tag">windows</a> , <a href="https://sufan.maytide.net/go.php/tags/sysinternals/" rel="tag">sysinternals</a> , <a href="https://sufan.maytide.net/go.php/tags/bginfo/" rel="tag">bginfo</a> , <a href="https://sufan.maytide.net/go.php/tags/server/" rel="tag">server</a> , <a href="https://sufan.maytide.net/go.php/tags/2008/" rel="tag">2008</a> , <a href="https://sufan.maytide.net/go.php/tags/r2/" rel="tag">r2</a> , <a href="https://sufan.maytide.net/go.php/tags/7/" rel="tag">7</a> , <a href="https://sufan.maytide.net/go.php/tags/gpo/" rel="tag">gpo</a>
]]>
</description>
</item>
</channel>
</rss>