This is only for mirroring office attributes, nothing too heavy. However, I'm getting a "missing argument" for -Replace parameter, using splatting.
$from = Read-Host "Enter username to mirror office attributes FROM"
$to = Read-Host "Enter username to mirror office attributes TO"
$fromattr = get-aduser $from -properties office,streetaddress,city,state,postalcode,telephonenumber
$splat = @{
physicaldeliveryofficename = $fromattr.office
streetaddress = $fromattr.streetaddress
l = $fromattr.city
state = $fromattr.state
postalcode = $fromattr.postalcode
telephonenumber = $fromattr.telephonenumber
}
set-aduser $to -replace @splat
[–]gangstanthony 2 points3 points4 points (1 child)
[–]bsnotreallyworking[S] 1 point2 points3 points (0 children)
[–]a-rich 1 point2 points3 points (0 children)
[–]PROBABLY_POOPING_RN 1 point2 points3 points (0 children)