ユーザ用ツール

サイト用ツール


powershell

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
powershell [2015/02/21 16:26] – 作成 nabezopowershell [2019/06/30 12:22] (現在) – 外部編集 127.0.0.1
行 1: 行 1:
 +====== powershell ======
 +  function(){
 +  }
 +
 +  for(){
 +  }
 +
 +
 +
 ====== Office365の管理 ====== ====== Office365の管理 ======
 http://news.mynavi.jp/series/365/009/ http://news.mynavi.jp/series/365/009/
行 7: 行 16:
  
  
 +
 +https://technet.microsoft.com/ja-jp/library/jj984289%28v=exchg.150%29.aspx
 +
 +
 +
 +Windows PowerShell を使って Office 365 を管理する実際のアプリケーション
 +https://msdn.microsoft.com/ja-jp/library/dn568028.aspx
 +
 +
 +ユーザーのアカウントのプライマリ電子メール アドレスの変更
 +https://msdn.microsoft.com/ja-jp/library/dd251224%28v=exchsrvcs.149%29.aspx
 +
 +
 +  Set-ExecutionPolicy RemoteSigned
 +  $UserCredential = Get-Credential
 +  $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
 +  Import-PSSession $Session
 +  
 +  -----------close
 +  Remove-PSSession $Session
 +  -----------
 +
 +
 +プライマリメールアドレス変更
 +    set-mailbox xxname@xxdomain.com -emailaddress xxname@xxdomain.com
 +
 +
 +Office 365 のPowerShell 実行環境とコマンドレッド一覧
 +http://community.office365.com/ja-jp/w/manage/powershell-commands.aspx
 +
 +
 +Windows PowerShell による Azure AD の管理
 +https://msdn.microsoft.com/ja-jp/library/azure/jj151815.aspx#bkmk_installmodule
 +
 +  $msolcred = get-credential
 +  connect-msolservice -credential $msolcred
 +  Set-MsolUserPrincipalName -UserPrincipalName User1@contoso.com -NewUserPrincipalName CCole@contoso.com
 +  set-mailbox xxxx -EmailAddresses @{remove="xxxx@contoso.com"
 +
 +ユーザID(PrincipalName)の変更
 +    Set-MsolUserPrincipalName -UserPrincipalName User1@contoso.com -NewUserPrincipalName CCole@contoso.com
 +
 +
 +====== ファイルの読み書き ======
 +  #ファイル一覧
 +  Get-ChildItem c:¥  -Recurce -Name -Include *.txt
 +  
 +  #ファイルの読み込み
 +  $filepath = "datafile"
 +  $contents = Get-Content $filepath
 +
 +  #ファイルの書き込み
 +  Set-Content -Path "$filepath.swap" -Value $buf
  
  
powershell.1424503575.txt.gz · 最終更新: 2019/06/30 12:22 (外部編集)