powershell 用于将Active Directory组添加到Active Directory的Powershell脚本
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 用于将Active Directory组添加到Active Directory的Powershell脚本相关的知识,希望对你有一定的参考价值。
Import-Module ActiveDirectory
New-ADGroup -Name "SP-MSBAnnouncementsMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBManagementMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBManagementOwners" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBManagementVisitors" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBPrivatetMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBPrivateOwners" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBPrivateVisitors" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBDocsAllStaffMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBDocsAllStaffOwners" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBDocsAllStaffVisitors" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBLinksStaffMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBLinksAllStaffOwners" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBLinksAllStaffVisitors" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBMbsLinksStaffMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBMbsLinksAllStaffOwners" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBMbsLinksAllStaffVisitors" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBProjectStaffMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBProjectAllStaffOwners" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBProjectAllStaffVisitors" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBPTOCalendarMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBPTOCalendarOwners" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBTeamDisscussVisitors" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBTeamDisscussMembers" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBTeamDisscussOwners" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
New-ADGroup -Name "SP-MSBPTOCalendarVisitors" -Path "ou=SharePoint Security,ou=Groups,dc=scu,dc=local" -groupScope Global
以上是关于powershell 用于将Active Directory组添加到Active Directory的Powershell脚本的主要内容,如果未能解决你的问题,请参考以下文章
用于检查Active Directory用户上次登录的Powershell脚本
Active Directory 命令在 PowerShell 下工作,但不适用于命令提示符
Azure Active Directory:使用 PowerShell 将服务主体添加到目录读取者角色
使用 Powershell 清理孤立的 Active Directory 用户配置文件文件夹
PowerShell:如何将 1 个用户添加到多个 Active Directory 安全组 - 具有写入权限的安全组的安全选项卡
我可以将 Azure Active Directory 身份验证连接到现有项目吗?