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
28
PowerShellでActive Directoryを操作してみよう (ユーザ編)
minase
June 06, 2016
Tweet
Share
More Decks by minase
See All by minase
IoTバス降車サポートボタンを2日間で開発した話
minase
2
390
Vue.jsでesa風Markdownエディタを作成してみた
minase
1
890
kintone・PowerShell連携
minase
0
55
PowerShellでActive Directoryを操作してみよう (グループ編)
minase
0
40
Other Decks in Programming
See All in Programming
dRuby 入門者によるあなたの身近にあるdRuby 入門
makicamel
4
350
What we keep in mind when migrating from Serverless Framework to AWS CDK and AWS SAM
kasacchiful
1
140
KSPの導入・移行を前向きに検討しよう!
shxun6934
PRO
0
130
マルチモジュールにおけるテスト最適化
fxwx23
0
200
Scala におけるコンパイラエラーとの付き合い方
chencmd
2
410
What you can do with Ruby on WebAssembly
kateinoigakukun
0
160
Ebitengineの1vs1ゲーム WebRTCの活用
ponyo877
0
370
GoのIteratorに詳しくなってしまう
inatonix
1
200
Rustではじめる負荷試験
skanehira
5
1.2k
Our Websites Need a Lifestyle Change, Not a Diet
ryantownsend
0
130
React + TextAliveでカッコいいLyric Applicatioinを作ろう!!
tosuri13
0
400
Ruby Parser progress report 2024
yui_knk
2
220
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
326
21k
Code Reviewing Like a Champion
maltzj
518
39k
The Illustrated Children's Guide to Kubernetes
chrisshort
47
48k
In The Pink: A Labor of Love
frogandcode
139
22k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
600
It's Worth the Effort
3n
182
27k
Pencils Down: Stop Designing & Start Developing
hursman
119
11k
For a Future-Friendly Web
brad_frost
174
9.3k
Happy Clients
brianwarren
96
6.6k
We Have a Design System, Now What?
morganepeng
48
7.1k
What's new in Ruby 2.0
geeforr
340
31k
Building an army of robots
kneath
302
42k
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