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
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
SourceGeneratorのマーカー属性問題について
htkym
0
200
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
120
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.6k
へんな働き方
yusukebe
0
260
20260315 AWSなんもわからん🥲
chiilog
2
160
オブザーバビリティ駆動開発って実際どうなの?
yohfee
4
870
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
140
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
190
AWS Infrastructure as Code の新機能 2025 総まとめ 〜SA 4人による怒涛のデモ祭り〜
konokenj
10
3.4k
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
300
Codex の「自走力」を高める
yorifuji
0
1.2k
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
9
2.9k
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
480
Joys of Absence: A Defence of Solitary Play
codingconduct
1
310
sira's awesome portfolio website redesign presentation
elsirapls
0
190
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
340
Site-Speed That Sticks
csswizardry
13
1.1k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
750
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
200
The Cult of Friendly URLs
andyhume
79
6.8k
Navigating Weather and Climate Data
rabernat
0
140
Paper Plane (Part 1)
katiecoart
PRO
0
5.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