As far as I understand PowerShell, $user is an .NET object of the type System. DirectoryServices.DirectoryEntry ... in Visual Studio I find the method CopyTo ...