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
29
PowerShellでActive Directoryを操作してみよう (ユーザ編)
minase
June 06, 2016
Tweet
Share
More Decks by minase
See All by minase
IoTバス降車サポートボタンを2日間で開発した話
minase
2
420
Vue.jsでesa風Markdownエディタを作成してみた
minase
1
960
kintone・PowerShell連携
minase
0
65
PowerShellでActive Directoryを操作してみよう (グループ編)
minase
0
42
Other Decks in Programming
See All in Programming
💎 My RubyKaigi Effect in 2025: Top Ruby Companies 🌐
yasulab
PRO
1
110
JVM の仕組みを理解して PHP で実装してみよう
m3m0r7
PRO
1
240
TypeScript エンジニアが Android 開発の世界に飛び込んだ話
yuisakamoto
6
840
AIコーディングの本質は“コード“ではなく“構造“だった / The essence of AI coding is not “code” but "structure
seike460
PRO
2
700
Doma で目指す ORM 最適解
nakamura_to
1
160
❄️ tmux-nixの実装を通して学ぶNixOSモジュール
momeemt
1
110
生成AI時代のフルスタック開発
kenn
9
2.1k
『Python → TypeScript』オンボーディング奮闘記
takumi_tatsuno
1
120
ビカム・ア・コパイロット
ymd65536
1
190
OpenTelemetryで始めるベンダーフリーなobservability / Vendor-free observability starting with OpenTelemetry
seike460
PRO
0
160
Reactive Thinking with Signals, Resource API, and httpResource @Devm.io Angular 20 Launch Party
manfredsteyer
PRO
0
110
try-catchを使わないエラーハンドリング!? PHPでResult型の考え方を取り入れてみよう
kajitack
3
160
Featured
See All Featured
Making Projects Easy
brettharned
116
6.2k
Done Done
chrislema
184
16k
Embracing the Ebb and Flow
colly
85
4.7k
Writing Fast Ruby
sferik
628
61k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
The Cost Of JavaScript in 2023
addyosmani
49
7.9k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
14
1.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.3k
Side Projects
sachag
453
42k
Typedesign – Prime Four
hannesfritz
41
2.6k
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