powershell
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
powershell [2015/02/24 08:37] – nabezo | powershell [2019/06/30 12:22] (現在) – 外部編集 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== powershell ====== | ||
+ | function(){ | ||
+ | } | ||
+ | |||
+ | for(){ | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
====== Office365の管理 ====== | ====== Office365の管理 ====== | ||
http:// | http:// | ||
行 44: | 行 53: | ||
connect-msolservice -credential $msolcred | connect-msolservice -credential $msolcred | ||
Set-MsolUserPrincipalName -UserPrincipalName User1@contoso.com -NewUserPrincipalName CCole@contoso.com | Set-MsolUserPrincipalName -UserPrincipalName User1@contoso.com -NewUserPrincipalName CCole@contoso.com | ||
- | set-mailbox | + | set-mailbox |
ユーザ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