摘要: new-spuser -useralias "ibm\10086" -web https://tst15.emdev.azcollaboration.com/operations/Operations/HR -Group "Reporter" 阅读全文
posted @ 2011-08-30 12:31 风影极光 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 说明:目标站点HR中的列表Location中PeopleandGroup 域LSR,需要添加人员$curWeb = Get-SPWeb ""$curWeb = Get-SPWeb "https://tst15.emdev.azcollaboration.com/operations/Operations/HR"[Microsoft.SharePoint.SPList]$curList = $curWeb.Lists["Location"][Microsoft.SharePoint.SPListItem]$curItem = $curL 阅读全文
posted @ 2011-08-30 11:33 风影极光 阅读(214) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint;namespace CR.SharePoint.HR.Common{ public static class PermissionManager { //SPGroup group = web.Groups[0]; //SPUser user = web.Users[0]; //SPUser user2 = web.Ens... 阅读全文
posted @ 2011-08-30 11:10 风影极光 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 场景:我们在客户的VM环境中进行SharePoint的开发工作,由于权限的限制(连IE的设置都无法修改),我们在很多情况除了以Administrator的身份执行应用程序(IE,VS2010,cmd窗口,集成SharePoint的PowerShell命令窗口等)外,我们可能需要拷贝GAC的dll文件,怎么办呢?以下操作以从GAC中拷贝HR系统的Common.dll到D盘为例PS C:\> cd .\WindowsPS C:\Windows> cd .\assemblyPS C:\Windows\assembly> cd .\GAC_MSILPS C:\Windows\asse 阅读全文
posted @ 2011-08-30 11:05 风影极光 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 下文以开发HR的Leave系统并部署为例:安装部署Add-SPSolution -LiteralPath E:\Alfred\Project\SIRS\Workflow\TFS\AZ.SharePoint.SIRS\AZ.SharePoint.SIRS\bin\Debug\sharepoint.leave.wspInstall-SPSolution -Identity sharepoint.leave.wsp -GACDeployment说明:全新部署的方式。如果此解决方案中有多个项目或引用了第三方的dll,即有多个dll程序集文件,需要使用参数-GACDeployment,这样相关引用的dl 阅读全文
posted @ 2011-08-30 10:58 风影极光 阅读(472) 评论(0) 推荐(0) 编辑