1 line Script to copy AD membership between users

Just copy and paste: It will copy all membership groups from 1 user to another import-Module ActiveDirectory;$copy = Read-host "Enter username to copy from: ";$paste = Read-host "Enter username to copy to: ";get-ADuser -identity $copy -properties memberof | select-object memberof -expandproperty memberof | Add-AdGroupMember -Members $paste;

The attempt to connect to server/PowerShell using “Kerberos” authentication failed: Connecting to remote server failed with the following error message: The connection to the specified remote host was refused. Verify that the WS-Management service is running on the remote host and configured to listen for requests on the correct port and HTTP URL. For more information, see the about_Remote_Troubleshooting Help topic.

"The attempt to connect to server/PowerShell using "Kerberos" authentication failed: Connecting to remote server failed with the following error message: The connection to the specified remote host was refused. Verify that the WS-Management service is running on the remote host and configured to listen for requests on the correct port and HTTP URL. For more … Continue reading The attempt to connect to server/PowerShell using “Kerberos” authentication failed: Connecting to remote server failed with the following error message: The connection to the specified remote host was refused. Verify that the WS-Management service is running on the remote host and configured to listen for requests on the correct port and HTTP URL. For more information, see the about_Remote_Troubleshooting Help topic.

FIX Group Policy Replication on SYSVOL & Non-Authoritative SYSVOL restore on DCS

FRS is a multi-threaded, multi-master replication engine that Windows Server domain controllers use to replicate system policies and logon scripts. You can also use FRS to replicate content between Windows Servers that host the same fault-tolerant Distributed File System (DFS) roots or child node replicas. In Windows ServerĀ 2008 R2 and newer, FRS can only be … Continue reading FIX Group Policy Replication on SYSVOL & Non-Authoritative SYSVOL restore on DCS