03 2011 档案

摘要:[system.Reflection.Assembly]::LoadWithPartialName("System.ServiceProcess")|out-NullfunctionGet-ServiceStartupMode{param([string]$servicename,[string]$serverName)$startMode=gwmiwin32_service-filter"NAME='$servicename'"-computername$serverName|Select-PropertyStartMode$start 阅读全文
posted @ 2011-03-25 18:08 chunchill 阅读(427) 评论(0) 推荐(0)
摘要:#Declare location of the files to be copied $SourceShortcut = "UNC Path" $SourceBGInfoExec = "UNC Path" $SourceBGInfoBMP = "UNC Path" $ServerPath = "c:\Temp\2008Servers.txt"#Get List of Servers $servers = Get-Content -Path $ServerPath#Loop Through Servers Fore 阅读全文
posted @ 2011-03-24 08:31 chunchill 阅读(551) 评论(0) 推荐(0)
摘要:Snippet: Recursively Copy Folder (with excludes) in PowerShell (PowerShell) Title: Recursively Copy Folder (with excludes) in PowerShell Language: PowerShell Description: This function recursively copies a folder and all subfolders while allowing you to properly exclude certain items. Views: 431 Aut 阅读全文
posted @ 2011-03-24 08:18 chunchill 阅读(305) 评论(0) 推荐(0)
摘要:Restart-Service (recursively)http://bsonposh.com/archives/545I often need to restart services on multiple machines and one of the biggest issues is the dependent services that also need to be restarted. I finally found time to write a script that will recursively stop and start dependent services.Pa 阅读全文
posted @ 2011-03-22 08:42 chunchill 阅读(302) 评论(0) 推荐(0)
摘要:Restarting IIS (IIS 6.0)http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/95826e7a-bac4-4e1f-bcb6-c52d49c9d7f4.mspx?mfr=trueYou might need to restart Internet Information Services (IIS) before certain configuration changes take effect or when applications become unavailable. 阅读全文
posted @ 2011-03-22 08:40 chunchill 阅读(507) 评论(0) 推荐(0)
摘要:http://technet.microsoft.com/en-us/library/ee198770.aspxStopping and Starting Dependent Services Microsoft® Windows® 2000 Scripting GuideService dependencies are especially important when you try to stop services. To stop an antecedent service, you must first stop the dependent services. F 阅读全文
posted @ 2011-03-22 08:37 chunchill 阅读(307) 评论(0) 推荐(0)
摘要:文档类型定义(DTD)可定义合法的XML文档构建模块。它使用一系列合法的元素来定义文档的结构。DTD 可被成行地声明于 XML 文档中,也可作为一个外部引用。内部的 DOCTYPE 声明假如 DTD 被包含在您的 XML 源文件中,它应当通过下面的语法包装在一个 DOCTYPE 声明中:<!DOCTYPE 根元素 [元素声明]>带有 DTD 的 XML 文档实例(请在 IE5 以及更高的版本打开,并选择查看源代码):<?xml version="1.0"?><!DOCTYPE note [ <!ELEMENT note (to,from, 阅读全文
posted @ 2011-03-02 10:06 chunchill 阅读(248) 评论(0) 推荐(0)