I can successfully connect to the "Shared Documents" library at root site and add a file to it. What I can't do is connect to a library that is a few layers down so I can add the file:
The Root Site is: http://mycompany/sites
$web =Get-SPWeb "http://mycompany/sites" $spFolder= $web.GetFolder("Shared Dcouments") $web =Get-SPWeb "http://mycompany/sites/Operations/IT" $spFolder= $web.GetFolder("Shared Documents")
I have tried:
$web =Get-SPWeb - identity "/Operations/IT" -site "http://mycompany/sites" $web =Get-SPWeb - identity "http://mycompany/sites/Operations/IT"
No matter how I do it, I can an error similar to: Get=SPWeb :
Cannot find an SPWeb onject with ID or URL : http://mycompany/sites/Operations/IT
I am very new to powershell, and fairly new to SharePoint- there may be a simple answer, but I can't find it.