- 博客(7)
- 资源 (2)
- 收藏
- 关注
转载 IIS 站点和应用程序池导入导出
Exporting and Importing Sites and App Pools from IIS 7 and 7.5 When using multiple IIS server in a Load Balanced Environment it will be alot of work to create all your website twice with the same se
2016-05-17 12:47:25
1368
转载 download and install Mongo db
# Taken from: http://blogs.msdn.com/b/daiken/archive/2007/02/12/compress-files-with-windows-powershell-then-package-a-windows-vista-sidebar-gadget.aspx function Extract-Zip { param([string]$zipfilena
2016-05-13 15:29:20
625
原创 Windows日志管理相关脚本
Ex.1: get-childitem c:\inetpub\logs\LogFiles -recurse | where {$_.lastwritetime -lt (get-date).adddays(-30) -and -not $_.psiscontainer} |% {remove-item $_.fullname -force -verbose} Ex.2: #
2016-05-13 15:19:01
928
转载 VM扩展名类型
.nvram This is the file that stores the state of the virtual machine's BIOS. .vmdk This is a virtual disk file, which stores the contents of the virtual machine's hard disk drive. .vme
2016-05-13 15:17:10
604
原创 Delete log files longer than 45 days
$DirectoryFiles = "D:\LogFiles" $FilesOlderThan = 45 $DeletedFiles = 0 $FilesNotDeleted = 0 $TempFiles = Get-ChildItem $DirectoryFiles -Recurse If ($TempFiles -ne $null) { foreach ($Files2Delete
2016-05-13 15:14:57
473
原创 Deploy NRPE config files
#定义服务器列表 $serverlist = Get-Content e:\test.txt #样本文件MD5值 $cfgmd5 = Get-MD5 c:\nrpe_nt\bin\Standard_nrpe_commands.cfg #定义CFG源文件 $scfg_file = "c:\deploy\Standard_nrpe_commands.cfg" #定义plugin源文件 $dplu
2016-05-13 15:13:37
471
原创 Powershell check server patch status
$hash=@{} $Session = New-Object -ComObject Microsoft.Update.Session $Searcher = $Session.CreateUpdateSearcher() $hash[$env:Computername] = $Searcher.QueryHistory(1,1) | select -ExpandProperty Date -Er
2016-05-13 15:04:45
599
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅