彩色筆小沛的知識庫

 找回密碼
 註冊
搜索
查看: 3508|回復: 2

Office 365 相關資料

[複製鏈接]
發表於 2014-1-7 00:17:15 | 顯示全部樓層 |閱讀模式
Active Directory 部份:

  • 如果您使用的AD網域為jjj.local這個假的網域,則可以開啟"Active Directory 網域及信任",於"Active Directory 網域及信任 [xxx.jjj.local]"上滑鼠右鍵"內容",增加 "替用的 UPN 尾碼",這樣接下來新增 AD 使用者帳號時才可以直接設定對應的UPN,如perfect@jjj.tw而不是假網域perfect@jjj.local
  • 新增 AD 使用者帳號: (舊方法)
    dsadd user CN=perfect,OU=cc,DC=jjj,DC=tw -upn perfect@jjj.tw -ln 王 -fn 小明 -display 王小明 -desc 電算中心王小明 -pwd MyPwd12! -pwdneverexpires yes
  • 設定 AD 使用者帳號的 ProxyAddresses,目的是如果Office365帳號寄信出去,看到寄件人會像perfect @jjjtw.onmicrosoft.com,利用修改ProxyAddresses才能將寄件人修正為perfect @jjj.tw
    Set-ADUser perfect -Add @{ProxyAddresses="SMTP:perfect@jjj.tw"}  新增一行(ProxyAddresses可多值)

    Set-ADUser perfect -Replace @{ProxyAddresses="SMTP:perfect@jjj.tw"} 取代(只留這行)

    $user = Get-ADUser perfect -Properties mail,department,ProxyAddresses
    $user.ProxyAddresses = "SMTP:"+$user.UserPrincipalName
    set-aduser -instance $user
  • 新增 AD 使用者帳號(使用PowerShell直接新增,並直接設定ProxyAddresses)
    New-ADUser perfect -UserPrincipalName "perfect@jjj.tw" -GivenName "per" -Surname "fect" -DisplayName "Perfect" -Path "OU=myou,DC=jjj,DC=tw" -PasswordNeverExpires 1 -accountPassword (ConvertTo-SecureString -AsPlainText "123" -Force) -enable 1 -OtherAttributes @{'ProxyAddresses'="SMTP:perfect@jjj.tw"}


Windows PowerShell - Windows Azure Active Directory Module 部份:
系統需求:
接下來才安裝Windows Azure Active Directory Module for Windows PowerShell
Windows Azure Active Directory Module for Windows PowerShell (32-bit version)
Windows Azure Active Directory Module for Windows PowerShell (64-bit version)

連線至Office 365
Connect-MsolService

修改UPN
Set-MsolUserPrincipalName -UserPrincipalName nonperfect@jjj.tw.onmicrosoft.com -NewUserPrincipalName perfect@jjj.tw

修改密碼
Set-MsolUserPassword -userPrincipalName perfect@jjj.tw -NewPassword xxxxxxxx

設定區域
Set-MsolUser -UserPrincipalName perfect@jjj.tw -UsageLocation TW

取消密碼的複雜性原則
Set-MsolUser -UserPrincipalName perfect@jjj.tw -StrongPasswordRequired $false

鎖帳號
Set-MsolUser –UserPrincipalName perfect@jjj.tw -blockcredential $true

解鎖帳號
Set-MsolUser -UserPrincipalName perfect@jjj.tw -blockcredential $false

取得授權列表
Get-MsolAccountSku

設定使用者授權
Set-MsolUserLicense -UserPrincipalName perfect@jjj.tw -Addlicenses jjjjtw:ENTERPRISEPACK_XXXXX


取得Mailbox相關的PowerShell指令
$Cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $Cred -Authentication:Basic -AllowRedirection
Import-PSSession $Session

設定Mailbox時區與語言
Set-MailboxRegionalConfiguration -Identity perfect@jjj.tw -TimeZone "Taipei Standard Time" -Language 1028

Get-Mailbox | Set-MailboxRegionalConfiguration -Timezone "Taipei Standard Time" -Language 1028

Reference:
Office 365 Forum
http://community.office365.com/en-us/forums/default.aspx
Active Directory Cmdlets in Windows PowerShell
http://technet.microsoft.com/en-us/library/ee617195.aspx
Manage Windows Azure AD using Windows PowerShell
http://technet.microsoft.com/en- ... #bkmk_installmodule
Fixing Sign-On Name for Renamed Users in Office 365
http://www.expta.com/2013/08/fix ... -renamed-users.html
Power shell command in office 365 to unlock a user account
http://community.office365.com/en-us/forums/172/t/6959.aspx
Connect to Office 365 and Exchange Online using a Script
http://www.o365info.com/2012/08/ ... 5-and-exchange.html
Office 365 Recycle bin (Soft and Hard Delete) - PowerShell commands
http://www.o365info.com/2012/09/ ... 65-recycle-bin.html
Office 365 Single Sign-On with AD FS2.0 白皮書
http://www.microsoft.com/zh-tw/download/details.aspx?id=28971
Geek of All Trades: Office 365 SSO: A Simplified Installation Guide 簡化安裝指南
http://technet.microsoft.com/zh-tw/magazine/jj631606.aspx
How to add SMTP address to proxyAddresses
http://www.experts-exchange.com/ ... ell/Q_28230622.html
Change UsageLocation for all users
http://community.office365.com/en-us/forums/156/t/158069.aspx
Office 365 PowerShell Commands (Ed's System Admin Blog)
http://edhammond.blogspot.tw/201 ... shell-commands.html
Windows PowerShell New-AdUser Cmdlet
http://www.computerperformance.c ... hell-new-aduser.htm
Connect Windows PowerShell to the Service (Office365 Exchange cloud service)
http://help.outlook.com/en-us/140/cc952755.aspx
ADModify.NET (CodePlex)
http://admodify.codeplex.com/
萬能技客: 以 Windows PowerShell 管理 Office 365
http://technet.microsoft.com/zh-tw/magazine/hh750396.aspx
Install ADFS 2.1 on Windows Server 2012 for Office 365 & Deploy Dirsync on Windows Server 2012 for Office 365
http://www.flexecom.com/category/office-365/
Office 365 Single Sign-On with ADFS 2.1 on Windows Server 2012
http://www.flexecom.com/office-3 ... indows-server-2012/
Manage Office 365 with Office 365 PowerShell
https://docs.microsoft.com/en-us ... fice-365-powershell
 樓主| 發表於 2018-10-5 16:13:54 | 顯示全部樓層

使用PowerShell連上Office365

以系統管理員身分執行 Windows PowerShell 命令提示字元
1. Install-Module -Name AzureAD
2. 安裝 64 位元版本的 Microsoft Online Services 登入小幫手
3. Connect-MsolService

Reference: https://docs.microsoft.com/zh-tw ... fice-365-powershell
 樓主| 發表於 2018-10-5 16:14:31 | 顯示全部樓層

使用 Office 365 PowerShell 建立使用者帳戶


Reference: https://docs.microsoft.com/zh-tw ... fice-365-powershell
Manage user accounts and licenses with Office 365 PowerShell
https://docs.microsoft.com/en-us ... fice-365-powershell
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2019-11-22 19:11 , Processed in 0.022741 second(s), 10 queries , MemCache On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表