$web gives me the title of the website $list is not giving me any and therefore item add/update i m doing is failing. What is wrong? The code works in dev area. btw, I am running with full rights on the app server.
if((Get-PSSnapin | Where {$_.Name -eq “Microsoft.SharePoint.PowerShell”}) -eq $null)
{
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
$web = Get-SPWeb "http://intranet.Rubbermaid.com/Sales"
$ListName = "2012SalesReport1Q"
$list = $web.Lists[$ListName]
write-host $web
write-host $list
write-host " - - - - Starting Process - - - - "
Rest of the code...