I am trying to follow this tutorial to migrate SharePoint on premises to online. https://blogs.technet.microsoft.com/nishants/2015/07/18/using-windows-powershell-cmdlets-for-sharepoint-online-o365spo-migration/
I was provided with the access and was able to connect to the server with New-PSSession -ComputerName NameoftheComputer
But when i run the export-spweb
command it gives me below error
export-spweb is not recognized as the name of a cmdlet.
The server is located on a different location but my PC is in the same domain.
I do not have sharepoint installed in my PC hence Add-PSSnapin Microsoft.Sharepoint.Powershell
is not working either.
I have tried the command Add-PSSnapin Microsoft.Sharepoint.Powershell
but it throws the below error "add-pssnapin microsoft.sharepoint.powershell is not installed on this computer"