PowerShell – Primeiros Passos | Aula 9 – Active Directory GRUPOS | http://aulaEAD.com

Curso Completo Grátis no PORTAL www.aulaEAD.com
Aula 9 – Nesta vídeo aula vou demonstrar como trabalhar com comandos PoweShell do Modulo Active Directory – ADDS criando, adicionado usuários e visualizando informações dos GRUPOS do Domínio.

Comandos PowerShell:

Import-Module ActiveDirectory

New-ADGroup -Name “PROGRAMACAO” -SamAccountName “PROGRAMACAO” -DisplayName “PROGRAMACAO” -GroupScope DomainLocal -GroupCategory Security -Path “ou=professores,dc=aulaead,dc=dc”

New-ADGroup -Name “REDES” -SamAccountName “REDES” -DisplayName “REDES” -GroupScope Global -GroupCategory Security -Path “ou=professores,dc=aulaead,dc=dc”

Add-ADGroupMember -Identity “cn=REDES,ou=professores,dc=aulaead,dc=dc” -Members “cn=Leandro Ramos,ou=professores,dc=aulaead,dc=dc”

Remove-ADGroupMember “cn=redes,ou=professores,dc=aulaead,dc=dc” -Members “cn=Roberto Lima,ou=professores,dc=aulaead,dc=dc”

Get-ADGroupMember “cn=REDES,ou=professores,dc=aulaead,dc=dc”

Get-ADObject -Filter * -SearchBase “ou=professores,dc=aulaead,dc=dc”

Remove-ADGroup “cn=programacao,ou=professores,dc=aulaead,dc=dc”

Get-ADUser -Filter * -SearchBase “ou=professores,dc=aulaead,dc=dc”

PROFESSORRAMOS NO FACE: https://www.facebook.com/aulasprofessorramos
Leandro Ramos – Setembro de 2016 – http://professorramos.com & http://aulaead.comwww.aulaEAD.com