Presentation is loading. Please wait.

Presentation is loading. Please wait.

Getting Started with PowerShell and using it with SharePoint

Similar presentations


Presentation on theme: "Getting Started with PowerShell and using it with SharePoint"— Presentation transcript:

1 Getting Started with PowerShell and using it with SharePoint
One Tools that Rules them All Michael Wharton web site: ‘ Blog: ‘

2 THANK YOU EVENT SPONSORS!
Platinum We appreciated your support of the Charlotte SharePoint Community! Platinum, Gold, Silver, and Bronze have tables scattered throughout Please visit them and inquire about their products & services Raffle at the end of the day and you must be present to win Gold Silver and Bronze

3 FREE  Edward Snowden Deep Web Dark Net Downloaded * about Napster
The Hacker Wars DSKNECTD The Internets Own Boy We Are Legion: The Story of the Hackivists An Honest Liar

4 PowerShell Field Notes
5/2/2018 7:15 AM ABOUT ME Michael Wharton 30+ EPM Deployments 15+ EPM Migrations 1000+ Trained Project Manager PMO Automations and Monitoring Fundamentals of Scheduling Microsoft MVP | MCT | MCTS | MCP+44 Technical Reviewer Missing Manual: Project 2010 and Project 2013 Project Management using MS Project 2013 Forecast Scheduling 2013 Writing Book: Monitoring and Controlling the PMO My passion real passion is automating and monitoring Project Server My second passion is maintaining good Field Notes!! Using PowerShell Field Notes Windows SQL Server SharePoint Project Server Consistency with Deployments. Comic Books Hardware Hacking Robots Walking Wharton Computer Consulting since 1997 PowerShell Field Notes MyProjectExpert.com DerbyCon © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

5 Love Hardware

6 Learning Objective Get Excited About PowerShell!
Open Your Eyes to the Power! Get you ready for the Future! Get you Started with Using PS> Get Excited About Using PowerShell ** It’s just too cool Open Your Eyes to Automating SQL Admin ** Automate process and procedures ** Make yourself valuable, repeatable and up-to-date **

7 Survey Who are You? Currently Using PowerShell?
SharePoint Administrators IT Professional (network) SQL admins Software Developers Currently Using PowerShell? Currently using PowerShell Remoting

8 What can you do with PowerShell?
Repeated Tasks Automated Processes Get info from multiple pc/server Manage multiple pc/servers Manage anything based on .NET Required for some tasks (exchange) Repeated Task Managing users with of 10 or 20 clicks thru GUI (adding users to AD ) Clean up of deleted users Building new environments Standard installations Automated Process Generate reports Retrieve and pull data Get Information from PC/Multiple server Checking security updates and patches Pulling data and generating reports Managing Multiple pc/Servers 1) Checking that software is loaded or not loaded SQL Admin with PowerShell Using PowerShell Remoting to pull data from one or more SQL servers Performing SQL Maintenance on one or more SQL Servers If this doesn’t get you interested. Then this may not be the session for you. Unless you just want to learn some PowerShell REMOTE INTO

9 What PowerShell can do - Details
Active Directory Applications Backup and Restore Exchange Logs and Monitoring Networks Office Operating System Security SharePoint Storage SQL Server Azure Linux Just about anything!!! Active Directory – Bulk Add, fix duplicate, save to CSV, computer accounts, domains, monitoring, user accounts Applications Backup and Restore Exchange Logs and Monitoring Networks Office Operating System Security SharePoint Storage

10 Microsoft PowerShell Gallery
SharePoint = scripts Backup and Recovery Content Management Deployment and Upgrade Monitoring and Reporting Permission and Security Service Application Management Repeated Task Managing users with of 10 or 20 clicks thru GUI (adding users to AD ) Clean up of deleted users Building new environments Standard installations Automated Process Generate reports Retrieve and pull data Get Information from PC/Multiple server Checking security updates and patches Pulling data and generating reports Managing Multiple pc/Servers 1) Checking that software is loaded or not loaded SQL Admin with PowerShell Using PowerShell Remoting to pull data from one or more SQL servers Performing SQL Maintenance on one or more SQL Servers If this doesn’t get you interested. Then this may not be the session for you. Unless you just want to learn some PowerShell REMOTE INTO

11 Why PowerShell such a Big Deal?
Windows vs Linux (Unix) GUI vs Document GUI Way vs Piping commands PowerShell is acting like Linux No GUI Document Based Piping Operating Systems Windows 7 Windows 8 and 8.1 Windows 10 Ubantu Windows XP Linux Macintosh Android Windows XP, Vista, 98, 95, 3.1 Chrome REMOTE INTO

12 PowerShell History Monad (2003) PowerShell V1 (2006)
PowerShell V5 ( Windows 10) Jeff Snover Have fun working with… make it work for you.. Not against you When I first started using --- then I started going … this sucks, this sucks and now back to enjoying Understand how what is going on Key Engineers Jeffery Hicks / Don Jones / Jeffrey P Snover Snover Monad Manifesto Scriptable shell Command Line Interface -- Admin want GUI Push back on GUI “Services for UNIX” -- almost work but not pure Core Linix vs Windows is API --Linix is a document oriented --edit a file Windows is API only works with GUI – work CLIs and WMIC -- IIS is one of the only WMIC --- lot’s of code required to produce results Windows Management Interface Command (WMIC) Single script for each time – everything had to be test Very difficult to write command lines Piping – A | B | C Monad Manifesto Monad – PowerShell V1 Windows Server Optional PowerShell V2 Windows 2008 R2 Many tools and real function PowerShell V3 Windows 2012 PowerShell V4 Windows R2 PowerShell V5

13 Microsoft Future No GUI  Only cmdlets
Improve Security with smaller attack surface Pushing to the cloud DSC (Desire State Configuration) Nano Server Containers Enjoy using Project Have fun working with… make it work for you.. Not against you When I first started using --- then I started going … this sucks, this sucks and now back to enjoying Understand how what is going on Key Engineers Jeffery Hicks / Don Jones / Jeffrey P Snover Snover Monad Manifesto Scriptable shell Command Line Interface -- Admin want GUI Push back on GUI “Services for UNIX” -- almost work but not pure Core Linix vs Windows is API --Linix is a document oriented --edit a file Windows is API only works with GUI – work CLIs and WMIC -- IIS is one of the only WMIC --- lot’s of code required to produce results Windows Management Interface Command (WMIC) Single script for each time – everything had to be test Very difficult to write command lines Piping – A | B | C Monad Manifesto Monad – PowerShell V1 Windows Server Optional PowerShell V2 Windows 2008 R2 Many tools and real function PowerShell V3 Windows 2012 PowerShell V4 Windows R2 PowerShell V5

14 Starting PowerShell on Desktop
Start / All Programs / Accessories / Windows PowerShell Newer versions of PowerShell can be installed. Newer versions of .NET Framework are installed Other ways is putting short-cuts on task bar. Use SEARCH to Find

15 PowerShell PS> PowerShell Prompt
Basic interface – much like does prompt The early version had a few more features than the ISE version mainly the ability to log your session

16 PowerShell ISE Purchase tools that provide more features from

17 PowerShell Fundamentals 1/2
Essential Commands - Get-Help To Execute Script Setting Security Policy Functions Variables POWERSHELL.ORG Arrays Constants Creating Objects Writing to Console Capture User Input Passing Command Line Arguments PowerShell.org – documents Windows PowerShell – EN.PDF Essential Commands - Get-Help To Execute Script Setting Security Policy Functions Variables Arrays Constants Creating Objects Writing to Console Capture User Input Passing Command Line Arguments

18 PowerShell Fundamentals 2/2
Do While Loop Do Until Loop For Loop For Each Loop If Statement Switch Statement POWERSHELL.ORG Reading from a File Writing to a Simple File Writing to a HTML File Writing to a CSV File Miscellaneous Do While Loop Do Until Loop For Loop For Each Loop If Statement Switch Statement Reading from a File Writing to a Simple File Writing to a HTML File Writing to a CSV File Miscellaneous Piping, Continuation, Add-in

19 Demo – PowerShell Basics

20 General PS> info

21 Agenda

22 Tasks – Starting Web apps

23 Tasks – Checking Status

24 Task - Searching

25 Tasks - Pinging

26 Task – Login to site

27 Get-Help

28 Get-Help | Get-Member

29 Get-Help parameters

30 Add more screen shots

31 PowerShell and SharePoint Awareness
Making PS> Aware of SharePoint Add in for SharePoint PowerShell Add ins and Modules Demo Script – using PowerShell Adding In and Library Remoting

32 SharePoint 2016 Management Shell

33 SharePoint PS> and STSADM

34 SharePoint Add-In

35 SP2016 – Configure Project Server

36 SP2016 – Configure Project Server 2

37 PowerShell and SharePoint DEMO
Making PS> Aware of SharePoint Add in for SharePoint PowerShell Add ins and Modules Demo Script – using PowerShell Adding In and Library Remoting

38 Auto-SPINSTALLER

39 Summary PS> is Microsoft Direction Automation
PowerShell Fundamentals PS SharePoint Server Fundamentals Enjoy using Project Have fun working with… make it work for you.. Not against you When I first started using --- then I started going … this sucks, this sucks and now back to enjoying Understand how what is going on

40 Reference PowerShell.org Windows PowerShell Cookbook - Lee Holmes
Windows PowerShell for Developers – Douglas Finke PowerShell for SharePoint 2013 – Steven Mann Windows Server 2012 R2 Administrator Cookbook – Jordan Krause Secrets of PowerShell Remoting – Don Jones and Dr. Tobias Weltner Use PowerShell Remoting to Manager SQL Server Efficiently Learn Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks SQL Server 2012 with PowerShell V3 CookBook by Donabel Santos Reference Material PowerShell.org Windows PowerShell Cookbook - Lee Holmes Windows PowerShell for Developers – Douglas Finke PowerShell for SharePoint 2013 – Steven Mann Windows Server 2012 R2 Administrator Cookbook – Jordan Krause Secrets of PowerShell Remoting – Don Jones and Dr. Tobias Weltner Use PowerShell Remoting to Manager SQL Server Efficiently Learn Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks SQL Server 2012 with PowerShell V3 CookBook by Donabel Santos Use PowerShell Remoting to Manager SQL Server Efficiently powershell-remoting-manage-sql-servers-efficiently Lean Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks Understanding and Using PowerShell Support in SQL Server us/library/dd aspx

41 PowerShell Games! General Game Rules
Informal to promote fun and learning Present a Problem Start timer First person to solve – Note time and give 5 more minutes to group Awards Overall Winner – First to solve Problem using PowerShell Fewest Lines to solve winner Most Lines to solve winner Panel of experts picks best solution Discussion on how user approached Each winner describes approach Reference Material PowerShell.org Windows PowerShell Cookbook - Lee Holmes Windows PowerShell for Developers – Douglas Finke PowerShell for SharePoint 2013 – Steven Mann Windows Server 2012 R2 Administrator Cookbook – Jordan Krause Secrets of PowerShell Remoting – Don Jones and Dr. Tobias Weltner Use PowerShell Remoting to Manager SQL Server Efficiently Learn Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks SQL Server 2012 with PowerShell V3 CookBook by Donabel Santos Use PowerShell Remoting to Manager SQL Server Efficiently powershell-remoting-manage-sql-servers-efficiently Lean Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks Understanding and Using PowerShell Support in SQL Server us/library/dd aspx

42 Future SharePoint Speaking
Sept 23-25, 2016 DerbyCon Hacking and Protecting SharePoint Nov 2-3, 2016 SharePoint Engage Beginners Guide to Using PowerShell with SharePoint Sept 27/ Triad Developer Guild Beginner Guide to PowerShell and SharePoint Sept 3, 2015 Charlotte PowerShell Users Group Using PowerShell Installing and Configuring SharePoint / Project Server Sept 19, 2015` Charlotte Area SharePoint User Group Beginners Guide to PowerShell and SharePoint Sept 25, 2015 DerbyCon Beginners Guide to PowerShell and Hacking Oct 10, 2015 Raleigh SQL Saturday Beginners Guide to PowerShell and SQL Server Oct 17, 2015 Charlotte SQL Saturday

43 http://bit.do/SPSCLT16 Don’t Wait! Please Tell Us What You Think
For each survey submitted, your name will be entered into the raffle at the end of the day.

44 CONFERENCE COMMUNICATION
All slides will be posted on Lanyrd lanyrd.com/2016/spsclt16 Tweet or #SPSCLT16 Problems / Questions / Complaints / Suggestions

45 Join Us For Sharepint Immediately following today’s event
First drink is on us Brink your event ticket for validation Duckworth’s Grill & Taphouse 330 North Tryon Street Charlotte, NC (7th and Tryon)

46 Immediately following today’s event First drink is on us
Join Us For Sharepint Immediately following today’s event First drink is on us Brink your event ticket for validation Duckworth’s Grill & Taphouse 330 North Tryon Street Charlotte, NC (7th and Tryon)

47 PowerShell Field Notes
5/2/2018 7:15 AM Questions and Answers Michael Wharton 30+ EPM Deployments 10+ EPM Migrations 1000+ Trained Project Manager PMO Automations and Monitoring Fundamentals of Scheduling Microsoft MVP | MCT | MCTS | MCP+44 Technical Reviewer Missing Manual: Project 2010 and Project 2013 Project Management using MS Project 2013 Forecast Scheduling 2013 (in process) Writing Book: Monitoring and Controlling the PMO My passion real passion is automating and monitoring Comic Books Hardware Hacking Robots Walking Wharton Computer Consulting since 1997 PowerShell Field Notes MyProjectExpert.com © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

48 Michael Wharton, MVP


Download ppt "Getting Started with PowerShell and using it with SharePoint"

Similar presentations


Ads by Google