Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PowerShellでActive Directoryを操作してみよう (ユーザ編)
Search
minase
June 06, 2016
Programming
0
26
PowerShellでActive Directoryを操作してみよう (ユーザ編)
minase
June 06, 2016
Tweet
Share
More Decks by minase
See All by minase
IoTバス降車サポートボタンを2日間で開発した話
minase
2
360
Vue.jsでesa風Markdownエディタを作成してみた
minase
1
840
kintone・PowerShell連携
minase
0
51
PowerShellでActive Directoryを操作してみよう (グループ編)
minase
0
36
Other Decks in Programming
See All in Programming
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
190
pixivアプリでマルチモジュールを実現するまで
gatosyocora
1
130
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
490
ゆるい個人開発のススメ
kuroppe1819
10
940
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
160
プールにゆこう
irof
2
120
受託開発でGitLab CI を活用していく
xiombatsg
1
270
エンターテイメント業界で利用されるAWS
demuyan
0
200
ログラスを支える設計標準について / loglass-design-standards
urmot
10
2.1k
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
330
SwiftUI Performance 不要なViewの再描画と更新を抑える
bigamitiongit
1
160
Javaエンジニアのための Nodejs/Nuxt3入門
hidekatsu_izuno
0
280
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
9
8.3k
How to Ace a Technical Interview
jacobian
272
22k
Creatively Recalculating Your Daily Design Routine
revolveconf
209
11k
The Cost Of JavaScript in 2023
addyosmani
14
3.8k
Bootstrapping a Software Product
garrettdimon
PRO
301
110k
We Have a Design System, Now What?
morganepeng
42
6.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
356
22k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Building a Scalable Design System with Sketch
lauravandoore
455
32k
Git: the NoSQL Database
bkeepers
PRO
422
63k
4 Signs Your Business is Dying
shpigford
175
21k
Transcript
None
• • •
• Set-ExecutionPolicy RemoteSigned • Import-Module ActiveDirectory
• • Get-ADUser -Filter * • Get-ADUser -Filter * -Properties
EmailAddress • Get-ADUser -Filter * -SearchBase DN • Get-ADUser -Filter {name -like "水無瀬*"}
None
• • New-ADUser ` -Name "水無瀬 忠正" -UserPrincipalName "
[email protected]
" `
-SamAccountName "minase" ` -Enabled $true ` -Surname "水無瀬" ` -GivenName "忠正" ` -DisplayName "水無瀬 忠正" ` -PasswordNotRequired $true ` -Path DN
• • Set-ADUser ` -Identity "minase" ` -EmailAddress "
[email protected]
" •
Get-ADUser ` -Filter {name -like "水無瀬*"} ` | Set-ADUser -EmailAddress "
[email protected]
"
• • Remove-ADUser "minase" • Remove-ADUser -Identity DN • Get-ADUser
` -filter {SamAccountName -eq "minase"} ` -SearchBase DN ` | Remove-ADUser
None