Timeline for SPSite Object Problem When Trying To Loop Through Sites
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 29, 2012 at 14:30 | comment | added | snowBlind | Yeah, I'm running the scripts in Powershell. However, the 'how-to get ps snapin to work' sites I found required the use of the command prompt to navigate to a certain file in the .net folder. (InstallUtil.exe) and run that with a specified parameter. The parameters the sites gave were causing problems, however. | |
Mar 29, 2012 at 6:13 | comment | added | Alexander | the powershell scripts runs in powershell.exe, not cmd. | |
Mar 28, 2012 at 20:48 | comment | added | snowBlind | Not to stray too far off topic, but I tried running that command, but it throws an error. I found steps to fix the error, but even those steps throw errors in the cmd prompt. I have another script that creates sites, subsites, and pages that works just fine, without using the PSSnapin command. | |
Mar 28, 2012 at 20:10 | comment | added | Alexander |
you should use Add-PSSnapin Microsoft.SharePoint.PowerShell comand before, in other case you cannot work with sharepoint in powershell
|
|
Mar 28, 2012 at 20:02 | comment | added | snowBlind | It used Get-SPSite originally, but I was getting errors related to that...Saying that it isn't a recognized name of a cmdlet, function, script file, or operable program. Someone told me that Get-SPSite is part of SP2010, but not SP2007 (which I'm using). [Not saying that's true, just what I was told.] | |
Mar 28, 2012 at 19:58 | history | answered | Alexander | CC BY-SA 3.0 |