IncludeUserSecurity in SharePoint

How many of you wondered that while moving site, site collection, list or libraries, your security or user roles have not been placed properly. For Example, Created By, Modified By column values are not retained.  It always take "System Account".
Then you have come to right place for the resolution.
 
Here in this example, I m exporting the site with Include UserSecurity. You can use the same syntax for importing list as well.

Export-SPWeb "http://mysite/sites/" -Path "C:\export.cmp" -IncludeUserSecurity

Import-SPWeb "http://mysite/sites/" -Path "C:\export.cmp" -IncludeUserSecurity
 
 
Happy SharePointing :-)