SlideShare uma empresa Scribd logo
1 de 16
Baixar para ler offline
About Chris McKinley
 @crmckinley


 chris@sharepointedutech.com
PowerShell Basics
Cmdlets are in the form verb-noun
  Make-coffee
  Get-Process
PowerShell Basics
Parameters added after cmdlet
  Make-coffee -sugar 2
PowerShell Basics
Pipe your data
  Get-Command | where-object
  {$_.CommandType -like "Alias"}
PowerShell Basics
Variables
  $myVariable = “Hello World!”
  Some are system such as $error or $_
PowerShell Basics
Loops
 Foreach ($object in $collection)
 {$object}
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
Some basics of PowerShell. Out-file, get-command, pipes, loops and
variables.

DEMO
It’s called Windows,
      not Typies
ISE
 Feature on the server
      Windows PowerShell Integrated Scripting
      Environment
SP PS
•   Get-SPFarm
•   Get-SPWebApplication
•   Get-SPSite
•   Get-SPWeb

• Add-SPSolution
Use of ISE. Getting SharePoint info. Updating site icons, iterating
through sites. Creating and removing sites. Getting list items and
properties.

DEMO
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()
    }
}
Retrieve farm accounts

DEMO
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
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

Mais conteúdo relacionado

Mais procurados

Copycopter Presentation by Joe Ferris at BostonRB
Copycopter Presentation by Joe Ferris at BostonRBCopycopter Presentation by Joe Ferris at BostonRB
Copycopter Presentation by Joe Ferris at BostonRB
bostonrb
 

Mais procurados (20)

Hardcore URL Routing for WordPress - WordCamp Atlanta 2014
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014Hardcore URL Routing for WordPress - WordCamp Atlanta 2014
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014
 
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
 
Web apps without internet
Web apps without internetWeb apps without internet
Web apps without internet
 
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.
 
Introduction to VueJS & The WordPress REST API
Introduction to VueJS & The WordPress REST APIIntroduction to VueJS & The WordPress REST API
Introduction to VueJS & The WordPress REST API
 
Entry-level PHP for WordPress
Entry-level PHP for WordPressEntry-level PHP for WordPress
Entry-level PHP for WordPress
 
Plone api
Plone apiPlone api
Plone api
 
Flask-RESTPlusで便利なREST API開発 | Productive RESTful API development with Flask-...
Flask-RESTPlusで便利なREST API開発 | Productive RESTful API development with Flask-...Flask-RESTPlusで便利なREST API開発 | Productive RESTful API development with Flask-...
Flask-RESTPlusで便利なREST API開発 | Productive RESTful API development with Flask-...
 
Simplifying Code: Monster to Elegant in 5 Steps
Simplifying Code: Monster to Elegant in 5 StepsSimplifying Code: Monster to Elegant in 5 Steps
Simplifying Code: Monster to Elegant in 5 Steps
 
Rails Antipatterns | Open Session with Chad Pytel
Rails Antipatterns | Open Session with Chad Pytel Rails Antipatterns | Open Session with Chad Pytel
Rails Antipatterns | Open Session with Chad Pytel
 
You're Doing It Wrong
You're Doing It WrongYou're Doing It Wrong
You're Doing It Wrong
 
Copycopter Presentation by Joe Ferris at BostonRB
Copycopter Presentation by Joe Ferris at BostonRBCopycopter Presentation by Joe Ferris at BostonRB
Copycopter Presentation by Joe Ferris at BostonRB
 
SINATRA + HAML + TWITTER
SINATRA + HAML + TWITTERSINATRA + HAML + TWITTER
SINATRA + HAML + TWITTER
 
Teaming up WordPress API with Backbone.js in Titanium
Teaming up WordPress API with Backbone.js in TitaniumTeaming up WordPress API with Backbone.js in Titanium
Teaming up WordPress API with Backbone.js in Titanium
 
Best Practices for WordPress
Best Practices for WordPressBest Practices for WordPress
Best Practices for WordPress
 
Saving Time with WP-CLI
Saving Time with WP-CLISaving Time with WP-CLI
Saving Time with WP-CLI
 
Apex & jQuery Mobile
Apex & jQuery MobileApex & jQuery Mobile
Apex & jQuery Mobile
 
You Got React.js in My PHP
You Got React.js in My PHPYou Got React.js in My PHP
You Got React.js in My PHP
 
Django Girls Tutorial
Django Girls TutorialDjango Girls Tutorial
Django Girls Tutorial
 
Best Practices for Building WordPress Applications
Best Practices for Building WordPress ApplicationsBest Practices for Building WordPress Applications
Best Practices for Building WordPress Applications
 

Destaque

Dr. jones rock ball trading cards guardian premier edition
Dr. jones rock ball trading cards  guardian premier editionDr. jones rock ball trading cards  guardian premier edition
Dr. jones rock ball trading cards guardian premier edition
Gerardo Juarez
 
Dr. jones rock ball trading cards guardian premier edition
Dr. jones rock ball trading cards  guardian premier editionDr. jones rock ball trading cards  guardian premier edition
Dr. jones rock ball trading cards guardian premier edition
Gerardo Juarez
 
Sửa máy tính mạng tại nhà giá rẻ chuyên nghiệp
Sửa máy tính mạng tại nhà giá rẻ chuyên nghiệpSửa máy tính mạng tại nhà giá rẻ chuyên nghiệp
Sửa máy tính mạng tại nhà giá rẻ chuyên nghiệp
Quang Danh
 
đơN giá sửa chữa máy văn phòng tại công ty danh nhân
đơN giá sửa chữa máy văn phòng tại công ty danh nhânđơN giá sửa chữa máy văn phòng tại công ty danh nhân
đơN giá sửa chữa máy văn phòng tại công ty danh nhân
Quang Danh
 
Chuyên sửa máy in samsung ml
Chuyên sửa máy in samsung mlChuyên sửa máy in samsung ml
Chuyên sửa máy in samsung ml
Quang Danh
 
Dịch vụ bảo trì sửa chữa máy văn phòng
Dịch vụ bảo trì sửa chữa máy văn phòngDịch vụ bảo trì sửa chữa máy văn phòng
Dịch vụ bảo trì sửa chữa máy văn phòng
Quang Danh
 
Huerto escolar
Huerto escolarHuerto escolar
Huerto escolar
cristina
 
Sửa chữa nâng cấp máy tính xách tay
Sửa chữa nâng cấp máy tính xách taySửa chữa nâng cấp máy tính xách tay
Sửa chữa nâng cấp máy tính xách tay
Quang Danh
 
Lắp đặt bảo trì hệ thống mạng
Lắp đặt bảo trì hệ thống mạngLắp đặt bảo trì hệ thống mạng
Lắp đặt bảo trì hệ thống mạng
Quang Danh
 
Chăm sóc máy tính tận nhà
Chăm sóc máy tính tận nhàChăm sóc máy tính tận nhà
Chăm sóc máy tính tận nhà
Quang Danh
 

Destaque (15)

Báo giá máyin
Báo giá máyinBáo giá máyin
Báo giá máyin
 
Dr. jones rock ball trading cards guardian premier edition
Dr. jones rock ball trading cards  guardian premier editionDr. jones rock ball trading cards  guardian premier edition
Dr. jones rock ball trading cards guardian premier edition
 
Dr. jones rock ball trading cards guardian premier edition
Dr. jones rock ball trading cards  guardian premier editionDr. jones rock ball trading cards  guardian premier edition
Dr. jones rock ball trading cards guardian premier edition
 
Sửa máy tính mạng tại nhà giá rẻ chuyên nghiệp
Sửa máy tính mạng tại nhà giá rẻ chuyên nghiệpSửa máy tính mạng tại nhà giá rẻ chuyên nghiệp
Sửa máy tính mạng tại nhà giá rẻ chuyên nghiệp
 
đơN giá sửa chữa máy văn phòng tại công ty danh nhân
đơN giá sửa chữa máy văn phòng tại công ty danh nhânđơN giá sửa chữa máy văn phòng tại công ty danh nhân
đơN giá sửa chữa máy văn phòng tại công ty danh nhân
 
Chuyên sửa máy in samsung ml
Chuyên sửa máy in samsung mlChuyên sửa máy in samsung ml
Chuyên sửa máy in samsung ml
 
Dịch vụ bảo trì sửa chữa máy văn phòng
Dịch vụ bảo trì sửa chữa máy văn phòngDịch vụ bảo trì sửa chữa máy văn phòng
Dịch vụ bảo trì sửa chữa máy văn phòng
 
Huerto escolar
Huerto escolarHuerto escolar
Huerto escolar
 
Sửa chữa nâng cấp máy tính xách tay
Sửa chữa nâng cấp máy tính xách taySửa chữa nâng cấp máy tính xách tay
Sửa chữa nâng cấp máy tính xách tay
 
Lắp đặt bảo trì hệ thống mạng
Lắp đặt bảo trì hệ thống mạngLắp đặt bảo trì hệ thống mạng
Lắp đặt bảo trì hệ thống mạng
 
Bán máy in epson a3 cũ
Bán máy in epson a3 cũBán máy in epson a3 cũ
Bán máy in epson a3 cũ
 
jailbreak windows
jailbreak   windowsjailbreak   windows
jailbreak windows
 
Chăm sóc máy tính tận nhà
Chăm sóc máy tính tận nhàChăm sóc máy tính tận nhà
Chăm sóc máy tính tận nhà
 
Lg conf branding
Lg conf brandingLg conf branding
Lg conf branding
 
Branding
BrandingBranding
Branding
 

Semelhante a Powershell to the People #suguk

PowerShell for SharePoint Admins
PowerShell for SharePoint AdminsPowerShell for SharePoint Admins
PowerShell for SharePoint Admins
Rick Taylor
 
Power shell for sp admins
Power shell for sp adminsPower shell for sp admins
Power shell for sp admins
Rick Taylor
 

Semelhante a Powershell to the People #suguk (20)

SPSTC - PowerShell - Through the SharePoint Looking Glass
SPSTC - PowerShell - Through the SharePoint Looking GlassSPSTC - PowerShell - Through the SharePoint Looking Glass
SPSTC - PowerShell - Through the SharePoint Looking Glass
 
PowerShell: Through the SharePoint Looking Glass
PowerShell: Through the SharePoint Looking GlassPowerShell: Through the SharePoint Looking Glass
PowerShell: Through the SharePoint Looking Glass
 
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
 
SPSSTL - PowerShell - Through the SharePoint Looking Glass
SPSSTL - PowerShell - Through the SharePoint Looking GlassSPSSTL - PowerShell - Through the SharePoint Looking Glass
SPSSTL - PowerShell - Through the SharePoint Looking Glass
 
Office 365 & PowerShell - A match made in heaven
Office 365 & PowerShell - A match made in heavenOffice 365 & PowerShell - A match made in heaven
Office 365 & PowerShell - A match made in heaven
 
Operacion Guinda 2
Operacion Guinda 2Operacion Guinda 2
Operacion Guinda 2
 
Intro to SharePoint + PowerShell
Intro to SharePoint + PowerShellIntro to SharePoint + PowerShell
Intro to SharePoint + PowerShell
 
NZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePoint
 
Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019
 
Make the hosting company life easier with SharePoint PowerShell
Make the hosting company life easier with SharePoint PowerShellMake the hosting company life easier with SharePoint PowerShell
Make the hosting company life easier with SharePoint PowerShell
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopIntroduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
 
Windows Server 2008 (PowerShell Scripting Uygulamaları)
Windows Server 2008 (PowerShell Scripting Uygulamaları)Windows Server 2008 (PowerShell Scripting Uygulamaları)
Windows Server 2008 (PowerShell Scripting Uygulamaları)
 
PowerShell for SharePoint Admins
PowerShell for SharePoint AdminsPowerShell for SharePoint Admins
PowerShell for SharePoint Admins
 
Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013
 
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
 
Power shell for sp admins
Power shell for sp adminsPower shell for sp admins
Power shell for sp admins
 
SP24S053 Introduction to PowerShell for SharePoint Developers and Administrators
SP24S053 Introduction to PowerShell for SharePoint Developers and AdministratorsSP24S053 Introduction to PowerShell for SharePoint Developers and Administrators
SP24S053 Introduction to PowerShell for SharePoint Developers and Administrators
 
SharePoint Administration with PowerShell
SharePoint Administration with PowerShellSharePoint Administration with PowerShell
SharePoint Administration with PowerShell
 
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
 
Managing SharePoint Anywhere with Windows PowerShell
Managing SharePoint Anywhere with Windows PowerShellManaging SharePoint Anywhere with Windows PowerShell
Managing SharePoint Anywhere with Windows PowerShell
 

Último

Último (20)

WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 

Powershell to the People #suguk

  • 1.
  • 2. About Chris McKinley @crmckinley chris@sharepointedutech.com
  • 3. PowerShell Basics Cmdlets are in the form verb-noun Make-coffee Get-Process
  • 4. PowerShell Basics Parameters added after cmdlet Make-coffee -sugar 2
  • 5. PowerShell Basics Pipe your data Get-Command | where-object {$_.CommandType -like "Alias"}
  • 6. PowerShell Basics Variables $myVariable = “Hello World!” Some are system such as $error or $_
  • 7. PowerShell Basics Loops Foreach ($object in $collection) {$object}
  • 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
  • 11. SP PS • Get-SPFarm • Get-SPWebApplication • Get-SPSite • Get-SPWeb • Add-SPSolution
  • 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