SlideShare une entreprise Scribd logo
1  sur  24
Sponsored by SAPIEN
PowerShell Saturday
Singapore 01:
PowerShell 4.0
Brought to you by Singapore PowerShell User Group
http://www.facebook.com/singaporepowershell
http://powershell.org/wp/user-groups/singapore-powershell-user-group/
singapore@powershellgroup.org
Speaker: Ravikanth C
Twitter: @Ravikanth
FaceBook: Ravikanthc
Blog: http://ravichaganti.com/blog and http://www.powershellmagazine.com
Sponsored by SAPIEN
Thank you to the Sponsors
Prizes Sponsored by SAPIEN Technologies
• Download a trial of SAPIEN PowerShell Studio 2012:
• http://www.sapien.com/powershellstudio
Sponsored by SAPIEN
About Me
• 12+ years in IT; Lead Engineer for MS Collaboration Solutions at Dell
• PowerShell MVP since 2010
• Founder and Editor of PowerShell Magazine
• Community Lead
• Bangalore IT Pro User Group (@BangaloreITPro)
• PowerShell Bangalore User Group (@PSBug)
Sponsored by SAPIEN
Windows Management Framework 4.0
• Includes Updates to …
• PowerShell
• PowerShell ISE
• PowerShell Web Services
• Not updated in the current build
• Windows Remote Management (WinRM)
• Windows Management Instrumentation (WMI)
Sponsored by SAPIEN
PowerShell 4.0 - Requirements
• Requirements
• Windows Server 2008 R2 SP1 (x86 and amd64)
• Windows 7 SP1
• Windows Server 2012
• .NET Framework 4.5
• No Windows 8 yet!
Sponsored by SAPIEN
What is new?
• Several enhancements to existing features and cmdlets!
• Desired State Configuration (DSC)
Sponsored by SAPIEN
Elevated Privileges
• #Requires can now be used for checking administrative credentials
• #Requires -runasadministrator
Sponsored by SAPIEN
PowerShell Web Access
• Supports connecting and disconnecting from sessions
• Default values for the connection settings can be updated via
Web.config
Sponsored by SAPIEN
Pipeline Variable
• Useful in iterative pipelines
• Pipeline variable becomes available throughout the pipeline
• Cmdlets support -PipelineVariable
Sponsored by SAPIEN
Method Syntax for Filtering
• Perform object filtering by using Where() method on the object
collection
• Part of Desired State Configuration Module
• Not all operators are supported
Sponsored by SAPIEN
Dynamic Method Names
• Dynamic Properties support has always been there
• Variables can be used to invoke methods dynamically
Sponsored by SAPIEN
Built-in cmdlet for file hashing
• Get-FileHash
• MACTripleDES
• MD5
• RIPEMD160
• SHA1
• SHA256
• SHA384
• SHA512
Sponsored by SAPIEN
Other Changes
• Get-Process include UserName
• Remote and workflow script debugging
• -Runnow support for Register-ScheduledJob and Set-ScheduledJob
• -RepeatIndefinitely support for New-JobTrigger and Set-JobTrigger
• -Workgroup parameter support for Add-Computer and Remove-
Computer
• http://technet.microsoft.com/en-us/library/hh857339.aspx
Sponsored by SAPIEN
Desired State Configuration
• Platform that enables deployment and management of configuration
data
• DSC provides
• Language extensions
• Cmdlets to manage DSC
• Resources to specify the configuration
• Means to maintain and manage configuration
• Uses PowerShell remoting
• Uses declarative syntax
Sponsored by SAPIEN
Imperative vs Declarative Syntax
• Imperative – How a task needs to be performed
• PowerShell is imperative by design
• Declarative – What task needs to be performed
Sponsored by SAPIEN
DSC – Terminology
• Configuration
• Node
• Resource
Sponsored by SAPIEN
DSC - Resources
• Built-in Resources
• Archive
• Environment
• File
• Group
• Log
• Package
• Process
• Registry
• Role
• Script
• Service
• User
• Possible to create custom resources
Sponsored by SAPIEN
DSC – Custom Resources
• Written as PowerShell Modules
• Copy to
C:WindowsSystem32WindowsPowerShellv1.0ModulesPSDesiredStateCo
nfigurationPSProviders
• Requires
• MOF Schema
• Module Script
• Get-TargetResource
• Set-TargetResource
• Test-TargetResource
• Module Manifest
Sponsored by SAPIEN
DSC – Push vs Pull
• Push
• Pros
• Simple
• Control
• Cons
• Lack of complete automation
• Limited Scalability
• Pull
• Pros
• Complete Automation
• Scalability
• Cons
• ?
Sponsored by SAPIEN
DSC – Pull Server
• Windows Feature
• Available on Windows Server 2012 and 2012 R2
• An IIS endpoint
Sponsored by SAPIEN
DSC – Local Configuration Manager
• DSC Engine
• Runs on all nodes
• Responsible for calling the DSC resources
• LCM properties can be updated to use pull model; of course, using
DSC 
Sponsored by SAPIEN
Summary
• DSC is the biggest thing in PowerShell 4.0
• Get started with DSC!
Sponsored by SAPIEN
References
• Windows Management Framework 4.0 Download
http://www.microsoft.com/en-us/download/details.aspx?id=39347
• What is new in PowerShell 4.0?
http://technet.microsoft.com/en-us/library/hh857339.aspx
• Desired State Configuration
http://technet.microsoft.com/en-us/library/dn249912.aspx
• Imeprative vs Declarative Syntax in PowerShell
http://www.powershellmagazine.com/2013/07/05/imperative-versus-
declarative-syntax-in-powershell/
Sponsored by SAPIEN
Q & A

Contenu connexe

Tendances

BDT Workflow
BDT WorkflowBDT Workflow
BDT Workflow
lrotter
 

Tendances (20)

Techniques and Tools to Improve the Salesforce Development Cycle
Techniques and Tools to Improve the Salesforce Development CycleTechniques and Tools to Improve the Salesforce Development Cycle
Techniques and Tools to Improve the Salesforce Development Cycle
 
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring Insight
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring InsightSplunk conf2014 - Using Selenium and Splunk for Transaction Monitoring Insight
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring Insight
 
Apex world 2018 continuously delivering APEX
Apex world 2018 continuously delivering APEXApex world 2018 continuously delivering APEX
Apex world 2018 continuously delivering APEX
 
Sahi
SahiSahi
Sahi
 
Sps monaco vincent biret spfx devops
Sps monaco vincent biret spfx devopsSps monaco vincent biret spfx devops
Sps monaco vincent biret spfx devops
 
[Curitiba DEV DAY] - Novidades do TFS 2015
[Curitiba DEV DAY] -  Novidades do TFS 2015[Curitiba DEV DAY] -  Novidades do TFS 2015
[Curitiba DEV DAY] - Novidades do TFS 2015
 
BDT Workflow
BDT WorkflowBDT Workflow
BDT Workflow
 
Bring api manager into your stack
Bring api manager into your stackBring api manager into your stack
Bring api manager into your stack
 
Microsoft Team Foundation Server Build 2015
Microsoft Team Foundation Server Build 2015Microsoft Team Foundation Server Build 2015
Microsoft Team Foundation Server Build 2015
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5Introduction to ASP.NET 5
Introduction to ASP.NET 5
 
Software testting
Software testtingSoftware testting
Software testting
 
Building your own JEA Configuration
Building your own JEA ConfigurationBuilding your own JEA Configuration
Building your own JEA Configuration
 
Infrastructure as Code
Infrastructure as CodeInfrastructure as Code
Infrastructure as Code
 
Secure your servers in time with JIT and JEA
Secure your servers in time with JIT and JEASecure your servers in time with JIT and JEA
Secure your servers in time with JIT and JEA
 
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
 
What's new in Visual Studio 2013 & TFS 2013
What's new in Visual Studio 2013 & TFS 2013What's new in Visual Studio 2013 & TFS 2013
What's new in Visual Studio 2013 & TFS 2013
 
Continuous Integration and Delivery using TeamCity and Jenkins
Continuous Integration and Delivery using TeamCity and JenkinsContinuous Integration and Delivery using TeamCity and Jenkins
Continuous Integration and Delivery using TeamCity and Jenkins
 
Learning from the Early Adopters of DevOps: A Guidebook to Success featuring ...
Learning from the Early Adopters of DevOps: A Guidebook to Success featuring ...Learning from the Early Adopters of DevOps: A Guidebook to Success featuring ...
Learning from the Early Adopters of DevOps: A Guidebook to Success featuring ...
 
Reusable Build Scripts for Managed Package Development (October 14, 2014)
Reusable Build Scripts for Managed Package Development (October 14, 2014)Reusable Build Scripts for Managed Package Development (October 14, 2014)
Reusable Build Scripts for Managed Package Development (October 14, 2014)
 
Getting started with mobile application development
Getting started with mobile application developmentGetting started with mobile application development
Getting started with mobile application development
 

Similaire à Power shell saturday ravikanth

Oscon London 2016 - Docker from Development to Production
Oscon London 2016 - Docker from Development to ProductionOscon London 2016 - Docker from Development to Production
Oscon London 2016 - Docker from Development to Production
Patrick Chanezon
 
Rich faces in_the_cloud_mini_booth
Rich faces in_the_cloud_mini_boothRich faces in_the_cloud_mini_booth
Rich faces in_the_cloud_mini_booth
balunasj
 

Similaire à Power shell saturday ravikanth (20)

Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
Mastering Office 365 with PowerShell - TechDays Finland 2020
Mastering Office 365 with PowerShell -  TechDays Finland 2020Mastering Office 365 with PowerShell -  TechDays Finland 2020
Mastering Office 365 with PowerShell - TechDays Finland 2020
 
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
 
Salesforce Continuous Integration with AutoRABIT
Salesforce Continuous Integration with AutoRABITSalesforce Continuous Integration with AutoRABIT
Salesforce Continuous Integration with AutoRABIT
 
Oscon London 2016 - Docker from Development to Production
Oscon London 2016 - Docker from Development to ProductionOscon London 2016 - Docker from Development to Production
Oscon London 2016 - Docker from Development to Production
 
TXLF: Chef- Software Defined Infrastructure Today & Tomorrow
TXLF: Chef- Software Defined Infrastructure Today & TomorrowTXLF: Chef- Software Defined Infrastructure Today & Tomorrow
TXLF: Chef- Software Defined Infrastructure Today & Tomorrow
 
Continuous Delivery: How RightScale Releases Weekly
Continuous Delivery: How RightScale Releases WeeklyContinuous Delivery: How RightScale Releases Weekly
Continuous Delivery: How RightScale Releases Weekly
 
Change management in hybrid landscapes
Change management in hybrid landscapesChange management in hybrid landscapes
Change management in hybrid landscapes
 
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
 
How to setup a development environment for ONAP
How to setup a development environment for ONAPHow to setup a development environment for ONAP
How to setup a development environment for ONAP
 
FlexDeploy Product Technical Overview
FlexDeploy Product Technical OverviewFlexDeploy Product Technical Overview
FlexDeploy Product Technical Overview
 
Rich faces in_the_cloud_mini_booth
Rich faces in_the_cloud_mini_boothRich faces in_the_cloud_mini_booth
Rich faces in_the_cloud_mini_booth
 
Key alias dev standard final
Key alias   dev standard finalKey alias   dev standard final
Key alias dev standard final
 
Building a Continuous Delivery Pipeline With Visual Studio
Building a Continuous Delivery Pipeline With Visual StudioBuilding a Continuous Delivery Pipeline With Visual Studio
Building a Continuous Delivery Pipeline With Visual Studio
 
Build Your First SharePoint Framework Webpart
Build Your First SharePoint Framework WebpartBuild Your First SharePoint Framework Webpart
Build Your First SharePoint Framework Webpart
 
T3 - Deploy, manage, and scale your apps
T3 - Deploy, manage, and scale your appsT3 - Deploy, manage, and scale your apps
T3 - Deploy, manage, and scale your apps
 
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...
 
Wellington MuleSoft Meetup 2021-02-18
Wellington MuleSoft Meetup 2021-02-18Wellington MuleSoft Meetup 2021-02-18
Wellington MuleSoft Meetup 2021-02-18
 
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
 
DevOps for DBAs
DevOps for DBAsDevOps for DBAs
DevOps for DBAs
 

Plus de Ravikanth Chaganti

Desired state-configuration-ravikanth-august-2013-vtc india
Desired state-configuration-ravikanth-august-2013-vtc indiaDesired state-configuration-ravikanth-august-2013-vtc india
Desired state-configuration-ravikanth-august-2013-vtc india
Ravikanth Chaganti
 

Plus de Ravikanth Chaganti (20)

Azure Bicep - An Introduction
Azure Bicep - An IntroductionAzure Bicep - An Introduction
Azure Bicep - An Introduction
 
Azure CLI 2.0 Tips and Tricks
Azure CLI 2.0 Tips and TricksAzure CLI 2.0 Tips and Tricks
Azure CLI 2.0 Tips and Tricks
 
Tests Driven PowerShell Learning
Tests Driven PowerShell LearningTests Driven PowerShell Learning
Tests Driven PowerShell Learning
 
PowerShell Data as File System
PowerShell Data as File SystemPowerShell Data as File System
PowerShell Data as File System
 
Azure at the command line
Azure at the command lineAzure at the command line
Azure at the command line
 
Microsoft Azure Cloud and DevOps
Microsoft Azure Cloud and DevOpsMicrosoft Azure Cloud and DevOps
Microsoft Azure Cloud and DevOps
 
Authoring Azure Resource Manager Templates - Future Unleashed 2015
Authoring Azure Resource Manager Templates - Future Unleashed 2015Authoring Azure Resource Manager Templates - Future Unleashed 2015
Authoring Azure Resource Manager Templates - Future Unleashed 2015
 
Cloud Computing for IT professionals
Cloud Computing for IT professionalsCloud Computing for IT professionals
Cloud Computing for IT professionals
 
Introduction to Microsoft Azure Compute
Introduction to Microsoft Azure ComputeIntroduction to Microsoft Azure Compute
Introduction to Microsoft Azure Compute
 
Cross platform configuration management using Desired State Configuration
Cross platform configuration management using Desired State ConfigurationCross platform configuration management using Desired State Configuration
Cross platform configuration management using Desired State Configuration
 
Windows Server 2012 R2 Hyper-V Replica
Windows Server 2012 R2 Hyper-V ReplicaWindows Server 2012 R2 Hyper-V Replica
Windows Server 2012 R2 Hyper-V Replica
 
Whats new in Windows Server 2012 R2 Hyper-V
Whats new in Windows Server 2012 R2 Hyper-VWhats new in Windows Server 2012 R2 Hyper-V
Whats new in Windows Server 2012 R2 Hyper-V
 
Configuration management comes to Windows
Configuration management comes to WindowsConfiguration management comes to Windows
Configuration management comes to Windows
 
Desired state-configuration-ravikanth-august-2013-vtc india
Desired state-configuration-ravikanth-august-2013-vtc indiaDesired state-configuration-ravikanth-august-2013-vtc india
Desired state-configuration-ravikanth-august-2013-vtc india
 
PowerShell 3.0 workflows
PowerShell 3.0 workflowsPowerShell 3.0 workflows
PowerShell 3.0 workflows
 
Introduction to PowerShell and getting started
Introduction to PowerShell and getting startedIntroduction to PowerShell and getting started
Introduction to PowerShell and getting started
 
PowerShell in the enterprise - TechED India 2011
PowerShell in the enterprise - TechED India 2011PowerShell in the enterprise - TechED India 2011
PowerShell in the enterprise - TechED India 2011
 
Managing Hyper-V With PowerShell
Managing Hyper-V With PowerShellManaging Hyper-V With PowerShell
Managing Hyper-V With PowerShell
 
Using PowerShell for active directory management
Using PowerShell for active directory managementUsing PowerShell for active directory management
Using PowerShell for active directory management
 
PowerShell for sharepoint 2010 administrators
PowerShell for sharepoint 2010 administratorsPowerShell for sharepoint 2010 administrators
PowerShell for sharepoint 2010 administrators
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+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@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Dernier (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
+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...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
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
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
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...
 
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
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Power shell saturday ravikanth

  • 1. Sponsored by SAPIEN PowerShell Saturday Singapore 01: PowerShell 4.0 Brought to you by Singapore PowerShell User Group http://www.facebook.com/singaporepowershell http://powershell.org/wp/user-groups/singapore-powershell-user-group/ singapore@powershellgroup.org Speaker: Ravikanth C Twitter: @Ravikanth FaceBook: Ravikanthc Blog: http://ravichaganti.com/blog and http://www.powershellmagazine.com
  • 2. Sponsored by SAPIEN Thank you to the Sponsors Prizes Sponsored by SAPIEN Technologies • Download a trial of SAPIEN PowerShell Studio 2012: • http://www.sapien.com/powershellstudio
  • 3. Sponsored by SAPIEN About Me • 12+ years in IT; Lead Engineer for MS Collaboration Solutions at Dell • PowerShell MVP since 2010 • Founder and Editor of PowerShell Magazine • Community Lead • Bangalore IT Pro User Group (@BangaloreITPro) • PowerShell Bangalore User Group (@PSBug)
  • 4. Sponsored by SAPIEN Windows Management Framework 4.0 • Includes Updates to … • PowerShell • PowerShell ISE • PowerShell Web Services • Not updated in the current build • Windows Remote Management (WinRM) • Windows Management Instrumentation (WMI)
  • 5. Sponsored by SAPIEN PowerShell 4.0 - Requirements • Requirements • Windows Server 2008 R2 SP1 (x86 and amd64) • Windows 7 SP1 • Windows Server 2012 • .NET Framework 4.5 • No Windows 8 yet!
  • 6. Sponsored by SAPIEN What is new? • Several enhancements to existing features and cmdlets! • Desired State Configuration (DSC)
  • 7. Sponsored by SAPIEN Elevated Privileges • #Requires can now be used for checking administrative credentials • #Requires -runasadministrator
  • 8. Sponsored by SAPIEN PowerShell Web Access • Supports connecting and disconnecting from sessions • Default values for the connection settings can be updated via Web.config
  • 9. Sponsored by SAPIEN Pipeline Variable • Useful in iterative pipelines • Pipeline variable becomes available throughout the pipeline • Cmdlets support -PipelineVariable
  • 10. Sponsored by SAPIEN Method Syntax for Filtering • Perform object filtering by using Where() method on the object collection • Part of Desired State Configuration Module • Not all operators are supported
  • 11. Sponsored by SAPIEN Dynamic Method Names • Dynamic Properties support has always been there • Variables can be used to invoke methods dynamically
  • 12. Sponsored by SAPIEN Built-in cmdlet for file hashing • Get-FileHash • MACTripleDES • MD5 • RIPEMD160 • SHA1 • SHA256 • SHA384 • SHA512
  • 13. Sponsored by SAPIEN Other Changes • Get-Process include UserName • Remote and workflow script debugging • -Runnow support for Register-ScheduledJob and Set-ScheduledJob • -RepeatIndefinitely support for New-JobTrigger and Set-JobTrigger • -Workgroup parameter support for Add-Computer and Remove- Computer • http://technet.microsoft.com/en-us/library/hh857339.aspx
  • 14. Sponsored by SAPIEN Desired State Configuration • Platform that enables deployment and management of configuration data • DSC provides • Language extensions • Cmdlets to manage DSC • Resources to specify the configuration • Means to maintain and manage configuration • Uses PowerShell remoting • Uses declarative syntax
  • 15. Sponsored by SAPIEN Imperative vs Declarative Syntax • Imperative – How a task needs to be performed • PowerShell is imperative by design • Declarative – What task needs to be performed
  • 16. Sponsored by SAPIEN DSC – Terminology • Configuration • Node • Resource
  • 17. Sponsored by SAPIEN DSC - Resources • Built-in Resources • Archive • Environment • File • Group • Log • Package • Process • Registry • Role • Script • Service • User • Possible to create custom resources
  • 18. Sponsored by SAPIEN DSC – Custom Resources • Written as PowerShell Modules • Copy to C:WindowsSystem32WindowsPowerShellv1.0ModulesPSDesiredStateCo nfigurationPSProviders • Requires • MOF Schema • Module Script • Get-TargetResource • Set-TargetResource • Test-TargetResource • Module Manifest
  • 19. Sponsored by SAPIEN DSC – Push vs Pull • Push • Pros • Simple • Control • Cons • Lack of complete automation • Limited Scalability • Pull • Pros • Complete Automation • Scalability • Cons • ?
  • 20. Sponsored by SAPIEN DSC – Pull Server • Windows Feature • Available on Windows Server 2012 and 2012 R2 • An IIS endpoint
  • 21. Sponsored by SAPIEN DSC – Local Configuration Manager • DSC Engine • Runs on all nodes • Responsible for calling the DSC resources • LCM properties can be updated to use pull model; of course, using DSC 
  • 22. Sponsored by SAPIEN Summary • DSC is the biggest thing in PowerShell 4.0 • Get started with DSC!
  • 23. Sponsored by SAPIEN References • Windows Management Framework 4.0 Download http://www.microsoft.com/en-us/download/details.aspx?id=39347 • What is new in PowerShell 4.0? http://technet.microsoft.com/en-us/library/hh857339.aspx • Desired State Configuration http://technet.microsoft.com/en-us/library/dn249912.aspx • Imeprative vs Declarative Syntax in PowerShell http://www.powershellmagazine.com/2013/07/05/imperative-versus- declarative-syntax-in-powershell/

Notes de l'éditeur

  1. Today has been made possible by our sponsors – SAPIEN Technologies and Microsoft
  2. Default execution policy setting isRemoteSigned on Windows Server 2012 R2