Neil Iversen Inetium justaddcode.com. The Plan  PowerShell Sales Pitch  Creating Scripts  Type Extensions  Rolling your own Cmdlets  Other Extensionibility.

Slides:



Advertisements
Similar presentations
WEB AND WIRELESS AUTOMATION connecting people and processes InduSoft Web Solution Welcome.
Advertisements

Unknown/uncontrolled data applications Bad/broken end-user applications Inefficient business processes Backlog of IT requests No data access control/backup.
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Eralp Erat Senior Software Developer MCP,MCAD.NET,MCSD.NET.
E-Glue Application Merging executables in WIN32 environment By : Gil Arbeli, Ran Didi Instructor : Gal Badishi Softlab – June 2006.
INTRODUCTION TO CLOUD COMPUTING CS 595 LECTURE 6 2/13/2015.
SharePoint 2007: Workflow and Digital Forms Neil Iversen Inetium.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
James Boother Blog: INTRODUCTION TO POWERSHELL.
Visual Studio 2010 SharePoint Developer Tools. Developer Tools for SharePoint  Familiar VS Experience  Build, Debug, Deploy SharePoint projects  Visual.
Neil Iversen Inetium
Access to Azure EXTENDING OFFICE 365 INTO THE CLOUD George Young Dawson Butte Software SHAREPOINT SATURDAY DENVER 2015 – JANUARY.
Access Web Apps – OK, Now What? EXTENDING ACCESS WEB APPS George Young Dawson Butte Software ACCESS DAY – OCTOBER DENVER,
Introduction to SharePoint Development with VS2010 Paul Yuknewicz Lead Program Manager
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
© 2007 Asynchrony Solutions, Inc. 1 10/29/07 Introduction to PowerShell Brian Button VP Engineering Asynchrony Solutions, Inc
SharePoint 2010 and Office 2010 Development Randy Williams Senior Consultant & Trainer Synergy Corporate Technologies.
Creating Business Workflow Using SharePoint Designer 2007 Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Microsoft SQL Server.
DYNAMICS CRM AS AN xRM DEVELOPMENT PLATFORM Jim Novak Solution Architect Celedon Partners, LLC
ESB Guidance 2.0 Kevin Gock
Denise Luther Senior IT Consultant Practical Technology Enablement with Enterprise Integrator.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Eric Vogel Software Developer A.J. Boggs & Company.
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Microsoft Confidential Office as a Development Platform Tim Heuer
Verify Hardware Requirements Install Windows Server 2008 R2 Configure Active Directory Install SQL Server 2008 Install SharePoint Server 2010 Configure.
SharePoint 2010 Development Environment A Guide to Setup SharePoint 2010 Development Environment on Windows 7 Machine.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Minneapolis Office Developer Interest Group (MODIG) March 25, 2008 Custom Column Development Neil Iversen Inetium
Scalable Game Development William Roberts Senior Game Engineer
SQL Server User Group Meeting Reporting Services Tips & Tricks Presented by Jason Buck of Custom Business Solutions.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
DEV12 Excel Services, Server APIs and Managed UDFs Aaron Saikovski Senior Consultant - Readify Australia Blog:
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
PowerShell For SharePoint Developers Neil Iversen Inetium
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
Advanced Feature Development Neil Iversen Inetium
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
 It is Microsoft's new task-based command- line shell and scripting language designed especially for system administration.  It helps Information Technology.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Neil Kidd Developer Tools Technical Specialist Microsoft UK.
SharePoint 2007 Business Intelligence October 23 th, 2008 Neil Iversen - Inetium.
Free, online, technical courses Take a free online course. Microsoft Virtual Academy.
Redmond Protocols Plugfest 2016 Jinghui Zhang Office Interoperability Test Tools (Test Suites and Open Source Projects) Software Engineer Microsoft Corporation.
SharePoint Online and PowerShell?
PowerShell 5 & Windows 10. What are we covering today? What is PowerShell? Why is PowerShell important? Some simple demos on Windows 10.
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
SharePoint 2007 Business Intelligence
Introduction ITEC 420.
What's new in the world of SharePoint development and deployment
Web Technologies IT230 Dr Mohamed Habib.
Solving the Hard Problems
PHP / MySQL Introduction
Microsoft Office Illustrated
SharePoint-Hosted Apps and JavaScript
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
SharePoint Saturday Omaha April 2016
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Web Development Using ASP .NET
Microsoft Connect /17/2019 9:55 PM
04 | Apps and SharePoint Chris Johnson | SharePoint Guru
Office 365 Development July 2014.
Windows Forms in Visual Studio 2005: An in-depth look at key features
Developer & Platform Group, Microsoft Ltd
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Neil Iversen Inetium justaddcode.com

The Plan  PowerShell Sales Pitch  Creating Scripts  Type Extensions  Rolling your own Cmdlets  Other Extensionibility Providers Hosting PowerShell

PowerShell Sales Pitch  Looks like DOS  No Mouse Support  No Intellisense  Additional Download  Capable of Spreading Malware  Maybe there’s a reason I’m not in Sales

Revised PowerShell Sales Pitch  Still Looks like DOS But much more powerful  Now with Extra Tab Support!  3 rd Party Support  Bundled with Win2k8  Built in security measures Code Signing is Possible  9 out of 10 Dentists agree: “PowerShell makes teeth whiter!”

Still Not Sold?  It doesn’t have to look ugly  Full.NET Access  Loosely typed language  The Pipeline Pass as full.NET objects PowerShell: Command1 | Command2 | Command3 C# Equivalent: Command3(Command2(Command1()));

Sales Demo

Functional Programming  Familiar Constructs Function If/then For/while  Store in PS1 files Run with & ‘path\file.ps1’ Include with. ‘path\file.ps1’  Accepts Arguments Function name ($val1, $val2) Or $args array

Filters  Similar to Functions Can still take arguments  Runtime Difference Functions: Run Once In Pipeline Filters: Run for Each Pipeline object  Biggest disadvantage: No ‘initialize’ stage filter filesonly { if(-not $_.PSIsContainer) { $_ } }

Scripting Demo

Type Extensions  Take advantage of loose typing  Extend existing types Or Create your Own  Using Add-Member Fields Properties Methods  Make Permanent with ps1xml Update-TypeData –prepend MyNewTypes.ps1xml

Type Extension Demo

Creating a Cmdlet  Compiled and Portable  Bundled together in a Snapin  Inherit from CmdLet  WriteObject() Sends data back to the Pipeline  [ Cmdlet(VerbsCommon.Get, “CmdletName“]

Demo: Cmdlet Building

Providers  Act like a ‘Drive’  Implement actions like Get/Set/Delete Item  Some Available Providers Active Directory SharePoint (v2) SQL Server Access

Demo: OOB Providers

Hosting PowerShell  Two Levels of Difficulty Execute Commands Host the UI

Hosting PowerShell  Execute Commands The easiest option  RunspaceInvoke.Invoke(“dir”)  Returns PSObject(s)

Hosting PowerShell  Host the UI Very difficult  Can provide immense amounts of power  Examples: PowerShellPlus PoshConsole

Demo: Hosting PowerShell

References  PowerShell Community Extensions  CmdLet Visual Studio Template eating-a-windows-powershell-cmdlet-using-the- visual-studio-windows-powershell-templates.aspx eating-a-windows-powershell-cmdlet-using-the- visual-studio-windows-powershell-templates.aspx  Debugging Techniques bugging-cmdlets.aspx bugging-cmdlets.aspx  Windows PowerShell Programmers Guide us/library/ms714674(VS.85).aspx us/library/ms714674(VS.85).aspx

Vendors  ShellTools (PowerShellPlus, PowerShell Analyzer)  Quest Software  NetCmdlets

Questions?

SharePoint Developer?  Minneapolis Office Developer Interest Group (MODIG)   Next Meeting: April 22,  Web Part Development Personalization, Connections, AJAX.net, ToolPane

Thanks! Neil Iversen Inetium JustAddCode.com