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 } } } } } }
查看全文
相关阅读:
windows使用zip包安装mysql8.0.12
windows使用msi包安装mysql8.0.12
查看mysql的bin-log日志
修改zabbix的端口号
mysql备份脚本并保留7天
上海坤亿
nginx面试题
服务器导入导出数据
轮询和长轮询
Python 三种读文件方法read(), readline(), readlines()及去掉换行符
原文地址:https://www.cnblogs.com/mingle/p/2308201.html
最新文章
redis3集群管理
AndroidStudio设置应用图标
SQLSEVER导出 xml文件
安卓已过时的ProgressDialog对话框
安卓带百分比的进度条显示
Android 连接.net WebService 工具类代码
Oracle 数据 查询 一对多 取最新一条非 0 数据
AMD vs. CommonJS?
java取json 的方法
Mysql使用ReplicationDriver驱动实现读写分离
热门文章
解决Nginx+Tomcat时ContextPath不同的问题
Thymeleaf引擎支持Multi Prefix
SpringMVC底层数据传输校验的方案(修改版)
SpringMVC底层数据传输校验的方案
多War项目中静态文件的共享方案
团队规模缩减时怎么保持战斗力
利用Sharding-Jdbc实现分表
nginx增加新模块
允许远程主机访问数据库
linux使用glibc版本安装mysql8.0.12
Copyright © 2011-2022 走看看