8. Not all things are equal
Just watch out for –eq –gt –lt
They are not the same as = > <
Operator Description
-eq Equal to
-lt Less than
-gt Greater than
-ge Greater than or Eqaul to
-le Less than or equal to
-ne Not equal to
9. Some basics of PowerShell. Out-file, get-command, pipes, loops and
variables.
DEMO
10. It’s called Windows,
not Typies
ISE
Feature on the server
Windows PowerShell Integrated Scripting
Environment
12. Use of ISE. Getting SharePoint info. Updating site icons, iterating
through sites. Creating and removing sites. Getting list items and
properties.
DEMO
13. Nah, just Bing it.
• Do you really know what that script is doing?
$web = Get-SPWeb "http://mywebapp/somesite/stuff"
foreach ($i in $web.Lists)
{
if($i.Description = "My Test Calendar")
{
$i.Delete()
}
}
15. Any Questions?
@crmckinley
chris@sharepointedutech.com
Resources
• Guy Thomas MVP
– http://www.computerperformance.co.uk/powershell/
• Retrieve Farm Accounts
– http://www.sharepointlonghorn.com/Lists/Posts/Post.aspx?ID=11
16. One last thing…
• Submit an idea for a custom SharePoint 2010
web part and you are in with a chance of us
building it for you for free!
• http://www.SharePointEduTech.com
• http://tinyurl.com/spetwp