简单说下方法,首先通过命令,secedit /export /cfg model.inf 导出组策略配置信息,然后根据需要的Windows安全基线修改组策略,修改后再次用之前命令导出model2.inf,然后使用脚本过滤出不同部分,具体对应信息如下:1.1 审核口令设置安全策略密码必须符合复杂性要求 PasswordComplexity = 1密码长度最小值 MinimumPasswordLength = 8密码最长使用期限 MaximumPasswordAge = 42密码最短使用期限 MinimumPasswordAge = 1强制密码历史 PasswordHistorySize = 5用可还原的加密来储存密码 ClearTextPassword = 0复位帐户锁定计时器 ResetLockoutCount = 15帐户锁定时间 LockoutDuration = 15帐户锁定阈值 LockoutBadCount = 151.2 审核策略审核策略更改:AuditPolicyChange = 3审核登录事件:AuditLogonEvents = 3审核对象访问:AuditObject
powercfg -h off
众所周知,在微软的Hyper-V环境中的网络环境中没有VMware Workstation中的NAT功能,所以Hyper-V环境中虚拟机上网一般情况下需要通过设置为外部网络方可访问网络,当然也可设置为内部网络(前提需要共享我们现有的Internet链接),因个人正好构建实验环境,所以有此一文章。首先介绍一下Hyper-V中的虚拟网络中的几个名词:“外部”虚拟网络,是Hyper-V通过将“Microsoft虚拟交换机协议”绑定在主机网卡上实现的。如果虚拟机选择“外部”虚拟网络,则虚拟机“相当”于网络中的一台计算机,是可以与物理网络中的其他计算机、主机互相访问。“内部”虚拟网络,只允许虚拟机与主机互相访问,不能访问外部(物理网络上的计算机或外部网络,例如Internet),外部也不能访问“内部”的虚拟机。“专用”虚拟网络,只允许虚拟机之间互相访问,与物理主机也不能互相访问。在同一个物理主机中,“内部”、“外部”、“专用”虚拟网络,相当于物理网络中的不同的“交换机”,它们之间没有网络关系。当然在同一个物理主机中,也可以有多个“内部”、“外部”、“专用”虚拟网络,即使都是“内部”或“专用”虚拟
@echo off echo 正在清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %windir%\*.bak del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /q %userprofile%\cookies\*.* del /f /q %userprofile%\recent\*.* del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" del /f /s /q
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="WWW Redirect" stopProcessing="true"><match url=".*" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false"><add input="{HTTP_HOST}" pattern="^oiplay.com$" /></conditions><action type="Redirect" url="http://www.oiplay.com/{R:0}" redirectType="Permanent"/></rule><rule name="已导入的规则 1" stopProcessing="true"><mat