A few scripts to set, copy and check the Pager attribute in ActiveDirectory, very usefull for SMSPasscode

 

 

 

o365-connect

$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session -AllowClobber
]

copygroupmembers

$source = "Skriv gruppe 1"
$destination = "Skriv gruppe2"

$members = Get-ADGroupMember -Identity $source
foreach ($member in $members){
Add-ADGroupMember -identity $destination -members $member
}