I want to migrate list items held in our dev sharepoint farm to site collection hosted on our live farm. Ok I have RDPed onto the server and I am running ISE as administrator I do another account I used to install sharepoint that is slightly more permissions I could try
#SourceWebURL is the URL of the web which contains the source list
$SourceWebURL = "http://dev/sites/sourcelists"
#DestinationWebURL is the URL of the web in which you want to transfer your documents
$DestinationWebURL = "https://corporate.companydomain.com"
#DestinationWebURL is the URL of the web in which you want to transfer your documents
$sWeb = Get-SPWeb $SourceWebURL
#THIS GIVES THE ERROR WHEN RUN FROM THE DEV Sever
$dWeb = Get-SPWeb $DestinationWebURL
Get-SPWeb : Cannot find an SPSite object that contains the following Id or Url: Get-SPWeb : Cannot find an SPSite object that contains the following Id or Url: https://corporate.companydomain.com. At C:\dev\ps\Admin\CopyFilesAndFolders.ps1:34 char:9 + $dWeb = Get-SPWeb $DestinationWebURL + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Share....SPCmdletGetWeb:SPCmdletGetWeb) [Get-SPWeb], SPCmdletPipeBindException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetWeb
At C:\dev\ps\Admin\CopyFilesAndFolders.ps1:34 char:9 + $dWeb = Get-SPWeb $DestinationWebURL + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Share....SPCmdletGetWeb:SPCmdletGetWeb) [Get-SPWeb], SPCmdletPipeBindException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetWeb
Now until we get a local site security policy change on AD when I open "https://corporate.companydomain.com" on a browser, I am presented with a login dialog box so this may be a factor. Just wondered if anyone seen this or able to "RunAs" Get-SPWeb to get passed the Login box.