ユーザ用ツール

サイト用ツール


powershell

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
powershell [2017/11/19 12:59] nabezopowershell [2019/06/30 12:22] (現在) – 外部編集 127.0.0.1
行 57: 行 57:
 ユーザID(PrincipalName)の変更 ユーザID(PrincipalName)の変更
     Set-MsolUserPrincipalName -UserPrincipalName User1@contoso.com -NewUserPrincipalName CCole@contoso.com     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.1511063964.txt.gz · 最終更新: 2019/06/30 12:22 (外部編集)