SlideShare ist ein Scribd-Unternehmen logo
1 von 53
Downloaden Sie, um offline zu lesen
UNLEASHING THE POWER:
A LAP AROUND POWERSHELL 3.0
SARAH DUTKIEWICZ
CLEVELAND TECH CONSULTING
SARAH@CLETECHCONSULTING.COM
AGENDA
• System Requirements
• Overview of New & Improved Features
• Resources
• BONUS Material : Cool PowerShell Tools for Devs
WINDOWS MANAGEMENT FRAMEWORK 3.0
• Includes:
• Windows PowerShell 3.0
• WMI
• WinRM
• Management OData IIS Extension
• Server Manager CIM Provider
Download Here
SYSTEM REQUIREMENTS
• Windows 8, Windows Server 2012 – built-in
• Windows 7 Service Pack 1
• Windows Server 2008 R2 SP1
• Windows Server 2008 Service Pack 2
INSTALLATION NOTES
• Requires Microsoft .NET Framework 4.0
• The Integrated Scripting Environment (ISE) is an optional feature for server
SKUs.
• For Windows Server 2008, the previous version of Windows Management
Framework – which contains PowerShell 2.0 – must be installed first.
GETTING STARTED – CONSOLE/VERSION
BACKWARDS COMPATIBILITY
• Windows PowerShell 3.0 is backward-compatible.
• 2.0 syntax and functionality that were designed for 2.0 should work in 3.0 without
changes.
POWERSHELL WEB ACCESS
ACCESS YOUR COMPANY’S COMPUTERS VIA POWERSHELL IN A WEB BROWSER
POWERSHELL WEB ACCESS - LIMITATIONS
• Double-hop issues when connecting to a second computer
• Same limitations as a remote Windows PowerShell session
• Commands that call Windows console APIs don’t work.
• Anything that displays a GUI doesn’t work.
• Tab Completion doesn’t work in NoLanguage sessions.
• Allows only one remote connection per browser session
POWERSHELL WEB ACCESS – MORE LIMITATIONS
• Persistent Windows PowerShell sessions – need to use –Job for long running tasks and
to allow disconnection rather than log off
• No nested progress displays
• Input colors cannot be modified
• Function keys may not work in the PowerShell app if they are reserved for browser
functionality
• More notes at: Use the Web-based PowerShell Console
WINDOWS POWERSHELL WEB ACCESS
• Requires:
• Windows Server 2012
• IIS
• .NET Framework 4.5
• PowerShell 3.0
POWERSHELL WEB ACCESS – BROWSER SUPPORT
• Internet Explorer (8 or higher)
• Firefox (10.0.2)
• Chrome for Windows (17.0.963.56m)
• Safari for Windows (5.1.2)
• Safari for Mac (5.1.2)
POWERSHELL WEB ACCESS – MOBILE SUPPORT
• Minimally tested on:
• Windows Phone 7 and 7.5
• Google Android WebKit 3.1 Browser Android 2.2.1 (Kernel 2.6)
• Apple Safari for iPhone operating system 5.0.1
• Apple Safari for iPad 2 operating system 5.0.1
POWERSHELL WEB ACCESS – BROWSER
REQUIREMENTS
• Allow cookies from the Windows PowerShell Web Access gateway website.
• Be able to open and read HTTPS pages.
• Open and run websites that use JavaScript.
POWERSHELL WEB ACCESS - INSTALLATION
• Via Features/Roles wizard through the Server Manager
• Through PowerShell cmdlets
• Detailed instructions available here: http://technet.microsoft.com/en-
us/library/hh831611.aspx#BKMK_install
POWERSHELL WEB ACCESS – SET UP THE GATEWAY
• Use Install-PswaWebApplication to configure Windows PowerShell
Web Access.
• Use the –UseTestCertificate parameter only for internal testing
POWERSHELL WEB ACCESS – SETTING UP THE
GATEWAY
POWERSHELL WEB ACCESS – CONFIGURE
SECURITY
• Use cmdlets to help specify what users have access to what.
• For demo purposes, we’re using:
Add-PswaAuthorizationRule –UserName * -ComputerName * -ConfigurationName *
POWERSHELL WEB ACCESS – LOG IN
POWERSHELL WEB ACCESS - VERSION
NEW FEATURES & IMPROVEMENTS
EASIER SYNTAX, BETTER PERFORMANCE, MORE ROBUSTNESS, AND MORE!
IMPROVED WHERE AND FOREACH SYNTAX
• Example: Get all processes where CPU is greater than 100
2.0:
Get-Process | where { $_.CPU –gt 100 }
3.0:
Get-Process | where CPU –gt 100
IMPROVED WHERE AND FOREACH SYNTAX
• Example: Find all available “Microsoft.*” available modules and split their names
2.0:
Get-Module –ListAvailable | Where { $_.Name –like “Microsoft.*” } | Foreach {
$_.Name.Split(“.”) }
3.0:
Get-Module –ListAvailable | Where Name –like “Microsoft.*” | Foreach Split “.”
MICROSOFT .NET FRAMEWORK 4.0 SUPPORT
• Application Compatibility and Deployment
• Managed Extensibility Framework
• Parallel Computing
• Networking
• Windows Communication Foundation
• Windows Workflow Foundation
SESSION IMPROVEMENTS – DISCONNECTED
SESSIONS
• Persistent sessions saved on remote computer
• No longer session-dependent
• New cmdlets: Connect-PSSession, Disconnect-PSSession, and Receive-
PSSession
• New parameter InDisconnectedSession
• Both client and server need to be running Windows PowerShell 3.0
HELP IMPROVEMENTS – UPDATABLE HELP
• Updatable Help System
• By default, help files for a module update no more than once a day
• Windows 8 and Windows Server 2012 do not have help files as part of their
installations
Update-Help
Save-Help
Supporting Updatable Help
HELP IMPROVEMENTS – ENHANCED ONLINE HELP
• Enhanced Online Help
• Works well even when the help files aren’t installed on the computer
Get-Help {cmdlet} –Online
Supporting Online Help
SCHEDULED JOBS & TASK SCHEDULER
INTEGRATION
• Windows PowerShell jobs can now be background jobs managed by Task
Scheduler.
• PowerShell scheduled jobs run asynchronously.
• Scheduled jobs can be one-time or recurrent.
• New cmdlet set for scheduled jobs
• See more at about_Scheduled_Jobs
LANGUAGE ENHANCEMENTS – NEW CORE
CMDLETS
• Full list can be seen here: http://technet.microsoft.com/en-
us/library/hh857339.aspx#BKMK_CHAR
• Highlights include:
• ConvertTo-Json & ConvertFrom-Json
• Disable-ScheduledJob & Enable-ScheduledJob
• Invoke-RestMethod & Invoke-WebRequest
IMPROVEMENTS TO EXISTING FUNCTIONALITY
• Simplified syntax and new parameters include:
• Get-ChildItem
• Get-Command
• Get-Content
• Get-History
• Select-Object
• Select-String
• Split-Path
• Start-Process
• Test-Connection
IMPROVEMENTS TO EXISTING FUNCTIONALITY
• Certificate provider supports SSL certificates for web hosting
• Support for credential
• Persistent network drives
• Alternate data streams in file system drives
ENHANCED TAB COMPLETION
• Tab completion was written on a new parser
• Better midline tab completion
• Now completes:
• Cmdlets
• Parameters
• Parameter Values
• Enumerations
• .NET Framework types
• COM objects
• Hidden directories
• More!
MODULE AUTO-LOADING
• Get-Command now looks at all installed modules rather than just the imported
ones.
• Automatic import is triggered by Get-Command, Get-Help, or running a cmdlet
from the module
• This auto-loading can be controlled with the
$PSModuleAutoLoadingPreference preference variable
MODULE EXPERIENCE IMPROVEMENTS
• Module logging for individual modules (LogPipelineExecutionDetails) and the new "Turn on Module Logging"
Group Policy setting
• Extended module objects that expose the values from the module manifest
• New ExportedCommands property of modules, including nested modules, that combines commands of all
types
• Improved discovery of available (un-imported) modules, including allowing the Path and ListAvailable
parameters in the same command
• New DefaultCommandPrefix key in module manifests that avoids name conflicts without changing module
code.
MODULE EXPERIENCE IMPROVEMENTS
• Improved module requirements, including fully-qualified required modules with
version and GUID and automatic importing of required modules
• Quieter, streamlined operation of the New-ModuleManifest cmdlet.
• New Module parameter for #Requires
• Improved Import-Module cmdlet with both MinimumVersion and
RequiredVersion parameters.
SIMPLIFIED COMMAND DISCOVERY
• Get-Command displays all commands from all installed modules.
• Due to auto-loading, a module will automatically be loaded once a command
from that module is executed.
• Show-Command also helps beginners learn commands.
IMPROVED LOGGING
• Supports Event Tracing in Windows (ETW) logs
• “Turn on Module Logging” now included as a Group Policy setting.
• Parameter values appear in log details in the log properties.
FORMATTING & OUTPUT IMPROVEMENTS
• Output redirection for all streams
• Enhanced Update-Type cmdlet that adds types dynamically without ps1xml format
files
• Word wrap in output
• Default formatting of custom objects
• PSCustomObject type
• Support for discovering method overloads
SPECIAL CHARACTER HANDLING IMPROVEMENTS
• The LiteralPath parameter appears now on most cmdlets that use Path –
including Update-Help and Save-Help
• Improved handling of backticks and square brackets in file names and paths
NEW CMDLET AND HOSTING APIS
• Public AST APIs
• APIs for
• Pipeline paging
• Nested pipelines
• Runspace pools tab completion
• Windows RT
• Obsolete cmdlet attribute
• Verb and Noun properties of the FunctionInfo object
PERFORMANCE IMPROVEMENTS
• New language parser built on the Dynamic Runtime Language in .NET 4.0
• Runtime script compilation
• Engine reliability improvements
• Changes to the Get-ChildItem algorithm to enhance performance, especially
with searching network shares
NEW FEATURES IN WINDOWS POWERSHELL ISE
• Snippets
• Includes advanced functions and their parameters and for Do, While, If, Switch, and
ForEach keywords.
• Make your own snippets and import snippets from modules.
• Three cmdlets: New-IseSnippet, Get-IseSnippet and Import-IseSnippet.
• Brace-matching, error indicators, code outlining
• Options Window
NEW FEATURES IN WINDOWS POWERSHELL ISE
• Console pane
• Command pane + Output pane
• Behaves similar to console
• Intellisense
• Syntax highlighting
• Snippets
• Brace-matching
• Error indicators
• Show Command window
• Intellisense
NEW FEATURES IN WINDOWS POWERSHELL ISE
• Update Windows PowerShell Help from the Help menu
• Help Window- displays help from the help files on the computer, complementing the
Updatable Help feature.
• Auto-save
• Recent items list
• Block copy
• And more!
MICROSOFT SCRIPT EXPLORER
MICROSOFT SCRIPT EXPLORER
• Was a great way to search for scripts as guides – similar to the All-In-One
Code Framework app for developers
• Unfortunately, not well-adopted, so the service will be turned off effective
June 14, 2013
• What to do with this being discontinued? See the PowerShell blog post:
Microsoft Script Explorer: Next Steps
POWERSHELL WEB SERVICE
WINDOWS POWERSHELL WEB SERVICE
• Enables an administrator to expose a set of PowerShell cmdlets as a RESTful
endpoint via OData
• Allows cmdlets to be invoked by any platform that can work with OData
feeds – Windows and non-Windows
• Windows PowerShell role-based OData Web Service sample
• Windows PowerShell basic OData Web Service sample
SETTING UP WINDOWS POWERSHELL WEB
SERVICE – INSTALL SCRIPT
SETTING UP WINDOWS POWERSHELL WEB
SERVICE – SETUP THE ENDPOINT
DEMO OF POWERSHELL WEB SERVICE
• More on PowerShell cmdlets invocation through Management OData using
WCF client
RESOURCES
• Windows PowerShell Script Center
• Windows PowerShell Language Specification Version 3.0
• Windows PowerShell for Developers
• Windows PowerShell 3.0 SDK Sample Pack
• Windows PowerShell Reference
BONUS MATERIAL : COOL POWERSHELL TOOLS FOR DEVS
• StudioShell – exposes Visual Studio’s extensibility points in a simple manner
• SeeShell – Data Visualization for PowerShell
• Psake – a build automation tool
• OData PowerShell Provider – mount OData feeds as drives in PowerShell
• PoShRabbit – exposes RabbitMQ to PowerShell

Weitere ähnliche Inhalte

Was ist angesagt?

Domino OSGi Development
Domino OSGi DevelopmentDomino OSGi Development
Domino OSGi Development
Paul Fiore
 
How to Use NDS eDirectory to Secure Apache Web Server for NetWare
How to Use NDS eDirectory to Secure Apache Web Server for NetWareHow to Use NDS eDirectory to Secure Apache Web Server for NetWare
How to Use NDS eDirectory to Secure Apache Web Server for NetWare
webhostingguy
 
Server-side OSGi with Apache Sling
Server-side OSGi with Apache SlingServer-side OSGi with Apache Sling
Server-side OSGi with Apache Sling
Felix Meschberger
 

Was ist angesagt? (20)

[DanNotes] XPages - Beyound the Basics
[DanNotes] XPages - Beyound the Basics[DanNotes] XPages - Beyound the Basics
[DanNotes] XPages - Beyound the Basics
 
Domino OSGi Development
Domino OSGi DevelopmentDomino OSGi Development
Domino OSGi Development
 
Z-Ray: A customizable development tool belt (Zendcon 2016)
Z-Ray: A customizable development tool belt (Zendcon 2016)Z-Ray: A customizable development tool belt (Zendcon 2016)
Z-Ray: A customizable development tool belt (Zendcon 2016)
 
Introduction to Wildfly 8 - Marchioni
Introduction to Wildfly 8 -  MarchioniIntroduction to Wildfly 8 -  Marchioni
Introduction to Wildfly 8 - Marchioni
 
How to Use NDS eDirectory to Secure Apache Web Server for NetWare
How to Use NDS eDirectory to Secure Apache Web Server for NetWareHow to Use NDS eDirectory to Secure Apache Web Server for NetWare
How to Use NDS eDirectory to Secure Apache Web Server for NetWare
 
Laravel introduction
Laravel introductionLaravel introduction
Laravel introduction
 
DNUG HCL Domino 11 First Look
DNUG HCL Domino 11 First LookDNUG HCL Domino 11 First Look
DNUG HCL Domino 11 First Look
 
Domino V10 and How to Get There - IBM Think 2019
Domino V10 and How to Get There - IBM Think 2019Domino V10 and How to Get There - IBM Think 2019
Domino V10 and How to Get There - IBM Think 2019
 
Apache Felix Web Console
Apache Felix Web ConsoleApache Felix Web Console
Apache Felix Web Console
 
INF107 - Integrating HCL Domino and Microsoft 365
INF107 - Integrating HCL Domino and Microsoft 365INF107 - Integrating HCL Domino and Microsoft 365
INF107 - Integrating HCL Domino and Microsoft 365
 
October OpenNTF Webinar - What we like about Domino/Notes 12, recommended new...
October OpenNTF Webinar - What we like about Domino/Notes 12, recommended new...October OpenNTF Webinar - What we like about Domino/Notes 12, recommended new...
October OpenNTF Webinar - What we like about Domino/Notes 12, recommended new...
 
Server-side OSGi with Apache Sling (Jazoon 2010)
Server-side OSGi with Apache Sling (Jazoon 2010)Server-side OSGi with Apache Sling (Jazoon 2010)
Server-side OSGi with Apache Sling (Jazoon 2010)
 
Server-side OSGi with Apache Sling
Server-side OSGi with Apache SlingServer-side OSGi with Apache Sling
Server-side OSGi with Apache Sling
 
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
 
Instruction on creating a cluster on jboss eap environment
Instruction on creating a cluster on jboss eap environmentInstruction on creating a cluster on jboss eap environment
Instruction on creating a cluster on jboss eap environment
 
IBM Think 2018 - IBM Connections Troubleshooting
IBM Think 2018 -  IBM Connections TroubleshootingIBM Think 2018 -  IBM Connections Troubleshooting
IBM Think 2018 - IBM Connections Troubleshooting
 
WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.
WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.
WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.
 
Extending Business Processes 3.7
Extending Business Processes 3.7Extending Business Processes 3.7
Extending Business Processes 3.7
 
Webinar: IBM Connections Adminblast
Webinar: IBM Connections AdminblastWebinar: IBM Connections Adminblast
Webinar: IBM Connections Adminblast
 
Azure sharepointsql
Azure sharepointsqlAzure sharepointsql
Azure sharepointsql
 

Andere mochten auch

Andere mochten auch (8)

Three's Company - Writing for the Desktop, Browser, and Phone
Three's Company - Writing for the Desktop, Browser, and PhoneThree's Company - Writing for the Desktop, Browser, and Phone
Three's Company - Writing for the Desktop, Browser, and Phone
 
Web Analytics
Web AnalyticsWeb Analytics
Web Analytics
 
Ignite Cleveland - "Marketing Your Events Online"
Ignite Cleveland - "Marketing Your Events Online"Ignite Cleveland - "Marketing Your Events Online"
Ignite Cleveland - "Marketing Your Events Online"
 
Py Con 2009 Pumping Iron Into Python
Py Con 2009   Pumping Iron Into PythonPy Con 2009   Pumping Iron Into Python
Py Con 2009 Pumping Iron Into Python
 
Keeping an Open Mind About Open Source
Keeping an Open Mind About Open SourceKeeping an Open Mind About Open Source
Keeping an Open Mind About Open Source
 
Untying the Knots of Web Dev with Internet Explorer
Untying the Knots of Web Dev with Internet Explorer Untying the Knots of Web Dev with Internet Explorer
Untying the Knots of Web Dev with Internet Explorer
 
Keeping an Open Mind on Open Source
Keeping an Open Mind on Open SourceKeeping an Open Mind on Open Source
Keeping an Open Mind on Open Source
 
Consumer Camp - Featuring Surface, Xbox, SkyDrive, and Win Phone
Consumer Camp - Featuring Surface, Xbox, SkyDrive, and Win PhoneConsumer Camp - Featuring Surface, Xbox, SkyDrive, and Win Phone
Consumer Camp - Featuring Surface, Xbox, SkyDrive, and Win Phone
 

Ähnlich wie Unleashing the Power: A Lap Around PowerShell 3.0

Ähnlich wie Unleashing the Power: A Lap Around PowerShell 3.0 (20)

Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
SharePoint on demand with System Center - Matija Blagus
SharePoint on demand with System Center - Matija BlagusSharePoint on demand with System Center - Matija Blagus
SharePoint on demand with System Center - Matija Blagus
 
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
 
Introducing PowerShell 3.0
Introducing PowerShell 3.0Introducing PowerShell 3.0
Introducing PowerShell 3.0
 
Patterns
Patterns Patterns
Patterns
 
ITB2017 - Keynote
ITB2017 - KeynoteITB2017 - Keynote
ITB2017 - Keynote
 
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud EnvironmentsAutomation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
 
Virtualisation Academy - Private Cloud
Virtualisation Academy - Private CloudVirtualisation Academy - Private Cloud
Virtualisation Academy - Private Cloud
 
Oracle database connection with the .net developers
Oracle database connection with the .net developersOracle database connection with the .net developers
Oracle database connection with the .net developers
 
Operations and Security at Cloud Scale with Amazon EC2 System Manager - AWS S...
Operations and Security at Cloud Scale with Amazon EC2 System Manager - AWS S...Operations and Security at Cloud Scale with Amazon EC2 System Manager - AWS S...
Operations and Security at Cloud Scale with Amazon EC2 System Manager - AWS S...
 
IBM InterConnect 2015 - IIB in the Cloud
IBM InterConnect 2015 - IIB in the CloudIBM InterConnect 2015 - IIB in the Cloud
IBM InterConnect 2015 - IIB in the Cloud
 
Drupal 8 - Quick bites
Drupal 8 - Quick  bitesDrupal 8 - Quick  bites
Drupal 8 - Quick bites
 
Patch Management on Windows with Puppet
Patch Management on Windows with PuppetPatch Management on Windows with Puppet
Patch Management on Windows with Puppet
 
Lotus Domino 8.5
Lotus Domino 8.5Lotus Domino 8.5
Lotus Domino 8.5
 
Mini-Training: NancyFX
Mini-Training: NancyFXMini-Training: NancyFX
Mini-Training: NancyFX
 
Bcit win8 ws2012 session
Bcit win8 ws2012 sessionBcit win8 ws2012 session
Bcit win8 ws2012 session
 
System Center & SharePoint on prem
System Center & SharePoint on premSystem Center & SharePoint on prem
System Center & SharePoint on prem
 
MVC 6 - the new unified Web programming model
MVC 6 - the new unified Web programming modelMVC 6 - the new unified Web programming model
MVC 6 - the new unified Web programming model
 
Why Upgrade to v8.6?
Why Upgrade to v8.6?Why Upgrade to v8.6?
Why Upgrade to v8.6?
 
OSGi Community Event 2010 - OSGi Technical Update
OSGi Community Event 2010 - OSGi Technical UpdateOSGi Community Event 2010 - OSGi Technical Update
OSGi Community Event 2010 - OSGi Technical Update
 

Mehr von Sarah Dutkiewicz

Mehr von Sarah Dutkiewicz (20)

Passwordless Development using Azure Identity
Passwordless Development using Azure IdentityPasswordless Development using Azure Identity
Passwordless Development using Azure Identity
 
Predicting Flights with Azure Databricks
Predicting Flights with Azure DatabricksPredicting Flights with Azure Databricks
Predicting Flights with Azure Databricks
 
Azure DevOps for Developers
Azure DevOps for DevelopersAzure DevOps for Developers
Azure DevOps for Developers
 
Azure DevOps for JavaScript Developers
Azure DevOps for JavaScript DevelopersAzure DevOps for JavaScript Developers
Azure DevOps for JavaScript Developers
 
Azure DevOps for the Data Professional
Azure DevOps for the Data ProfessionalAzure DevOps for the Data Professional
Azure DevOps for the Data Professional
 
Noodling with Data in Jupyter Notebook
Noodling with Data in Jupyter NotebookNoodling with Data in Jupyter Notebook
Noodling with Data in Jupyter Notebook
 
Pairing and mobbing
Pairing and mobbingPairing and mobbing
Pairing and mobbing
 
Intro to Python for C# Developers
Intro to Python for C# DevelopersIntro to Python for C# Developers
Intro to Python for C# Developers
 
Introduction to Testing and TDD
Introduction to Testing and TDDIntroduction to Testing and TDD
Introduction to Testing and TDD
 
Becoming a Servant Leader, Leading from the Trenches
Becoming a Servant Leader, Leading from the TrenchesBecoming a Servant Leader, Leading from the Trenches
Becoming a Servant Leader, Leading from the Trenches
 
NEOISF - On Mentoring Future Techies
NEOISF - On Mentoring Future TechiesNEOISF - On Mentoring Future Techies
NEOISF - On Mentoring Future Techies
 
Becoming a Servant Leader
Becoming a Servant LeaderBecoming a Servant Leader
Becoming a Servant Leader
 
The Polyglot Data Scientist - Exploring R, Python, and SQL Server
The Polyglot Data Scientist - Exploring R, Python, and SQL ServerThe Polyglot Data Scientist - Exploring R, Python, and SQL Server
The Polyglot Data Scientist - Exploring R, Python, and SQL Server
 
The importance of UX for Developers
The importance of UX for DevelopersThe importance of UX for Developers
The importance of UX for Developers
 
The Impact of Women Trailblazers in Tech
The Impact of Women Trailblazers in TechThe Impact of Women Trailblazers in Tech
The Impact of Women Trailblazers in Tech
 
Unstoppable Course Final Presentation
Unstoppable Course Final PresentationUnstoppable Course Final Presentation
Unstoppable Course Final Presentation
 
Even More Tools for the Developer's UX Toolbelt
Even More Tools for the Developer's UX ToolbeltEven More Tools for the Developer's UX Toolbelt
Even More Tools for the Developer's UX Toolbelt
 
History of Women in Tech
History of Women in TechHistory of Women in Tech
History of Women in Tech
 
History of Women in Tech - Trivia
History of Women in Tech - TriviaHistory of Women in Tech - Trivia
History of Women in Tech - Trivia
 
The UX Toolbelt for Developers
The UX Toolbelt for DevelopersThe UX Toolbelt for Developers
The UX Toolbelt for Developers
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Unleashing the Power: A Lap Around PowerShell 3.0

  • 1. UNLEASHING THE POWER: A LAP AROUND POWERSHELL 3.0 SARAH DUTKIEWICZ CLEVELAND TECH CONSULTING SARAH@CLETECHCONSULTING.COM
  • 2. AGENDA • System Requirements • Overview of New & Improved Features • Resources • BONUS Material : Cool PowerShell Tools for Devs
  • 3. WINDOWS MANAGEMENT FRAMEWORK 3.0 • Includes: • Windows PowerShell 3.0 • WMI • WinRM • Management OData IIS Extension • Server Manager CIM Provider Download Here
  • 4. SYSTEM REQUIREMENTS • Windows 8, Windows Server 2012 – built-in • Windows 7 Service Pack 1 • Windows Server 2008 R2 SP1 • Windows Server 2008 Service Pack 2
  • 5. INSTALLATION NOTES • Requires Microsoft .NET Framework 4.0 • The Integrated Scripting Environment (ISE) is an optional feature for server SKUs. • For Windows Server 2008, the previous version of Windows Management Framework – which contains PowerShell 2.0 – must be installed first.
  • 6. GETTING STARTED – CONSOLE/VERSION
  • 7. BACKWARDS COMPATIBILITY • Windows PowerShell 3.0 is backward-compatible. • 2.0 syntax and functionality that were designed for 2.0 should work in 3.0 without changes.
  • 8. POWERSHELL WEB ACCESS ACCESS YOUR COMPANY’S COMPUTERS VIA POWERSHELL IN A WEB BROWSER
  • 9. POWERSHELL WEB ACCESS - LIMITATIONS • Double-hop issues when connecting to a second computer • Same limitations as a remote Windows PowerShell session • Commands that call Windows console APIs don’t work. • Anything that displays a GUI doesn’t work. • Tab Completion doesn’t work in NoLanguage sessions. • Allows only one remote connection per browser session
  • 10. POWERSHELL WEB ACCESS – MORE LIMITATIONS • Persistent Windows PowerShell sessions – need to use –Job for long running tasks and to allow disconnection rather than log off • No nested progress displays • Input colors cannot be modified • Function keys may not work in the PowerShell app if they are reserved for browser functionality • More notes at: Use the Web-based PowerShell Console
  • 11. WINDOWS POWERSHELL WEB ACCESS • Requires: • Windows Server 2012 • IIS • .NET Framework 4.5 • PowerShell 3.0
  • 12. POWERSHELL WEB ACCESS – BROWSER SUPPORT • Internet Explorer (8 or higher) • Firefox (10.0.2) • Chrome for Windows (17.0.963.56m) • Safari for Windows (5.1.2) • Safari for Mac (5.1.2)
  • 13. POWERSHELL WEB ACCESS – MOBILE SUPPORT • Minimally tested on: • Windows Phone 7 and 7.5 • Google Android WebKit 3.1 Browser Android 2.2.1 (Kernel 2.6) • Apple Safari for iPhone operating system 5.0.1 • Apple Safari for iPad 2 operating system 5.0.1
  • 14. POWERSHELL WEB ACCESS – BROWSER REQUIREMENTS • Allow cookies from the Windows PowerShell Web Access gateway website. • Be able to open and read HTTPS pages. • Open and run websites that use JavaScript.
  • 15. POWERSHELL WEB ACCESS - INSTALLATION • Via Features/Roles wizard through the Server Manager • Through PowerShell cmdlets • Detailed instructions available here: http://technet.microsoft.com/en- us/library/hh831611.aspx#BKMK_install
  • 16. POWERSHELL WEB ACCESS – SET UP THE GATEWAY • Use Install-PswaWebApplication to configure Windows PowerShell Web Access. • Use the –UseTestCertificate parameter only for internal testing
  • 17. POWERSHELL WEB ACCESS – SETTING UP THE GATEWAY
  • 18. POWERSHELL WEB ACCESS – CONFIGURE SECURITY • Use cmdlets to help specify what users have access to what. • For demo purposes, we’re using: Add-PswaAuthorizationRule –UserName * -ComputerName * -ConfigurationName *
  • 19. POWERSHELL WEB ACCESS – LOG IN
  • 21. NEW FEATURES & IMPROVEMENTS EASIER SYNTAX, BETTER PERFORMANCE, MORE ROBUSTNESS, AND MORE!
  • 22. IMPROVED WHERE AND FOREACH SYNTAX • Example: Get all processes where CPU is greater than 100 2.0: Get-Process | where { $_.CPU –gt 100 } 3.0: Get-Process | where CPU –gt 100
  • 23. IMPROVED WHERE AND FOREACH SYNTAX • Example: Find all available “Microsoft.*” available modules and split their names 2.0: Get-Module –ListAvailable | Where { $_.Name –like “Microsoft.*” } | Foreach { $_.Name.Split(“.”) } 3.0: Get-Module –ListAvailable | Where Name –like “Microsoft.*” | Foreach Split “.”
  • 24. MICROSOFT .NET FRAMEWORK 4.0 SUPPORT • Application Compatibility and Deployment • Managed Extensibility Framework • Parallel Computing • Networking • Windows Communication Foundation • Windows Workflow Foundation
  • 25. SESSION IMPROVEMENTS – DISCONNECTED SESSIONS • Persistent sessions saved on remote computer • No longer session-dependent • New cmdlets: Connect-PSSession, Disconnect-PSSession, and Receive- PSSession • New parameter InDisconnectedSession • Both client and server need to be running Windows PowerShell 3.0
  • 26. HELP IMPROVEMENTS – UPDATABLE HELP • Updatable Help System • By default, help files for a module update no more than once a day • Windows 8 and Windows Server 2012 do not have help files as part of their installations Update-Help Save-Help Supporting Updatable Help
  • 27. HELP IMPROVEMENTS – ENHANCED ONLINE HELP • Enhanced Online Help • Works well even when the help files aren’t installed on the computer Get-Help {cmdlet} –Online Supporting Online Help
  • 28. SCHEDULED JOBS & TASK SCHEDULER INTEGRATION • Windows PowerShell jobs can now be background jobs managed by Task Scheduler. • PowerShell scheduled jobs run asynchronously. • Scheduled jobs can be one-time or recurrent. • New cmdlet set for scheduled jobs • See more at about_Scheduled_Jobs
  • 29. LANGUAGE ENHANCEMENTS – NEW CORE CMDLETS • Full list can be seen here: http://technet.microsoft.com/en- us/library/hh857339.aspx#BKMK_CHAR • Highlights include: • ConvertTo-Json & ConvertFrom-Json • Disable-ScheduledJob & Enable-ScheduledJob • Invoke-RestMethod & Invoke-WebRequest
  • 30. IMPROVEMENTS TO EXISTING FUNCTIONALITY • Simplified syntax and new parameters include: • Get-ChildItem • Get-Command • Get-Content • Get-History • Select-Object • Select-String • Split-Path • Start-Process • Test-Connection
  • 31. IMPROVEMENTS TO EXISTING FUNCTIONALITY • Certificate provider supports SSL certificates for web hosting • Support for credential • Persistent network drives • Alternate data streams in file system drives
  • 32. ENHANCED TAB COMPLETION • Tab completion was written on a new parser • Better midline tab completion • Now completes: • Cmdlets • Parameters • Parameter Values • Enumerations • .NET Framework types • COM objects • Hidden directories • More!
  • 33. MODULE AUTO-LOADING • Get-Command now looks at all installed modules rather than just the imported ones. • Automatic import is triggered by Get-Command, Get-Help, or running a cmdlet from the module • This auto-loading can be controlled with the $PSModuleAutoLoadingPreference preference variable
  • 34. MODULE EXPERIENCE IMPROVEMENTS • Module logging for individual modules (LogPipelineExecutionDetails) and the new "Turn on Module Logging" Group Policy setting • Extended module objects that expose the values from the module manifest • New ExportedCommands property of modules, including nested modules, that combines commands of all types • Improved discovery of available (un-imported) modules, including allowing the Path and ListAvailable parameters in the same command • New DefaultCommandPrefix key in module manifests that avoids name conflicts without changing module code.
  • 35. MODULE EXPERIENCE IMPROVEMENTS • Improved module requirements, including fully-qualified required modules with version and GUID and automatic importing of required modules • Quieter, streamlined operation of the New-ModuleManifest cmdlet. • New Module parameter for #Requires • Improved Import-Module cmdlet with both MinimumVersion and RequiredVersion parameters.
  • 36. SIMPLIFIED COMMAND DISCOVERY • Get-Command displays all commands from all installed modules. • Due to auto-loading, a module will automatically be loaded once a command from that module is executed. • Show-Command also helps beginners learn commands.
  • 37. IMPROVED LOGGING • Supports Event Tracing in Windows (ETW) logs • “Turn on Module Logging” now included as a Group Policy setting. • Parameter values appear in log details in the log properties.
  • 38. FORMATTING & OUTPUT IMPROVEMENTS • Output redirection for all streams • Enhanced Update-Type cmdlet that adds types dynamically without ps1xml format files • Word wrap in output • Default formatting of custom objects • PSCustomObject type • Support for discovering method overloads
  • 39. SPECIAL CHARACTER HANDLING IMPROVEMENTS • The LiteralPath parameter appears now on most cmdlets that use Path – including Update-Help and Save-Help • Improved handling of backticks and square brackets in file names and paths
  • 40. NEW CMDLET AND HOSTING APIS • Public AST APIs • APIs for • Pipeline paging • Nested pipelines • Runspace pools tab completion • Windows RT • Obsolete cmdlet attribute • Verb and Noun properties of the FunctionInfo object
  • 41. PERFORMANCE IMPROVEMENTS • New language parser built on the Dynamic Runtime Language in .NET 4.0 • Runtime script compilation • Engine reliability improvements • Changes to the Get-ChildItem algorithm to enhance performance, especially with searching network shares
  • 42. NEW FEATURES IN WINDOWS POWERSHELL ISE • Snippets • Includes advanced functions and their parameters and for Do, While, If, Switch, and ForEach keywords. • Make your own snippets and import snippets from modules. • Three cmdlets: New-IseSnippet, Get-IseSnippet and Import-IseSnippet. • Brace-matching, error indicators, code outlining • Options Window
  • 43. NEW FEATURES IN WINDOWS POWERSHELL ISE • Console pane • Command pane + Output pane • Behaves similar to console • Intellisense • Syntax highlighting • Snippets • Brace-matching • Error indicators • Show Command window • Intellisense
  • 44. NEW FEATURES IN WINDOWS POWERSHELL ISE • Update Windows PowerShell Help from the Help menu • Help Window- displays help from the help files on the computer, complementing the Updatable Help feature. • Auto-save • Recent items list • Block copy • And more!
  • 46. MICROSOFT SCRIPT EXPLORER • Was a great way to search for scripts as guides – similar to the All-In-One Code Framework app for developers • Unfortunately, not well-adopted, so the service will be turned off effective June 14, 2013 • What to do with this being discontinued? See the PowerShell blog post: Microsoft Script Explorer: Next Steps
  • 48. WINDOWS POWERSHELL WEB SERVICE • Enables an administrator to expose a set of PowerShell cmdlets as a RESTful endpoint via OData • Allows cmdlets to be invoked by any platform that can work with OData feeds – Windows and non-Windows • Windows PowerShell role-based OData Web Service sample • Windows PowerShell basic OData Web Service sample
  • 49. SETTING UP WINDOWS POWERSHELL WEB SERVICE – INSTALL SCRIPT
  • 50. SETTING UP WINDOWS POWERSHELL WEB SERVICE – SETUP THE ENDPOINT
  • 51. DEMO OF POWERSHELL WEB SERVICE • More on PowerShell cmdlets invocation through Management OData using WCF client
  • 52. RESOURCES • Windows PowerShell Script Center • Windows PowerShell Language Specification Version 3.0 • Windows PowerShell for Developers • Windows PowerShell 3.0 SDK Sample Pack • Windows PowerShell Reference
  • 53. BONUS MATERIAL : COOL POWERSHELL TOOLS FOR DEVS • StudioShell – exposes Visual Studio’s extensibility points in a simple manner • SeeShell – Data Visualization for PowerShell • Psake – a build automation tool • OData PowerShell Provider – mount OData feeds as drives in PowerShell • PoShRabbit – exposes RabbitMQ to PowerShell