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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
minase
June 07, 2016
Programming
64
0
Share
PowerShellでActive Directoryを操作してみよう (グループ編)
minase
June 07, 2016
More Decks by minase
See All by minase
IoTバス降車サポートボタンを2日間で開発した話
minase
2
440
Vue.jsでesa風Markdownエディタを作成してみた
minase
1
1k
kintone・PowerShell連携
minase
0
92
PowerShellでActive Directoryを操作してみよう (ユーザ編)
minase
0
43
Other Decks in Programming
See All in Programming
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
220
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
11k
iOS26時代の新規アプリ開発
yuukiw00w
0
220
JavaDoc 再入門
nagise
0
220
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
0
260
Claspは野良GASの夢をみるか
takter00
0
140
Oxlintはいかにしてtsgolintのlint ruleを呼び出しているのか
syumai
2
1k
関係性から理解する"同一性"の型用語たち
pvcresin
2
620
AIとRubyの静的型付け
ukin0k0
0
490
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.4k
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
140
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
2.4k
Featured
See All Featured
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
70
39k
New Earth Scene 8
popppiees
3
2.3k
The Curious Case for Waylosing
cassininazir
1
370
Building an army of robots
kneath
306
46k
Darren the Foodie - Storyboard
khoart
PRO
3
3.4k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Cult of Friendly URLs
andyhume
79
6.9k
My Coaching Mixtape
mlcsv
0
140
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
540
RailsConf 2023
tenderlove
30
1.5k
Bash Introduction
62gerente
615
210k
Navigating Weather and Climate Data
rabernat
0
200
Transcript
None
None
• • •
• • Set-ExecutionPolicy RemoteSigned Import-Module ActiveDirectory
• • • Get-ADGroup -Filter * Get-ADGroup -Filter * -SearchBase
'OUのDN' Get-ADGroup -Filter {Name -like "*開発管理部*"}
•
• • Get-ADGroupMember -Identity 'TestGroup' Get-ADGroupMember -Identity 'TestGroup' | Select-Object
{$_.SamAccountName}
• New-ADGroup -Name 'TestGroup' ` -Description 'test' ` -GroupScope Global
` -GroupCategory Security ` -Path '作成先OUのDN'
• • • • Set-ADGroup -Identity 'TestGroup' -Description 'Change' Rename-ADObject
-Identity 'グループのDN' -NewName 'TestGroup' Set-ADGroup -Identity 'TestGrop' -GroupCategory Distribution Get-ADGroup -Identity 'TestGroup' | Set-ADGroup -Description 'change'
• • • Remove-ADGroup -Identity 'TestGroup' Remove-ADGroup -Identity 'TestGroup' -Confirm:$false
Get-ADGroup -Identity 'TestGroup' | Remove-ADGroup
• • • • Add-ADGroupMember -Identity 'TestGroup' -Members minase,isami Remove-ADGroupMember
-Identity 'TestGroup' -Members yamashita Get-ADGroup -Identity 'TestGroup' | Add-ADGroupMember -Members yamashita Get-ADGroup -Identity 'TestGroup' | Remove-ADGroupMember -Members isami
None