runxinzhi.com
首页
百度搜索
深入浅出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 } } } } } }
相关阅读:
linux NFS 的安装准备
linux Sersync 参数说明
linux测试 Sersync 是否正常
linux开启 Sersync 守护进程进行数据同步
linux 配置 Sersync
Sersync 上配置 Sersync 服务
linux Sersync 上配置客户端
PowerDesigner一些小技巧
C# System.Attribute(验证类)
C#:实体类中做数据验证
原文地址:https://www.cnblogs.com/mingle/p/2308201.html
最新文章
[LeetCode]Insert Interval 考虑多种情况
D堆的实现
Regex 手机号 座机 正則表達式
UVA10317- Equating Equations(回溯+剪枝)
构建基于Javascript的移动web CMS——Hello,World
tail 命令只查看日志中的关键字所在行信息
为Druid监控配置访问权限(配置访问监控信息的用户与密码)
firefly的环境搭建(2013年9月25日最新,win下最详图文)
Firefly——dbentrust 示例DEMO (源码+教程)
Firefly Http通信简单介绍
热门文章
[笨木头FireFly 02]入门篇2_客户端发送请求,服务器处理请求
[笨木头FireFly01]入门篇1·最简单的服务端和客户端连接
以守护进程方式启动firefly
ActivePython2.7 +Firefly1.2.2+WIN7服务器搭建过程(已通过)
firefly笔记一之http模块
firefly 环境配置所需工具
firefly 框架 结构图
linux 验证 NFS 是否成功
linux NFS 客户端的安装
linux NFS 服务器的安装
Copyright © 2020-2023
润新知