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
30
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
980
kintone・PowerShell連携
minase
0
69
PowerShellでActive Directoryを操作してみよう (グループ編)
minase
0
43
Other Decks in Programming
See All in Programming
QA x AIエコシステム段階構築作戦
osu
0
270
[DevinMeetupTokyo2025] コード書かせないDevinの使い方
takumiyoshikawa
2
280
新しいモバイルアプリ勉強会(仮)について
uetyo
1
260
Amazon Q CLI開発で学んだAIコーディングツールの使い方
licux
3
180
兎に角、コードレビュー
mitohato14
0
110
実践!App Intents対応
yuukiw00w
1
270
マイコンでもRustのtestがしたい その2/KernelVM Tokyo 18
tnishinaga
2
2.3k
DataformでPythonする / dataform-de-python
snhryt
0
170
ライブ配信サービスの インフラのジレンマ -マルチクラウドに至ったワケ-
mirrativ
1
210
Strands Agents で実現する名刺解析アーキテクチャ
omiya0555
1
120
Understanding Kotlin Multiplatform
l2hyunwoo
0
260
画像コンペでのベースラインモデルの育て方
tattaka
3
1.7k
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
770
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Embracing the Ebb and Flow
colly
86
4.8k
How to train your dragon (web standard)
notwaldorf
96
6.2k
How to Ace a Technical Interview
jacobian
278
23k
Documentation Writing (for coders)
carmenintech
73
5k
[RailsConf 2023] Rails as a piece of cake
palkan
56
5.8k
A Tale of Four Properties
chriscoyier
160
23k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
110
20k
Writing Fast Ruby
sferik
628
62k
BBQ
matthewcrist
89
9.8k
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