SharePoint Administration with PowerShell

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    SharePoint Administration with PowerShell - Presentation Transcript

    1. Using Windows PowerShell v2.0 Eric Kraus [Microsoft] [email_address] http://blogs.msdn.com/ekraus Twitter/ @erickraus AND DEVELOPMENT!
      • Introduction
      • What is PowerShell?
      • Variables, Operators, and Syntax, Oh my!
      • Cmdlets? Functions? or Methods?
      • LoadAssembly[“Microsoft.SharePoint”]
      • Advanced Functions
      • Additional Resources
      • Questions
    2.  
      • What is PowerShell?
      • How is it different than cmd.exe?
      • What different things can I do with PowerShell?
      • Why PowerShell?
      • Built on .NET
      • “ White Box Scripting”
      • Great IDE (“ISE”)
      • .NET Cmdlets (Visual Studio)
      • Blue Background
      • Creating Variables
        • $var = “something”
      • Instantiating Objects
        • $var = new-object System.DateTime(2009,3,14)
      • Instance vs. Static Methods
        • $var.ToString() [System.DateTime]::Now
      • Loading Assemblies
        • [System.Reflection.Assembly]:: LoadWithPartialName(“Microsoft.SharePoint”)
      • Create Aliases
        • Set-Alias -name “stsadm” -value “c:program files……stsadm.exe”
      • Piping
        • Get-Process | format-table Get-Process | ft
      • For-Each
        • foreach OR | % Get-Process | foreach {Write-Host $_.Name} Get-Process | % {Write-Host $_.Name}
      • Format-Table
        • Get-Process | ft
      • Where-Object
        • where OR | ?
        • Get-Process | where {$_.Name –like “*explore*”}
        • Get-Process | ? {$_.Name –like “*explore*”}
      • Out-GridView
        • Get-Process | Out-GridView
      • Export-CSV
        • Get-Process | Export-CSV –Path c:processes.csv
      • Get-Alias
      • Get-ChildItem
      • Get-Date
      • Get-EventLog
      • Get-Help
      • Get-Process
      • Get-Service
      • Set-Alias
      • Set-Location
      • Write-Host
      • Stop-Process
      • Stop-Service
      • New-Object
      • ForEach-Object
      • Where-Object
      • Get-Alias [gal]
      • Get-ChildItem [dir]
      • Get-Date
      • Get-EventLog
      • Get-Help
      • Get-Process [gps]
      • Get-Service [gsv]
      • Set-Alias [sal]
      • Set-Location [cd]
      • Write-Host [write]
      • Stop-Process [spps]
      • Stop-Service [spsv]
      • New-Object
      • ForEach-Object [%]
      • Where-Object [?]
      • Set Variables and Aliases
        • $SPHome= "${env:CommonProgramFiles}Microsoft Sharedweb server extensions12“
        • Set-Alias –name “stsadm” –value “$SPHomeinstsadm.exe”
      • Load SharePoint Assemblies
        • [System.Reflection.Assembly]:: LoadFrom(“$SPHomeISAPIMicrosoft.SharePoint.dll”)
      • Get-SPSite [-url]
      • Get-SPWeb [-url]
      • Get-SPEventLog [-limit 5]
      • Get-SPSolutions [-name <>]
      • Get-SPUsersInEnterpriseSites
      • Dispose-SPSite
      • Create Module Features
        • Create-ModuleFiles [-outputLocation]
      • Reset IIS, Warm Up SharePoint
        • RestartAndWarmUp-SharePoint
      • Site Collection Backup
        • Backup-SPSite [-url, -outputLocation]
      • [CmdletBinding()]
      • $host
        • ShouldProcess()
        • ParameterSetName
        • Write-Progress
      • Nested Prompt
        • Get-SPSite [–url, -explore]
      • $profile
      • Import-Module SPoshMod
      • ScriptBlock
        • $str = “write-host ‘This is a string’”
        • $scriptBlock = $ExecutionContext.InvokeCommand.NewScriptBlock($str)
        • Invoke-Command $scriptBlock
      • Get-History
      • http://blogs.msdn.com/sharepoint
      • http://blogs.msdn.com/powershell
      • http:// sharepoint.microsoft.com/blogs/zach
      • http://blogs.msdn.com/ekraus
      • http://www.poshcode.org
          • [Steven Murawski, Hal Rottenberg, Darin Pendergraft]
      • http://www.codeplex.com/SPoshMod
      • http://www.nivot.org [Oisin Grehan]
      • http://www.ilovesharepoint.com [Christian Glessner]
    3.  
    SlideShare Zeitgeist 2009

    + Eric KrausEric Kraus Nominate

    custom

    1678 views, 2 favs, 2 embeds more stats

    Why limit yourself to STSADM? Discover the power o more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1678
      • 1535 on SlideShare
      • 143 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 0
    Most viewed embeds
    • 141 views on http://blogs.msdn.com
    • 2 views on https://blogs.msdn.com

    more

    All embeds
    • 141 views on http://blogs.msdn.com
    • 2 views on https://blogs.msdn.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories