Run Powershell as administrator (wasted 1 hr figuring this out. It does not work if not run as admin)
Import-module activedirectory
Then below command which accepts samaccount name of both users
Get-ADUser -Identity copyfrom -Properties memberof | Select-Object -ExpandProperty memberof | Add-ADGroupMember -Members Copyto
How to install of FireFox browser using PowerShell Sometimes you would like to install Firefox…
Quick way to install chrome on windows with Powershell? Launch the Powershell and run below…
How to Fix PowerShell Script Not Digitally Signed Error? When a script with a .ps1…
Powershell Cheat Sheet for beginners PowerShell has become something of an ace in the hole…
Today we discuss one of a few questions a lot of sysadmins and IT Admins…
Backing Up an SQL Database with PowerShell Before making any changes in the production environment,…
This website uses cookies.