今天遇到同事一段脚本,通过WebRequest请求一个web页面,执行多次后就会卡住,并且提示超时。原因:Response占的资源没有释放,Response 实现了IDisposable接口。解决方案:调用$resp.Close()方法,释放资源。 PowerShell 中的WebRequest 执行多次后超时2013年7月13日 在 Powershell / Powershell小技巧 标签 WebRequest 来自 Mooser Lee
伴随着windows 8.1 预览版和Windows Server 2012 R2 预览版的发布,Windows 管理框架 4.0也发布了,其中包含了PowerShell 4.0。在PowerShell 4.0中将引入新的Windows配置模型。DSC Windows PowerShell 4.0 预览版发布2013年7月2日 在 PowerShell团队博客 / PowerShell资讯 标签 PowerShell 4.0 来自 Mooser Lee