SlideShare a Scribd company logo
An introduction at breakneck speed
Powershell Core
Croydon, 3rd April 2018
2© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
• Lots of manpower needed to operate many commercial Windows applications
• Poor consistency and interoperability
• No equivalent to SSH for remote operations
• Long, manual test cycles
Backstory
3© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
It’s a shell
4© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
Scripting
5© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
CmdLets
6© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
Docs and Help
7© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
Everything is an object
8© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
Pipes, Filters and processing data
9© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
Formatting outputs
10© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
Handling JSON data
11© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
Interrogating AWS
12© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly
Connecting to remote Windows machines
A global leader in consulting, technology services and digital transformation,
Capgemini is at the forefront of innovation to address the entire breadth of clients’
opportunities in the evolving world of cloud, digital and platforms. Building on its
strong 50-year heritage and deep industry-specific expertise, Capgemini enables
organizations to realize their business ambitions through an array of services from
strategy to operations. Capgemini is driven by the conviction that the business
value of technology comes from and through people. It is a multicultural company
of 200,000 team members in over 40 countries. The Group reported 2016 global
revenues of EUR 12.5 billion.
About Capgemini
Learn more about us at
www.capgemini.com
This presentation contains information that may be privileged or confidential
and is the property of the Capgemini Group.
Copyright © 2018 Capgemini. All rights reserved.

More Related Content

PDF
KNIME Data Science Learnathon: From Raw Data To Deployment
PDF
Sentiment Analysis with KNIME Analytics Platform
ODP
How to map Domain changes on an existing Database
PDF
NetApp By The Numbers
ODP
New software despite legacy DB
PDF
Sentiment Analysis with Deep Learning, Machine Learning or Lexicon based
PDF
Webinar: Behind the Scenes on Guided Analytics
PDF
Trivadis TechEvent 2016 IoT Portal with PowerBI and SharePoint by Jens Berten...
KNIME Data Science Learnathon: From Raw Data To Deployment
Sentiment Analysis with KNIME Analytics Platform
How to map Domain changes on an existing Database
NetApp By The Numbers
New software despite legacy DB
Sentiment Analysis with Deep Learning, Machine Learning or Lexicon based
Webinar: Behind the Scenes on Guided Analytics
Trivadis TechEvent 2016 IoT Portal with PowerBI and SharePoint by Jens Berten...

What's hot (10)

PPTX
Transformação Digital!
PPTX
How datadog was born in and grew with the cloud
PDF
Using FlockData to power your Recommendation Engine
PDF
Uxhel17 hackathon presentation
PPTX
CWIN17 Toulouse / Additive manufacturing and cognitive augmented design 3 ds-...
PPT
Why the Home Office opted for an Open Source, Cloud SaaS Intranet
PPTX
Honeywell - a trendsetter in the logistic space
PPTX
CWIN17 Toulouse / Discover TechnoVision 2017 to boost innovation - Ron Tolido
PPTX
參加2015香港舉辦的兩岸三地黑客松競賽 黑客松提案
PPTX
CDE - Innovation Network Event - 17 Nov 2016
Transformação Digital!
How datadog was born in and grew with the cloud
Using FlockData to power your Recommendation Engine
Uxhel17 hackathon presentation
CWIN17 Toulouse / Additive manufacturing and cognitive augmented design 3 ds-...
Why the Home Office opted for an Open Source, Cloud SaaS Intranet
Honeywell - a trendsetter in the logistic space
CWIN17 Toulouse / Discover TechnoVision 2017 to boost innovation - Ron Tolido
參加2015香港舉辦的兩岸三地黑客松競賽 黑客松提案
CDE - Innovation Network Event - 17 Nov 2016
Ad

Similar to Powershell core-2018 (20)

PPTX
Cloud Journey Roadmap: Capgemini's Cloud Readiness Assessment
PPTX
London Oracle Developer Meetup - June 18 - Drones with APIs
PPTX
The Future of Infrastructure: Key Trends to consider
PDF
Cips Meetup Auckland-Mirko-Kleiner-lean-agile-procurement-201904-1.0
PPTX
The next generation of ap is luis weir.cwin18.telford
PPTX
Assurance Scoring: using machine learning and analytics to reduce risk in the...
PDF
Cwin18 Cloud Re-platforming and Cloud Journey - fausto pasqualetti final
PPTX
CWIN17 telford application integration and ap is - lisa eckersley
PDF
Hackathon capgemini sogeti team-cwin18_toulouse
PDF
Intelligent process automation maximizing business
PPTX
Industry 4.0 and Oracle Cloud
PDF
Con1169 office depot scm cloud mbx session
PDF
AtemisCloud B2B Solutions
PDF
Stargo - NOAH18 Tel Aviv
PDF
Accelerating Return on SAP Investment for Excelerate Energy: Harnessing the P...
PDF
ERP Cloud: Assessing Readiness and Building the Roadmap
PPTX
Composing a case management solution with SaaS, PaaS, On-premise products
PPTX
Boosting Innovation and Value for Your Subsidiaries with SAP S/4HANA Cloud
PDF
Working Agile in an Ever Changing World
PDF
Oracle Open World 2013 Case Management Smiers / Kitson
Cloud Journey Roadmap: Capgemini's Cloud Readiness Assessment
London Oracle Developer Meetup - June 18 - Drones with APIs
The Future of Infrastructure: Key Trends to consider
Cips Meetup Auckland-Mirko-Kleiner-lean-agile-procurement-201904-1.0
The next generation of ap is luis weir.cwin18.telford
Assurance Scoring: using machine learning and analytics to reduce risk in the...
Cwin18 Cloud Re-platforming and Cloud Journey - fausto pasqualetti final
CWIN17 telford application integration and ap is - lisa eckersley
Hackathon capgemini sogeti team-cwin18_toulouse
Intelligent process automation maximizing business
Industry 4.0 and Oracle Cloud
Con1169 office depot scm cloud mbx session
AtemisCloud B2B Solutions
Stargo - NOAH18 Tel Aviv
Accelerating Return on SAP Investment for Excelerate Energy: Harnessing the P...
ERP Cloud: Assessing Readiness and Building the Roadmap
Composing a case management solution with SaaS, PaaS, On-premise products
Boosting Innovation and Value for Your Subsidiaries with SAP S/4HANA Cloud
Working Agile in an Ever Changing World
Oracle Open World 2013 Case Management Smiers / Kitson
Ad

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Digital Strategies for Manufacturing Companies
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
medical staffing services at VALiNTRY
PDF
System and Network Administraation Chapter 3
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Nekopoi APK 2025 free lastest update
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Design an Analysis of Algorithms II-SECS-1021-03
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Operating system designcfffgfgggggggvggggggggg
Digital Strategies for Manufacturing Companies
VVF-Customer-Presentation2025-Ver1.9.pptx
Which alternative to Crystal Reports is best for small or large businesses.pdf
CHAPTER 2 - PM Management and IT Context
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Understanding Forklifts - TECH EHS Solution
Navsoft: AI-Powered Business Solutions & Custom Software Development
Wondershare Filmora 15 Crack With Activation Key [2025
medical staffing services at VALiNTRY
System and Network Administraation Chapter 3
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Nekopoi APK 2025 free lastest update
wealthsignaloriginal-com-DS-text-... (1).pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Design an Analysis of Algorithms II-SECS-1021-03

Powershell core-2018

  • 1. An introduction at breakneck speed Powershell Core Croydon, 3rd April 2018
  • 2. 2© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly • Lots of manpower needed to operate many commercial Windows applications • Poor consistency and interoperability • No equivalent to SSH for remote operations • Long, manual test cycles Backstory
  • 3. 3© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly It’s a shell
  • 4. 4© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly Scripting
  • 5. 5© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly CmdLets
  • 6. 6© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly Docs and Help
  • 7. 7© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly Everything is an object
  • 8. 8© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly Pipes, Filters and processing data
  • 9. 9© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly Formatting outputs
  • 10. 10© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly Handling JSON data
  • 11. 11© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly Interrogating AWS
  • 12. 12© Capgemini 2018. All rights reserved |Powershell Core | April 3rd 2018 | Stephen Connolly Connecting to remote Windows machines
  • 13. A global leader in consulting, technology services and digital transformation, Capgemini is at the forefront of innovation to address the entire breadth of clients’ opportunities in the evolving world of cloud, digital and platforms. Building on its strong 50-year heritage and deep industry-specific expertise, Capgemini enables organizations to realize their business ambitions through an array of services from strategy to operations. Capgemini is driven by the conviction that the business value of technology comes from and through people. It is a multicultural company of 200,000 team members in over 40 countries. The Group reported 2016 global revenues of EUR 12.5 billion. About Capgemini Learn more about us at www.capgemini.com This presentation contains information that may be privileged or confidential and is the property of the Capgemini Group. Copyright © 2018 Capgemini. All rights reserved.

Editor's Notes

  • #3: A little bit about me All of early career spent in the Windows world doing automation using DOS, then VBScript and eventually Powershell For the most part worked in the build, source control and deployment automation space – developer enablement. Windows apps very GUI focused but hard to automate and manage at scale. Proliferation of scripting tools - VBS, DOS, bespoke CLI tooling, sysprepping servers was labour-intensive and error-prone. We had to write a lot of code to make sure our customers’ machines were ready to have software installed on them. Similarly our QA teams wasted hours building test images. Off the shelf 'solutions’ typically costly. No consistency of CLI or API between different vendors, assuming they even offer any kind of automation option. High TCO vs Unix and its CLI apps. Windows has no built-in remoting capability. It was either RDP (which isn't automatable in a remote session other than via gui drivers) or PSExec. No equivalent of SSH. MS realised the limitation here, even for their own internal product development teams, as they couldn't do agile without being able to automate all of their testing. Exchange admin console for example, although it's a GUI, under the hood it uses PowerShell so everything is properly tested.
  • #4: It's a Shell - command shell for 1 off commands, history, pipelines. However, the built in commands are not discrete executables that fork processes, but functional objects called cmdlets (command-lets) that run in-proc. Core objects are written in C# - either built in in the shell or developed by vendors and released as PowerShell modules that can be loaded on demand. If a vendor or developer hasn't written cmdlets, you can even instantiate .net classes directly and script them yourself. You can also create your own cmdlets and modules in powershell code if you don't want to write C# or VB.Net.
  • #5: It's a scripting language - owes a massive debt to Bash. Less resemblance to other high level scripting languages like VBS, Python and Ruby
  • #6: Cmdlets (command-lets) are essentially built in powershell functions named as <verb>-<noun>, such as Get-ChildItem (for enumerating a tree, such as a Directory) or Get-Content (equivalent of cat, for printing out a file). Typically only a limited range of verbs. The Noun part is always singular, even if it returns a collection. Helps avoid ambiguity. Built in cmdlets typically have a number of aliases to make it easier for people adapt to using it. So gci and dir map are both aliases of get-childitem. If like me you can’t remember the name of the command, you can use a process of elimination using get-command and filters, like get-command –noun JSON* You can write your own cmdlets and package them as re-usable modules or libraries. To avoid naming collision, provide your own noun prefix to make it easier to identify your own cmdlets. AWS don’t do this (tut tut)
  • #7: Built in documentation and tab-completion. Even if you haven't written any docstrings or comment blocks, any cmdlets you write will support tab completion and basic docs.
  • #8: Unlike unix shells the output of cmdlets isn't just a raw strings or numbers that you have to wrangle with cut, grep, sed and awk. When a cmdlet returns something, what you get is an object, or a stream / collection of objects. So get-childitem doesn't give you a listing, but a collection of file system objects. Because they are objects, you can inspect their properties and invoke their methods using get-member
  • #9: Pipes and filters. Any bulk operation like listing objects in the file system, reading lines from a file or machines running in the cloud will yield a collection. Rather than storing the results in memory you can use pipelining to process the results one at a time, discarding things you don't care about and performing deeper processing or transformation on the rest and even generate new output objects. Built-ins for reading and writing common textual serialization formats - XML, CSV and JSON.
  • #10: Although the output looks like a table or list (not unlike a docker PS output, for example)What's actually going on under the hood is that every command in the shell terminates in an implicit formatting object, which is predefined for most built in object types with the default properties to render. If you want to override this, just explicitly output to table, list or a custom format, telling it which properties of the object you want to include in the output. If an object has many properties, you can shave off the ones you don't care about and pass down the pipeline.
  • #11: Let’s put this together and run a query to get some JSON data from a web service and pull some specific data off it. In this case we’re going to interrogate stack exchange for powershell topics Once we have the raw request returning data, we can drill in and identify specific data fields, in this case just the Question title and the link
  • #12: All we’re doing here is querying the AWS London AMI store for base Windows machines, sorting them by date and selecting the most recent one.
  • #13: Windows machines are not generally enabled for allowing inbound connections other than over RDP. Fortunately there are some pretty solid scripts that you can include in your user data to allow the system to configure the WSMan services and install SSL certificates locally so that the traffic can be properly encrypted. Once that’s done it’s a pretty straightforward move to connect to the remote Windows machine and run some commands in the remote session. All we’re doing here is connecting to a remote AWS instance and interrogating the instance metadata, but of course there is no limit to what you can do. It’s worth pointing out that this is the same mechanism that Ansible uses for configuring Windows machines. Because the client isn’t domain-joined we have to use basic authentication, though it’s over an SSL channel.