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 } } } } } }
查看全文
相关阅读:
数列变形中隐含条件的指向作用
有效挖掘题目中的隐含条件[高阶辅导]
三角模板函数使用示例
【Machine Learning in Action --2】K-近邻算法构造手写识别系统
【Machine Learning in Action --2】K-近邻算法改进约会网站的配对效果
Python使用os.listdir()函数来获得目录中的内容
【python问题系列--1】SyntaxError:Non-ASCII character 'xe5' in file kNN.py on line 2, but no encoding declared;
【Python爬虫实战--1】深入理解urllib;urllib2;requests
Centos7下安装numpy+matplotlib+scipy
【Machine Learning in Action --1】机器学习入门指南
原文地址:https://www.cnblogs.com/mingle/p/2308201.html
最新文章
laravel5集成支付宝alipay扫码支付流程(Laravel 支付解决方案)
觉得正则很难,那是因为你没有看这个
javascript常用的41个经典技巧
php 获取今日、昨日、上周、本月的起始时间戳和结束时间
AJAX跨站处理解决方案
javascript操作cookie
Beanstalkd 消息队列
cron和crontab命令详解 crontab 每分钟、每小时、每天、每周、每月、每年定时执行 crontab每5分钟执行一次
linux定时任务crontab 实现如何每秒执行一次!
MySql数据库优化
热门文章
数据库_Redis 入门基础到高级
缓存MEMCACHE 使用原子性操作add,实现并发锁
缓存MEMCACHE php调用(一)
php原子操作,文件锁flock,数据库事务
利用定义式求圆锥曲线方程
2018年全国卷Ⅰ卷理科数学图片版
2018年全国卷Ⅱ卷理科数学图片版
2018年全国卷Ⅲ卷理科数学图片版
数列中的傻瓜式运算
数列的单调性和最值
Copyright © 2011-2022 走看看