美文网首页
office365 添加guest account

office365 添加guest account

作者: 山猪cn | 来源:发表于2018-11-13 15:05 被阅读0次

office365 admin center 并不能添加guest用户,只能删除。添加guest用户,需要登录Azure ad portal。

office365 admin center

登录Azure ad 邀请添加guest

但是这样做之后,仅仅能够将guest用户加入office365 group,而无法将其加入distribution group

将guest用户加入distribution group

关键命令:

#asks for office 365 credentials and stores them in

$UserCredentials$UserCredential = Get-Credential

#sets remote execution policy

Set-ExecutionPolicy RemoteSigned

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

# User prompts

$member = read-host -Prompt "Member [name_domain#EXT#]"

$identity = read-host -Prompt "DL Identity"

# add to DL

Add-DistributionGroupMember -Identity $identity -Member $member

# wait for user to hit any key incase there is an error

Write-Host -NoNewLine 'Press any key to continue...';

$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');

图例:

guest用户在office的安全策略设置

相关文章

  • office365 添加guest account

    office365 admin center 并不能添加guest用户,只能删除。添加guest用户,需要登录Az...

  • windows文件共享允许匿名访问

    启用guest用户 文件选择共享,添加everyone 在组策略里面去掉这行guest用户

  • 记几个CMD命令

    给guest用户设置密码 启用Guest用户 将Guest用户添加到管理员组 删除文件 删除目录。 MS-DOS命...

  • RabbitMQ中遇到的坑(持续更新)

    坑1: 背景:由于我不想使用默认用户guest(默认的guest在远程连接时需要修改配置文件才能登录),所以新添加...

  • linux下 clion 激活

    clion版本:2022.2.4 方法: 修改host, 添加 0.0.0.0 account.jetbrains...

  • Rabbitmq初始化

    添加远程登录用户 默认的用户guest不能远程连接, 所以需要添加一个远程连接的用户 添加用户 设置角色 添加权限...

  • 初始化机场

    wyun_guest需要添加的地方 1: oauth_clients需要添加一条记录image.png INSER...

  • RabbitMq 可视化详解

    用户操作 添加用户 1.默认会提供一个默认用户guest,密码也是guest,线上环境需要创建一个新用户,并把gu...

  • 免费账户真机调试

    xcode -> preferences... -> account -> 添加开发者账号(Apple ID)登录...

  • Outlook添加office365账户

    1.1 打开Outlook>>下一步 1.2 下一步 1.3 填写姓名,电子邮件地址,密码>>下一步 1.4 再次...

网友评论

      本文标题:office365 添加guest account

      本文链接:https://www.haomeiwen.com/subject/vcqlfqtx.html