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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
minase
June 06, 2016
Programming
0
39
PowerShellでActive Directoryを操作してみよう (ユーザ編)
minase
June 06, 2016
Tweet
Share
More Decks by minase
See All by minase
IoTバス降車サポートボタンを2日間で開発した話
minase
2
440
Vue.jsでesa風Markdownエディタを作成してみた
minase
1
1k
kintone・PowerShell連携
minase
0
85
PowerShellでActive Directoryを操作してみよう (グループ編)
minase
0
56
Other Decks in Programming
See All in Programming
Claude Codeログ基盤の構築
giginet
PRO
7
3.3k
Ruby and LLM Ecosystem 2nd
koic
1
810
CSC307 Lecture 14
javiergs
PRO
0
470
How to stabilize UI tests using XCTest
akkeylab
0
130
Windows on Ryzen and I
seosoft
0
290
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
120
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
120
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
960
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
950
encoding/json/v2のUnmarshalはこう変わった:内部実装で見る設計改善
kurakura0916
0
410
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
560
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Scaling GitHub
holman
464
140k
Building the Perfect Custom Keyboard
takai
2
710
Facilitating Awesome Meetings
lara
57
6.8k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.1k
Navigating Weather and Climate Data
rabernat
0
140
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
How STYLIGHT went responsive
nonsquared
100
6k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
190
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
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