Office 365 相關資料
Active Directory 部份:[*]如果您使用的AD網域為jjj.local這個假的網域,則可以開啟"Active Directory 網域及信任",於"Active Directory 網域及信任 "上滑鼠右鍵"內容",增加 "替用的 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 7或Windows Server 2008 R2以上
[*].NET Framework 3.51
[*]安裝Microsoft Online Services 登入小幫手(Microsoft Online Services Sign-in Assistant)
接下來才安裝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/Programming/Languages/Scripting/Powershell/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/2012/10/office-365-powershell-commands.html
Windows PowerShell New-AdUser Cmdlet
http://www.computerperformance.co.uk/powershell/powershell-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-365-single-sign-on-with-adfs-2-1-on-windows-server-2012/
Manage Office 365 with Office 365 PowerShell
https://docs.microsoft.com/en-us/office365/enterprise/powershell/manage-office-365-with-office-365-powershell
使用PowerShell連上Office365
以系統管理員身分執行 Windows PowerShell 命令提示字元1. Install-Module -Name AzureAD
2. 安裝 64 位元版本的 Microsoft Online Services 登入小幫手
3. Connect-MsolService
Reference: https://docs.microsoft.com/zh-tw/office365/enterprise/powershell/connect-to-office-365-powershell
使用 Office 365 PowerShell 建立使用者帳戶
Reference: https://docs.microsoft.com/zh-tw/office365/enterprise/powershell/create-user-accounts-with-office-365-powershell
Manage user accounts and licenses with Office 365 PowerShell
https://docs.microsoft.com/en-us/office365/enterprise/powershell/manage-office-365-with-office-365-powershell
頁:
[1]