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
26
PowerShellでActive Directoryを操作してみよう (ユーザ編)
minase
June 06, 2016
Tweet
Share
More Decks by minase
See All by minase
IoTバス降車サポートボタンを2日間で開発した話
minase
2
350
Vue.jsでesa風Markdownエディタを作成してみた
minase
1
820
kintone・PowerShell連携
minase
0
47
PowerShellでActive Directoryを操作してみよう (グループ編)
minase
0
36
Other Decks in Programming
See All in Programming
PHP 8.3で追加されたjson_validate()を徹底的に深掘りしてみよう
mashirou1234
0
610
Running Laravel Apps With FrankenPHP
dunglas
4
1.2k
PHP8の機能を使って堅牢にコードを書く
fendo181
6
2k
SmartHRにおけるプロダクトエンジニア/product_engineer_in_smarthr_20240227
saitoryc
5
180
まっちすいっち戦争 / match vs switch
takuyakatsusa
1
620
Next.js で SPA を構築する際の辛み
hayatow
0
220
sbt-assemblyにハマってDB接続できず時間が溶けた話
wakye5815
1
660
GitHub Copilot Tips and Tricks
yuichielectric
2
240
CSRF対策のやり方、そろそろアップデートしませんか / Update your knowledge of CSRF protection
hiro_y
22
12k
ログラスの継続的なプロンプト改善のためのLLMOpsの今 / LLMOps at loglass now
rkaga
PRO
1
330
before_rails_girls_after_rails_girls
maimux2x
0
300
Cloud RunとCloud PubSubでサーバレスなデータ基盤2024 with Terraform / Cloud Run and PubSub with Terraform
shinyorke
7
1.7k
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
242
20k
GitHub's CSS Performance
jonrohan
1023
450k
Rebuilding a faster, lazier Slack
samanthasiow
72
8.1k
Atom: Resistance is Futile
akmur
258
25k
Adopting Sorbet at Scale
ufuk
66
8.5k
A Tale of Four Properties
chriscoyier
150
22k
Keith and Marios Guide to Fast Websites
keithpitt
407
22k
Robots, Beer and Maslow
schacon
PRO
154
7.9k
Building Your Own Lightsaber
phodgson
97
5.6k
Into the Great Unknown - MozCon
thekraken
10
810
How to name files
jennybc
62
91k
The Mythical Team-Month
searls
214
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