导航

2010年5月19日

摘要: 微软提供了PowerShell 2.0快速参考的文档,但将每两张图拼在了一页中,A4纸无法打印。(用A4纸打印出来的字太小。)所以我将这些图拷贝成了单独的图片,可用来打印到A4纸上随时参考:1. PowerShell Quick Reference Page I2. PowerShell Quick Reference Page II3. PowerShell Quick Reference Page III4. PowerShell Quick Reference Page IV 阅读全文

posted @ 2010-05-19 18:22 FryFish 阅读(252) 评论(0) 推荐(0) 编辑

摘要: 1. 用PowerShell创建一个SharePoint内容对象创建一个自定义列表:$SPSite = New-Object Microsoft.SharePoint.SPSite("http://inno"); $OpenWeb = $SpSite.OpenWeb(); $TemplateType = $OpenWeb.ListTemplates["自定义列表"]; $OpenWeb.Lists... 阅读全文

posted @ 2010-05-19 17:58 FryFish 阅读(216) 评论(0) 推荐(0) 编辑

摘要: 1. 获取一个集合的数量@(get-process | where-object {$_.Name -eq "SERVICE1"}).count注意:如果不加“@”,当count为0时将返回空(而非0)。 2. 创建自定义方法function FindDefaultPrinter{ Get-WMIObject -query "Select * From Win32_Printer Where... 阅读全文

posted @ 2010-05-19 17:46 FryFish 阅读(249) 评论(0) 推荐(0) 编辑

摘要: PowerShell命令别名对照表:别名标准名称acAdd-ContentasnpAdd-PSSnapInclcClear-ContentcliClear-ItemclpClear-ItemPropertyclvClear-VariablecompareCompare-ObjectcpiCopy-ItemcppCopy-ItemPropertycvpaConvert-PathdbpDisable-... 阅读全文

posted @ 2010-05-19 17:40 FryFish 阅读(538) 评论(0) 推荐(0) 编辑

摘要: 参见:http://www.cnblogs.com/awpatp/archive/2010/02/15/1668327.html 阅读全文

posted @ 2010-05-19 17:24 FryFish 阅读(129) 评论(0) 推荐(0) 编辑

摘要: 凌云所在的工作环境中使用了一台32位的Windows server 2003的服务器,再上面装了WSS3.0 SP2版本,做了几个部门级的站点, 对外共享一些数据。随着新版本的SharePoint Foundation 2010 正式版发行,看到有这么多的新特性,于是 特别想试一下新版本的功能,于是有了这次的实验。 经过多次思考,最终确定了实验方法,以下是测试的记录: 1.在64位Windows... 阅读全文

posted @ 2010-05-19 17:04 FryFish 阅读(310) 评论(0) 推荐(0) 编辑

摘要: Windows 7中用户头像图片文件保存在如下位置:C:\ProgramData\Microsoft\User Account Pictures\Default Pictures和C:\ProgramData\Microsoft\User Account Pictures\ 阅读全文

posted @ 2010-05-19 16:42 FryFish 阅读(915) 评论(0) 推荐(0) 编辑