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 07, 2016
Programming
0
45
PowerShellでActive Directoryを操作してみよう (グループ編)
minase
June 07, 2016
Tweet
Share
More Decks by minase
See All by minase
IoTバス降車サポートボタンを2日間で開発した話
minase
2
430
Vue.jsでesa風Markdownエディタを作成してみた
minase
1
990
kintone・PowerShell連携
minase
0
72
PowerShellでActive Directoryを操作してみよう (ユーザ編)
minase
0
32
Other Decks in Programming
See All in Programming
CSC509 Lecture 05
javiergs
PRO
0
310
AI Agent 時代的開發者生存指南
eddie
4
2k
XP, Testing and ninja testing ZOZ5
m_seki
3
790
Writing Better Go: Lessons from 10 Code Reviews
konradreiche
2
5k
スマホから Youtube Shortsを見られないようにする
lemolatoon
27
33k
Six and a half ridiculous things to do with Quarkus
hollycummins
0
200
Developer Joy - The New Paradigm
hollycummins
1
310
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
360
CSC305 Lecture 10
javiergs
PRO
0
220
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
380
スキーマ駆動で、Zod OpenAPI Honoによる、API開発するために、Hono Takibiというライブラリを作っている
nakita628
0
280
オープンソースソフトウェアへの解像度🔬
utam0k
17
3.1k
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Building Applications with DynamoDB
mza
96
6.7k
Automating Front-end Workflow
addyosmani
1371
200k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
Site-Speed That Sticks
csswizardry
13
920
Context Engineering - Making Every Token Count
addyosmani
7
280
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
A designer walks into a library…
pauljervisheath
209
24k
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