Since there is no official command of move-localuser in powershell. This is what i am trying to work using a pipeline but still it’s not working. So my goal is to move all user from one machine to another machine via PS command. Any idea??
icm -ComputerName WIN-M8BRMLOP443 {Get-LocalUser } | icm -ComputerName Newstar {Set-LocalUser -WhatIf}
What if: Performing the operation “Modify local user” on target “admin”.
What if: Performing the operation “Modify local user” on target “Administrator”.
What if: Performing the operation “Modify local user” on target “DefaultAccount”.
What if: Performing the operation “Modify local user” on target “Guest”.