随笔分类 -  Powershell

摘要:先安装PDF Creator。 http://rj.baidu.com/soft/detail/10500.html?ald 把他设置为默认打印机。 在IE中设置打印页面的边距,页眉页脚等。 Powershell脚本 Bat 调用 阅读全文
posted @ 2016-11-03 15:10 batter152 阅读(907) 评论(0) 推荐(0)
摘要:代码如下,先卸载,然后删除,然后添加,然后安装。卸载之后会重启IIS,所以等待几秒钟,直到卸载完成。添加snapin$snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'} if ($s... 阅读全文
posted @ 2015-10-24 22:42 batter152 阅读(352) 评论(0) 推荐(0)
摘要:在任何站点中,点Add App,然后点Sharepoint Store,如果没有Enable apps,打开app store的时候出出现错误:Sorry, apps are turned off. If you know who runs the server, tell them to enab... 阅读全文
posted @ 2015-08-18 09:18 batter152 阅读(752) 评论(0) 推荐(0)
摘要:# Using powershell code, update the user profile base on the XML file.# Date: 2015-01-29# Update New User Property$snapin = Get-PSSnapin | Where-... 阅读全文
posted @ 2015-01-30 09:00 batter152 阅读(254) 评论(0) 推荐(0)
摘要:#Write-Host "Loading SharePoint Powershell Snapin..." #Add-PSSnapin "Microsoft.SharePoint.Powershell" $spWeb = Get-SPWeb -Identity http://xxxxxxxx$... 阅读全文
posted @ 2015-01-26 10:16 batter152 阅读(333) 评论(0) 推荐(0)
摘要:当打开Infopath表单,出现如下错误信息的时候,表明Server State Service未安装:The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Ser... 阅读全文
posted @ 2014-11-14 12:46 batter152 阅读(239) 评论(0) 推荐(0)