新进化论

道生一,一生二,二生三,三生万物。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年7月23日

摘要: 此处指的是windows7 1.防火墙设置 开启wmi,remote admin,防火墙远程管理 可以使用命令行 netsh advfirewall export "C:\temp\WFconfiguration.wfw" netsh advfirewall import "C:\temp\WFconfiguration.wfw" 2.修改Powershell执行策略Set-Execution... 阅读全文
posted @ 2014-07-23 11:24 岌岌可危 阅读(291) 评论(0) 推荐(0) 编辑

摘要: 1.导出防火墙规则 netsh advfirewall export “c:\advfirewall.wfw” 2.禁用防火墙 netsh firewall set opmode disable 3.打开端口 netsh firewall set portopening tcp 445 smb enable 阅读全文
posted @ 2014-07-23 10:43 岌岌可危 阅读(204) 评论(0) 推荐(0) 编辑

摘要: 1.Get-WmiObject -Class Win32_NetworkAdapterConfiguration `-filter "IPEnabled = $true"2.Get-WmiObject -Class Win32_NetworkAdapter | Format-Table -Property Name, NetConnectionStatus -AutoSize3.netsh int... 阅读全文
posted @ 2014-07-23 10:21 岌岌可危 阅读(410) 评论(0) 推荐(0) 编辑

摘要: 1.日期作为变量当做文件名的一部分. C:\Documents and Settings\Simon>echo %date%2008-09-09 星期二 C:\Documents and Settings\Simon>echo %date:~5,5%09-09 如果我们需要加入自订的分隔符,比如想要YYYY--MM--DD的格式,只需要分别取出YYYY, MM, DD再连接起来即可:C:\Docu... 阅读全文
posted @ 2014-07-23 00:39 岌岌可危 阅读(352) 评论(0) 推荐(0) 编辑