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
59
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
88
PowerShellでActive Directoryを操作してみよう (ユーザ編)
minase
0
41
Other Decks in Programming
See All in Programming
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
350
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
180
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
240
CDK Deployのための ”反響定位”
watany
4
780
Coding as Prompting Since 2025
ragingwind
0
830
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
110
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
2
180
Liberating Ruby's Parser from Lexer Hacks
ydah
2
1.3k
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
3
780
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
150
Spec Driven Development | AI Summit Vilnius
danielsogl
PRO
1
100
ハンズオンで学ぶクラウドネイティブ
tatsukiminami
0
130
Featured
See All Featured
A Soul's Torment
seathinner
6
2.7k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
450
Writing Fast Ruby
sferik
630
63k
Tell your own story through comics
letsgokoyo
1
900
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
200
Deep Space Network (abreviated)
tonyrice
0
120
Prompt Engineering for Job Search
mfonobong
0
270
Ethics towards AI in product and experience design
skipperchong
2
260
A designer walks into a library…
pauljervisheath
211
24k
The SEO Collaboration Effect
kristinabergwall1
1
420
Git: the NoSQL Database
bkeepers
PRO
432
67k
Navigating Weather and Climate Data
rabernat
0
170
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