Add All Members of an OU to a Security Group

 

Get-ADUser -SearchBase ‘OU=Source-OU,OU=PNL,DC=pnl,DC=com’ -Filter * | 
ForEach-Object {Add-ADGroupMember -Identity ‘SG-Test-Group’ -Members $_ }

 

 

Export/import windows server DNS zones

You can use Export-DnsServerZone and Import-DnsServerZone .   Export: Export-DnsServerZone -Name "test.com" -Filename "test...

Mais vistos