SlideShare uma empresa Scribd logo
1 de 18
PowerShell in the Enterprise Best Practices for adopting PowerShell as the automation platform
About Me Work at Dell Inc. A Windows PowerShell MVP Author of: eGuide: A layman’s guide to PowerShell 2.0 remoting eGuide: WMI Query Language via PowerShell SharePoint 2010 PowerShell cheat sheet (for Quest) Automation is my passion
Agenda Introduction Challenges Deploying & Securing PowerShell Developing & Validating Scripts Tools for the job Q & A
Giving Away.. PowerGUI Pro
Introduction Windows PowerShell? Microsoft Common Engineering Criteria* ..not just Microsoft anymore * http://www.microsoft.com/cec/en/us/cec-overview.aspx#man-windows
Challenges Properly manage PowerShell Secure the IT environment Make automation effective
Deploying PowerShell Available on Windows Server 2008 R2 and Windows 7, by default Available as an update (KB968929) for down level operating systems. Windows Update Standalone install
Securing PowerShell What is script execution policy? Types of Execution Policy Restricted AllSigned RemoteSigned Unrestricted ByPass Signing scripts
DEMO Securing PowerShell Execution policy and signing scripts
Developing Scripts Start with the shell Think Objects, not text Implement scripting standards Look for code optimizations Include script documentation Include debug or verbose information
DEMO Developing Scripts Object based shell and scripting standards
Developing Scripts Don’t re-invent the wheel PoshCode.Org Powershellcommunity.org #PowerShell Technet Scripts CenterForums
Validating Scripts Validate in a non-production environment Script functionality Desired output
Tools for the job Several script editors Windows PowerShell ISE PowerGUI Script Editor Idera PowerShellPlus DevFarm PowerSE Visual Studio for developing PowerShell Scripts PowerGUI VSX Develop Forms & WPF GUI
DEMO Tools for the job Script editors and Visual Studio
Summary Windows PowerShell is the futureof datacenter automation Best practices and recommendations make your environment effectiveand secure PowerShell community is growingand eager to help you
Thank You Email: Ravikanth@Ravichaganti.com Blog: http://www.ravichaganti.com/blog Twitter: http://www.twitter.com/ravikanth
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation.  Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.  MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Mais conteúdo relacionado

Mais procurados

Selenium Training - Eduxfactor-converted.pdf
Selenium Training - Eduxfactor-converted.pdfSelenium Training - Eduxfactor-converted.pdf
Selenium Training - Eduxfactor-converted.pdfbasanthbliss99
 
Vue js & vue cli 3 plugins to boost up the performance of your application
Vue js & vue cli 3 plugins to boost up the performance of your applicationVue js & vue cli 3 plugins to boost up the performance of your application
Vue js & vue cli 3 plugins to boost up the performance of your applicationKaty Slemon
 
Extend Visual Studio 2010
Extend Visual Studio 2010Extend Visual Studio 2010
Extend Visual Studio 2010Robert MacLean
 
Cosa c'è di nuovo per l'Application Lifecycle Management in Visual Studio 2013
Cosa c'è di nuovo per l'Application Lifecycle Management in Visual Studio 2013Cosa c'è di nuovo per l'Application Lifecycle Management in Visual Studio 2013
Cosa c'è di nuovo per l'Application Lifecycle Management in Visual Studio 2013dvernole
 
Presentation for gips
Presentation for gipsPresentation for gips
Presentation for gipsGIPS Infotech
 
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...Edureka!
 
Automatic system tests of web applications
Automatic system tests of web applicationsAutomatic system tests of web applications
Automatic system tests of web applicationsPiotr Benetkiewicz
 
07 the power in the shell - remoting
07 the power in the shell - remoting07 the power in the shell - remoting
07 the power in the shell - remotingShubham Atkare
 
Installing Plug-ins
Installing Plug-insInstalling Plug-ins
Installing Plug-insProdigyView
 
Upcoming new features of selenium in automation testing
Upcoming new features of selenium in automation testingUpcoming new features of selenium in automation testing
Upcoming new features of selenium in automation testingsoftware testingchennai
 
Visual Studio and Xamarin: The future of app development
Visual Studio and Xamarin: The future of app developmentVisual Studio and Xamarin: The future of app development
Visual Studio and Xamarin: The future of app developmentMicrosoft Tech Community
 
How ASP.NET MVC Implementation Help Enterprise Web Application Development?
How ASP.NET MVC  Implementation  Help Enterprise  Web Application Development?How ASP.NET MVC  Implementation  Help Enterprise  Web Application Development?
How ASP.NET MVC Implementation Help Enterprise Web Application Development?Grey Matter India Technologies PVT LTD
 

Mais procurados (19)

Selenium Training - Eduxfactor-converted.pdf
Selenium Training - Eduxfactor-converted.pdfSelenium Training - Eduxfactor-converted.pdf
Selenium Training - Eduxfactor-converted.pdf
 
Vue js & vue cli 3 plugins to boost up the performance of your application
Vue js & vue cli 3 plugins to boost up the performance of your applicationVue js & vue cli 3 plugins to boost up the performance of your application
Vue js & vue cli 3 plugins to boost up the performance of your application
 
Extend Visual Studio 2010
Extend Visual Studio 2010Extend Visual Studio 2010
Extend Visual Studio 2010
 
Cosa c'è di nuovo per l'Application Lifecycle Management in Visual Studio 2013
Cosa c'è di nuovo per l'Application Lifecycle Management in Visual Studio 2013Cosa c'è di nuovo per l'Application Lifecycle Management in Visual Studio 2013
Cosa c'è di nuovo per l'Application Lifecycle Management in Visual Studio 2013
 
Presentation for gips
Presentation for gipsPresentation for gips
Presentation for gips
 
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
 
Automatic system tests of web applications
Automatic system tests of web applicationsAutomatic system tests of web applications
Automatic system tests of web applications
 
Android MVVM TDD
Android MVVM TDDAndroid MVVM TDD
Android MVVM TDD
 
07 the power in the shell - remoting
07 the power in the shell - remoting07 the power in the shell - remoting
07 the power in the shell - remoting
 
Test driving an MVVM App
Test driving an MVVM AppTest driving an MVVM App
Test driving an MVVM App
 
Installing Plug-ins
Installing Plug-insInstalling Plug-ins
Installing Plug-ins
 
Installation of Silk Test Framework
Installation of Silk Test FrameworkInstallation of Silk Test Framework
Installation of Silk Test Framework
 
Upcoming new features of selenium in automation testing
Upcoming new features of selenium in automation testingUpcoming new features of selenium in automation testing
Upcoming new features of selenium in automation testing
 
Visual Studio and Xamarin: The future of app development
Visual Studio and Xamarin: The future of app developmentVisual Studio and Xamarin: The future of app development
Visual Studio and Xamarin: The future of app development
 
Walther Mvc
Walther MvcWalther Mvc
Walther Mvc
 
How ASP.NET MVC Implementation Help Enterprise Web Application Development?
How ASP.NET MVC  Implementation  Help Enterprise  Web Application Development?How ASP.NET MVC  Implementation  Help Enterprise  Web Application Development?
How ASP.NET MVC Implementation Help Enterprise Web Application Development?
 
Mvp pattern
Mvp patternMvp pattern
Mvp pattern
 
Certificate
CertificateCertificate
Certificate
 
Android MVVM
Android MVVMAndroid MVVM
Android MVVM
 

Semelhante a PowerShell in the enterprise - TechED India 2011

Ive got a powershell secret
Ive got a powershell secretIve got a powershell secret
Ive got a powershell secretChris Conte
 
PowerShell Scripting and AI-infused Automation
PowerShell Scripting and AI-infused AutomationPowerShell Scripting and AI-infused Automation
PowerShell Scripting and AI-infused AutomationMitul Rana
 
Inventory your network and clients with PowerShell
Inventory your network and clients with PowerShellInventory your network and clients with PowerShell
Inventory your network and clients with PowerShellConcentrated Technology
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 ManagementHi-Techpoint
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 ManagementHi-Techpoint
 
Visual Studio2008 Product Comparison V1.08
Visual Studio2008 Product Comparison V1.08Visual Studio2008 Product Comparison V1.08
Visual Studio2008 Product Comparison V1.08guest1197609
 
Develop and Run PHP on Windows. Say(Hello); to WordPress on Azure
Develop and Run PHP on Windows. Say(Hello); to WordPress on AzureDevelop and Run PHP on Windows. Say(Hello); to WordPress on Azure
Develop and Run PHP on Windows. Say(Hello); to WordPress on AzureValent Mustamin
 
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...Joel Oleson
 
Wsv315 Windows Power Shell For Beginners
Wsv315 Windows Power Shell For BeginnersWsv315 Windows Power Shell For Beginners
Wsv315 Windows Power Shell For Beginnersjsnover1
 
Microsoft WebsiteSpark & Windows Platform Installer
Microsoft WebsiteSpark & Windows Platform InstallerMicrosoft WebsiteSpark & Windows Platform Installer
Microsoft WebsiteSpark & Windows Platform InstallerGeorge Kanellopoulos
 
Sql Server & PowerShell
Sql Server & PowerShellSql Server & PowerShell
Sql Server & PowerShellAaron Shilo
 
Using power shell to enhance efficiency of your operation
Using power shell to enhance efficiency of your operationUsing power shell to enhance efficiency of your operation
Using power shell to enhance efficiency of your operationMilton Goh
 
Win Connections Technical Overview ( Harold W)
Win  Connections    Technical  Overview ( Harold W)Win  Connections    Technical  Overview ( Harold W)
Win Connections Technical Overview ( Harold W)Harold Wong
 
Win Connections Technical Overview (Harold W)
Win Connections   Technical Overview (Harold W)Win Connections   Technical Overview (Harold W)
Win Connections Technical Overview (Harold W)Harold Wong
 
WPF Applications, It's all about XAML these days
WPF Applications, It's all about XAML these daysWPF Applications, It's all about XAML these days
WPF Applications, It's all about XAML these daysDave Bost
 
Ws08 R2 Itpro Session 2 Technical Overview Part2
Ws08 R2 Itpro Session 2 Technical Overview Part2Ws08 R2 Itpro Session 2 Technical Overview Part2
Ws08 R2 Itpro Session 2 Technical Overview Part2chenley
 
Desktop of the future ' The Journey to Windows 7'
Desktop of the future ' The Journey to Windows 7'Desktop of the future ' The Journey to Windows 7'
Desktop of the future ' The Journey to Windows 7'BlueChipICT
 
Extending the Visual Studio 2010 Code Editor to Visualize Runtime Intelligenc...
Extending the Visual Studio 2010 Code Editor to Visualize Runtime Intelligenc...Extending the Visual Studio 2010 Code Editor to Visualize Runtime Intelligenc...
Extending the Visual Studio 2010 Code Editor to Visualize Runtime Intelligenc...Joe Kuemerle
 

Semelhante a PowerShell in the enterprise - TechED India 2011 (20)

Ive got a powershell secret
Ive got a powershell secretIve got a powershell secret
Ive got a powershell secret
 
PowerShell Scripting and AI-infused Automation
PowerShell Scripting and AI-infused AutomationPowerShell Scripting and AI-infused Automation
PowerShell Scripting and AI-infused Automation
 
VS TFS 2010 - Part1
VS TFS 2010 - Part1VS TFS 2010 - Part1
VS TFS 2010 - Part1
 
Inventory your network and clients with PowerShell
Inventory your network and clients with PowerShellInventory your network and clients with PowerShell
Inventory your network and clients with PowerShell
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
Visual Studio2008 Product Comparison V1.08
Visual Studio2008 Product Comparison V1.08Visual Studio2008 Product Comparison V1.08
Visual Studio2008 Product Comparison V1.08
 
Develop and Run PHP on Windows. Say(Hello); to WordPress on Azure
Develop and Run PHP on Windows. Say(Hello); to WordPress on AzureDevelop and Run PHP on Windows. Say(Hello); to WordPress on Azure
Develop and Run PHP on Windows. Say(Hello); to WordPress on Azure
 
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...
 
Wsv315 Windows Power Shell For Beginners
Wsv315 Windows Power Shell For BeginnersWsv315 Windows Power Shell For Beginners
Wsv315 Windows Power Shell For Beginners
 
Microsoft WebsiteSpark & Windows Platform Installer
Microsoft WebsiteSpark & Windows Platform InstallerMicrosoft WebsiteSpark & Windows Platform Installer
Microsoft WebsiteSpark & Windows Platform Installer
 
Sql Server & PowerShell
Sql Server & PowerShellSql Server & PowerShell
Sql Server & PowerShell
 
Using power shell to enhance efficiency of your operation
Using power shell to enhance efficiency of your operationUsing power shell to enhance efficiency of your operation
Using power shell to enhance efficiency of your operation
 
Win Connections Technical Overview ( Harold W)
Win  Connections    Technical  Overview ( Harold W)Win  Connections    Technical  Overview ( Harold W)
Win Connections Technical Overview ( Harold W)
 
Win Connections Technical Overview (Harold W)
Win Connections   Technical Overview (Harold W)Win Connections   Technical Overview (Harold W)
Win Connections Technical Overview (Harold W)
 
Meet Windows PowerShell
Meet Windows PowerShellMeet Windows PowerShell
Meet Windows PowerShell
 
WPF Applications, It's all about XAML these days
WPF Applications, It's all about XAML these daysWPF Applications, It's all about XAML these days
WPF Applications, It's all about XAML these days
 
Ws08 R2 Itpro Session 2 Technical Overview Part2
Ws08 R2 Itpro Session 2 Technical Overview Part2Ws08 R2 Itpro Session 2 Technical Overview Part2
Ws08 R2 Itpro Session 2 Technical Overview Part2
 
Desktop of the future ' The Journey to Windows 7'
Desktop of the future ' The Journey to Windows 7'Desktop of the future ' The Journey to Windows 7'
Desktop of the future ' The Journey to Windows 7'
 
Extending the Visual Studio 2010 Code Editor to Visualize Runtime Intelligenc...
Extending the Visual Studio 2010 Code Editor to Visualize Runtime Intelligenc...Extending the Visual Studio 2010 Code Editor to Visualize Runtime Intelligenc...
Extending the Visual Studio 2010 Code Editor to Visualize Runtime Intelligenc...
 

Mais de Ravikanth Chaganti

Tests Driven PowerShell Learning
Tests Driven PowerShell LearningTests Driven PowerShell Learning
Tests Driven PowerShell LearningRavikanth Chaganti
 
PowerShell Data as File System
PowerShell Data as File SystemPowerShell Data as File System
PowerShell Data as File SystemRavikanth Chaganti
 
Microsoft Azure Cloud and DevOps
Microsoft Azure Cloud and DevOpsMicrosoft Azure Cloud and DevOps
Microsoft Azure Cloud and DevOpsRavikanth Chaganti
 
Using PowerShell DSC with AWS Cloud and CloudFormation
Using PowerShell DSC with AWS Cloud and CloudFormationUsing PowerShell DSC with AWS Cloud and CloudFormation
Using PowerShell DSC with AWS Cloud and CloudFormationRavikanth Chaganti
 
Developing Infrastructure Code for CI & CD
Developing Infrastructure Code for CI & CDDeveloping Infrastructure Code for CI & CD
Developing Infrastructure Code for CI & CDRavikanth Chaganti
 
PowerShell DSC Partial Configurations and Cross-node Synchronization
PowerShell DSC Partial Configurations and Cross-node SynchronizationPowerShell DSC Partial Configurations and Cross-node Synchronization
PowerShell DSC Partial Configurations and Cross-node SynchronizationRavikanth Chaganti
 
Operations Validation for Infrastructure As Code - PSConfEU 2016
Operations Validation for Infrastructure As Code - PSConfEU 2016Operations Validation for Infrastructure As Code - PSConfEU 2016
Operations Validation for Infrastructure As Code - PSConfEU 2016Ravikanth Chaganti
 
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 2015Ravikanth Chaganti
 
Cloud Computing for IT professionals
Cloud Computing for IT professionalsCloud Computing for IT professionals
Cloud Computing for IT professionalsRavikanth Chaganti
 
Introduction to Microsoft Azure Compute
Introduction to Microsoft Azure ComputeIntroduction to Microsoft Azure Compute
Introduction to Microsoft Azure ComputeRavikanth Chaganti
 
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 ConfigurationRavikanth Chaganti
 
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 ReplicaRavikanth Chaganti
 
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-VRavikanth Chaganti
 
Configuration management comes to Windows
Configuration management comes to WindowsConfiguration management comes to Windows
Configuration management comes to WindowsRavikanth 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 indiaRavikanth Chaganti
 
Power shell saturday ravikanth
Power shell saturday  ravikanthPower shell saturday  ravikanth
Power shell saturday ravikanthRavikanth Chaganti
 

Mais 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
 
Using PowerShell DSC with AWS Cloud and CloudFormation
Using PowerShell DSC with AWS Cloud and CloudFormationUsing PowerShell DSC with AWS Cloud and CloudFormation
Using PowerShell DSC with AWS Cloud and CloudFormation
 
Developing Infrastructure Code for CI & CD
Developing Infrastructure Code for CI & CDDeveloping Infrastructure Code for CI & CD
Developing Infrastructure Code for CI & CD
 
PowerShell DSC Partial Configurations and Cross-node Synchronization
PowerShell DSC Partial Configurations and Cross-node SynchronizationPowerShell DSC Partial Configurations and Cross-node Synchronization
PowerShell DSC Partial Configurations and Cross-node Synchronization
 
Operations Validation for Infrastructure As Code - PSConfEU 2016
Operations Validation for Infrastructure As Code - PSConfEU 2016Operations Validation for Infrastructure As Code - PSConfEU 2016
Operations Validation for Infrastructure As Code - PSConfEU 2016
 
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
 
Power shell saturday ravikanth
Power shell saturday  ravikanthPower shell saturday  ravikanth
Power shell saturday ravikanth
 
PowerShell 3.0 workflows
PowerShell 3.0 workflowsPowerShell 3.0 workflows
PowerShell 3.0 workflows
 

Último

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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 CVKhem
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
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...apidays
 

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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...
 

PowerShell in the enterprise - TechED India 2011

  • 1. PowerShell in the Enterprise Best Practices for adopting PowerShell as the automation platform
  • 2. About Me Work at Dell Inc. A Windows PowerShell MVP Author of: eGuide: A layman’s guide to PowerShell 2.0 remoting eGuide: WMI Query Language via PowerShell SharePoint 2010 PowerShell cheat sheet (for Quest) Automation is my passion
  • 3. Agenda Introduction Challenges Deploying & Securing PowerShell Developing & Validating Scripts Tools for the job Q & A
  • 5. Introduction Windows PowerShell? Microsoft Common Engineering Criteria* ..not just Microsoft anymore * http://www.microsoft.com/cec/en/us/cec-overview.aspx#man-windows
  • 6. Challenges Properly manage PowerShell Secure the IT environment Make automation effective
  • 7. Deploying PowerShell Available on Windows Server 2008 R2 and Windows 7, by default Available as an update (KB968929) for down level operating systems. Windows Update Standalone install
  • 8. Securing PowerShell What is script execution policy? Types of Execution Policy Restricted AllSigned RemoteSigned Unrestricted ByPass Signing scripts
  • 9. DEMO Securing PowerShell Execution policy and signing scripts
  • 10. Developing Scripts Start with the shell Think Objects, not text Implement scripting standards Look for code optimizations Include script documentation Include debug or verbose information
  • 11. DEMO Developing Scripts Object based shell and scripting standards
  • 12. Developing Scripts Don’t re-invent the wheel PoshCode.Org Powershellcommunity.org #PowerShell Technet Scripts CenterForums
  • 13. Validating Scripts Validate in a non-production environment Script functionality Desired output
  • 14. Tools for the job Several script editors Windows PowerShell ISE PowerGUI Script Editor Idera PowerShellPlus DevFarm PowerSE Visual Studio for developing PowerShell Scripts PowerGUI VSX Develop Forms & WPF GUI
  • 15. DEMO Tools for the job Script editors and Visual Studio
  • 16. Summary Windows PowerShell is the futureof datacenter automation Best practices and recommendations make your environment effectiveand secure PowerShell community is growingand eager to help you
  • 17. Thank You Email: Ravikanth@Ravichaganti.com Blog: http://www.ravichaganti.com/blog Twitter: http://www.twitter.com/ravikanth
  • 18. © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Notas do Editor

  1. In this session, we will look at what is PowerShell (very briefly) and then move onto why PowerShell is an important skillset for any IT Professional out there. We shall then look at the challenges in adopting PowerShell as the automation platform and see some of the best practices and recommendations to overcome those challenges. Finally, we shall look at some of the tools for the job and how each tool solves a specific problem.Stop me any time you have a question. But, remember, this is not a PowerShell fundamentals session. So, if you have any of those questions, I prefer taking them offline. With that note, let us get started.
  2. I am giving away 2 PowerGUI Pro Licenses. Thanks to Quest software for that.Also, a Windows PowerShell 2.0 best practices book by Ed Wilson, the Scripting Guy.
  3. How many of you are system administrators?How many of you know what is PowerShell?How many of you know have “really” used PowerShell in your day to day work?PowerShell is the command-line shell and the scripting language from Microsoft. It was released in 2007 along with Windows Vista and Longhorn. PowerShell is currently in version 2. Microsoft is really putting lot of effort in making PowerShell as “THE” management interface for various MS products. In fact, MS has a Common Engineering Criteria program which is about a set of engineering requirements every MS product should comply with. If you look up the web site and go to manageability section, you would find that “Windows PowerShell is the Microsoft standard for automation”. And, then, you can also a find a list of all MS products that comply or don’t comply with this. Go to Score Cards on the same page, click by technical area, and select Windows PowerShell Scripting and click on product compliance. The ones in green are having full compatibility and support for Windows PowerShell Scripting.Now, we understand that MS is really putting lot of effort in pushing windows PowerShell as the automation platform. Now, that said, Microsoft isn’t alone. There are several other companies and partners building PowerShell support into their products, building Products for PowerShell itself, and making the whole IT automation even more easier. Question: Do you know any other companies with PowerShell support in their products?There are several hardware vendors adopting PowerShell as their management interface. For example, Dell has PowerShell cmdlets to manage their EqualLogic and Compellent storageNetApp released Data ONTAP PowerShell tool kit for managing their storageIntel has vPro cmdlets to manage system hardware and also, HP for their blade system management. These are just a few examples. We also have VMWare, RedHat, and others building PowerShell support into their products for management.So, as an IT pro, PowerShell is a necessary skill set going forward. If you have not started using PowerShell yet, this is the right time. I am sure having PowerShell in your CV adds tremendous value. Now, with all these companies along with MS pushing PowerShell so much, the IT administrators in the data center face a few challenges.
  4. Properly Manage PowerShellHow do you manage PowerShell in the data center. It is a product. Although, it is enabled by default Server 2008 R2 and Windows 7, not all data centers would have come to the recent OS yet. So, how do you deploy and update PowerShell?If you are going to deploy Windows PowerShell across your enterprise, you should review the best practices described below. These are especially recommended if several administrators will be using PowerShell scripts to manage production assets. Adhering to the best practices will ensure you get the most from your PowerShell investment in a secure and efficient manner.Securing PowerShellWhenever we think about scripts, the first thing that comes to my mind is security. What if the scripting platform itself is compromised? What if someone runs a rouge script?Tell you a story here: I was a system administrator at the beginning of my career. I managed a few hundred desktops and a few Windows & Unix servers. Early 2001 was when I started my career. So, I was actually managing Windows 95/98 and Windows 2000 desktops. If any of you are as old as I am, you may remember Anna Kournikova & LoveBugviruses. These were VBScripts spreading through email. So, when a user double-clicked on the attachment, scripting engine used to run the file and it sent emails to all people in the address book. This was possible because there were no restrictions on who can run those scripts in general and how. That was a major challenge. Although, we could filter the scripts at exchange, there was always a set of people who were blindly clicking the attachments they received through their personal emails, etc. The other workaround which we used was to change the default handler for .vbs files. We used Group Policy to change that to .txt file and whenever someone double-clicked on the .vbs file, it opened up in Notepad. But, that is not real protection. Ideally, the real restriction should have been at the scripting engine level. This is what PowerShell provides and we shall see how to use that.Of course, another challenge would be: How do we make automation effective?This is another big challenge. Automation isn’t just about writing scripts. It is also about how well those scripts were written, how easy those scripts are for someone to read and understand, and what tools do you use to develop these scripts, etc. You may use notepad for writing scripts but Is that the right thing to do? And, you may have someone in your org who just downloaded or written a cool script for doing some task against your production servers. Now, do you know if that script is optimized for speed, written with all coding standards in place, etc? We shall see some scripting standards and tools for the job towards the end of this session.
  5. So, I said PowerShell engine itself supports restricting script execution. This is achieved using called script execution policies. These policies are the conditions under which PowerShell runs scripts. By default, PowerShell does not run any scripts. It allows only command execution. So, when you, as an administrator, not changed any default PowerShell settings, your end users, or any programs won’t be able to execute any scripts. Of course, one thing to remember is: an execution policy does not prevent user from running each command within a script. These execution policy settings are stored in the registry. (HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PowerShell\\1\\ShellIds\\Microsoft.PowerShell)You can use Get-ExecutionPolicy cmdlet to see the current execution policy setting and use Set-ExecutionPolicy to change it.<Demo> There are 5 types of execution policies. <Demo> Get and Set Execution Policies.Users can change the execution policy using Set-ExecutionPolicy cmdlet. However, this requires administrative privileges. This essentially means that you have to be at the elevated command prompt. This is another layer of security. You cannot change script execution policy unless you have the admin privileges.<Demo> Script SigningI will briefly touch upon script signing here and show an actual demo to you. A few execution policies such as AllSigned and remoteSigned require that the PowerShell scripts you want to run be digitally signed.Any script that will be executed in a production environment, especially on mission-critical servers, shouldbe signed with a code signing certificate trusted by your domain. You can certainly acquire a code signingcertificate from a third-party vendor, but it doesn‘t take much to set up the free Certificate Services fromMicrosoft and issue your own. Since the certificates are essentially issued by your domain, they areautomatically trusted by all member servers and desktops.A digitally signed script is critical because it ensures that the script has not been modified since it was lastsigned. You can use the Get-AuthenticodeSignaturecmdlet to verify signature integrity.<You can also use Group Policy to Set Execution Policy>#Can be set via Group Policy#Precedence is as follows:#Group Policy: Computer Configuration#Group Policy: User Configuration#Execution Policy: Process (or PowerShell.exe -ExecutionPolicy)#Execution Policy: CurrentUser#Execution Policy: LocalMachine
  6. Always start with the Shell. It is not always a good idea to begin trying to write a few hundred lines of PowerShell script. Instead, start with the shell. Anything you can run at the shell can be into a script. First, verify how the command runs in the shell. Once you have the expression or command working, you can put it into a script. Also, to start with, avoid writing complex expressions. Start with a simple expression and build on it as you see it working. If you write complex expressions and it results in an error, it becomes quite tough to debug.PowerShell is an object based shell. Which means you pass around objects when dealing with PowerShell commands and scripts. This is a change in mindset from the usual Shell experience where everything is TEXT. When scripting in PowerShell, It is always a good idea to receive and return Objects. This way you can use the built-in cmdlets to manipulate the objects and work with them.<DEMO> Object based shellCoding StandardsCode OptimizationsWhen writing scripts, you should always look for code optimizations. While it is important to achieve the goal of automation, it is also very important to optimize the code for speed of execution and resource utilization. For example, you write a script that works on, let us say a few 100 servers, but takes ages to complete and eats up all the memory you have on the management station, there is no use. These kind of long running scripts have to be always optimized. And, there are several ways to achieve this. You can look at how you can create faster looping constructs and how you can limit the number of properties you retrieve, etc. Let us a couple of demos to understand this.<DEMO Coding standards>
  7. PowerShell has been around for a few years now and the PowerShell community is very strong. There are many experts who respond to questions on twitter, facebook, Stackoverflow and several other forums every day. And, this is not just about PowerShell MVPs. There are also other MVPs and PowerShell experts who are eager to help you. In fact, last morning I wanted to write something to automate my 2+TB SQL TB restore. I have 11 such databases to restore for testing purpose on a regular basis. I know someone must have already solved such a problem. So, I pinged a friend of mine who happens to be a SQL MVP and he pointed me to a PowerShell script that uses SMO and PowerShell for database restores. See, I solved 50% of my problem just asking a question. Now, all I had to do was wrap it up in another simple PowerShell Script to do the DB restores in background and wait for all the restores to complete. Simple!This simply means, you may have a great idea for a script but someone might have already thought about it. There is poshcode.org and technet script center for code sharing. These sites a few thousand community submissions. While you may or may not find the exact script you are looking for but these sites can be a very good starting point.
  8. It should go without saying: any PowerShell script or function—whether developed internally or downloaded from a source like PoshCode.org—must be tested thoroughly in a non-production environment.Be sure to test not only how the script runs successfully, but also how it fails. What happens when you pass it invalid parameters or if a required resource is unavailable? What can you do to make the script or function fail? It is critical that you understand how the script handles problems. This is especially true of internally developed scripts. You should be able to take this information and revise your script to make itas robust as possible.You should have peer code reviews, unit testing, pilot testing, as well as management sign-off and approval. Administrative scripting does not have to be ad hoc or throwaway; in fact, it‘s just the opposite, scripting should be closely managed. PowerShell can bring a server or network down with only a few lines of code, assuming proper permissions. You should not have PowerShell scripts running in your environment that you don‘t understand, trust and approve.