powershell
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | 最新のリビジョン両方とも次のリビジョン | ||
powershell [2017/11/19 12:59] – nabezo | powershell [2018/03/04 12:22] – [Office365の管理] nabezo | ||
---|---|---|---|
行 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 = " | ||
+ | $contents = Get-Content $filepath | ||
+ | |||
+ | # | ||
+ | Set-Content -Path " | ||
powershell.txt · 最終更新: 2019/06/30 12:22 by 127.0.0.1