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
430
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
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
180
grapheme_strrev関数が採択されました(あと雑感)
youkidearitai
PRO
1
210
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
320
株式会社 Sun terras カンパニーデック
sunterras
0
2k
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
370
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.5k
Agentic AI: Evolution oder Revolution
mobilelarson
PRO
0
130
Codex の「自走力」を高める
yorifuji
0
1.1k
AI活用のコスパを最大化する方法
ochtum
0
130
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
260
AIとペアプロして処理時間を97%削減した話 #pyconshizu
kashewnuts
1
210
nilとは何か 〜interfaceの構造とnil!=nilから理解する〜
kuro_kurorrr
3
1.8k
Featured
See All Featured
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
82
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
980
Ethics towards AI in product and experience design
skipperchong
2
220
Building Adaptive Systems
keathley
44
2.9k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
Agile that works and the tools we love
rasmusluckow
331
21k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Utilizing Notion as your number one productivity tool
mfonobong
4
250
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
150
Navigating Weather and Climate Data
rabernat
0
130
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
130
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
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