zoukankan
html css js c++ java
深入浅出PowerShell——设置用户群组
function SetupUserGroups($site,$owners,$members,$vistors) { if($site -ne $null -and $site -ne "") { $web = $site.OpenWeb() $ownerGroup = $web.AssociatedOwnerGroup $memberGroup =$web.AssociatedMemberGroup $visitorGroup = $web.AssociatedVisitorGroup $xpath = "Identity" if($owners -ne $null -and $owners -ne "") { $users = GetNodes -xmlDoc $owners -xpath $xpath foreach($user in $users) { if($user -ne $null -and $user -ne "") { if($user.InnerText -ne $null -and $user.InnerText -ne "") { New-SPUser -UserAlias $user.InnerText -Web $web -Group $ownerGroup } } } } if($members -ne $null -and $members -ne "") { $users = GetNodes -xmlDoc $members -xpath $xpath foreach($user in $users) { if($user -ne $null -and $user -ne "") { if($user.InnerText -ne $null -and $user.InnerText -ne "") { New-SPUser -UserAlias $user.InnerText -Web $web -Group $memberGroup } } } } if($vistors -ne $null -and $vistors -ne "") { $users = GetNodes -xmlDoc $vistors -xpath $xpath foreach($user in $users) { if($user -ne $null -and $user -ne "") { if($user.InnerText -ne $null -and $user.InnerText -ne "") { New-SPUser -UserAlias $user.InnerText -Web $web -Group $visitorGroup } } } } } }
查看全文
相关阅读:
git的简单操作
angularjs的基础
针对IE8透明度设置及一些简单的兼容问题
sublime 部分常用的快捷键
Linux简单的操作
AngularJS 简单的介绍
html5的viewport与css3的媒体查询
css的优先级的相关内容
(转) vmware 切换桥接模式
从nginx的编译安装,了解编译安装原理(转)
原文地址:https://www.cnblogs.com/mingle/p/2308201.html
最新文章
个人中心标签页导航
首页列表显示全部问答,完成问答详情页布局。
制作首页的显示列表。
发布功能完成。
登录之后更新导航
完成登录功能,用session记住用户名
完成注册功能
通过用户模型,对数据库进行增删改查操作。
c++ stl8选6中的字符串操作题
c++ stl 中stable_patition使用方法(转)
热门文章
魔兽3:开战
山寨istream_iterator
c++类中const函数与mutable变量的使用方法(转)
cstring类详细使用说明!(转载)
神奇的array2
魔兽2:装备
魔兽1:备战
test!!
python 编写ADF 检验 ,代码结果参数所表示的含义
金融数据获取
Copyright © 2011-2022 走看看