Getting started with PowerShell
PowerShell is a powerful and very flexible language that is relatively easy to understand.
PowerShell allows you as a system administrator to create scripts that help you automate certain tasks in a simple and very practical way.
Table of contents
- Getting started with PowerShell
- Installation or configuration
- Allow scripts stored on your machine to run without signing
- Aliases and similar functions
- The Pipeline - Using the output of a PowerShell cmdlet
- Call .Net library methods
- Basic use of Import-Csv
- Import from CSV and convert properties to correct type
- Anonymize IP addresses (v4 and v6) in a text file with Powershell
- Application of script prerequisites
- Apply a minimal version of the powershell host
- Run the script as administrator
- Automation of infrastructure
- Simple script for testing black box integration of console applications
- curls
- PowerShell Classes
- Inherit from parent class to child class
- Naming Cmdlet
- How to download the latest artifact from Artifactory using the script
- Powershell script to download the latest artifact
- Communication with RESTful APIs
- TCP communication with PowerShell
- Behavior back in PowerShell
- How to work with functions returns
- Desired state configuration
- Importing psd1 (data file) into a local variable
- List of available DSC resources
- Naming conventions
- Using variables in a string
- Change statement with the Regex parameter
- Change statement with expressions
- Mail sending
- Simple sending message
- Send-MailMessage with predefined parameters
- SMTPClient - Mail with a .txt file in the body message
- Executables running
- Replace the text with a dynamic value by a MatchEvalutor
- Escape special characters
- Several connections
- Using Select-String
- Simple function without parameters
- Basic parameters
- Packet management
- Uninstall a module my name and version
- Update a module by name
- Secrets and credentials management
- GUI in Powershell
- Access a hash value by key.
- Introduction to Pester
- Simple parameter sets
- Parameterset to force the use of a parameter when another is selected.
- Parameter defined to limit the combination of parameters
- Error management
- Redirection operators
- Mix the types of operands: the type of the left operand determines the behavior.
- Use parameters and arguments
- Conditional logic
- Compress archives with a joker
- Update the existing ZIP with Compress-Archive
- Extract a zip with Expand-Archive
- Get all the features installed on a site collection
- Powershell modules
- Dynamic parameter "simple"
- PowerShell workstations
- PowerShell "Streams"; Debug, Verbose, Warning, Error, Output and Information
- Remote Serialization Warning
- Using arguments
- Good practice for automatically cleaning sessions PSSession
- View file size in KB - Calculated properties
- PowerShell Script Parser
- Changing the Execution Policy Using Set-ExecutionPolicy
- Bypassing the Execution Policy for a Single Script
- Other enforcement policies:
- Get the current execution policy
- Security and cryptography
- Amazon Web Services (AWS) Simple Storage Service (S3)
- Create a new S3 bucket
- Download a local file in an S3 bucket
| Size | 1944.957 Kb |
|---|---|
| File type | |
| Downloads | 220 |
| Created | 2019-04-27 |
Others PowerShell tutorials
Others related eBooks about Getting started with PowerShell
-
Think Perl 6: How to Think Like a Computer Scientist
Want to learn how to program and think like a computer scientist? This practical guide gets you started on your programming journey with the help of Perl 6, the younger sister of the popular Perl programming language. Ideal for beginners, this hands-on book includes over 100 exercises with multiple ...
-
Python for Everybody
Download free course Python for Everybody, pdf file on 247 pages by Dr. Charles Severance....
-
Classic Computer Science Problems in Python
This book deepens your knowledge of problem-solving techniques from the realm of computer science by challenging you with time-tested scenarios, exercises, and algorithms. As you work through examples in search, clustering, graphs, and more, you'll remember important things you've forgotten and disc...
-
Think Python
Download free course Think Python, pdf file on 244 pages by Allen Downey....
-
Artificial Neural Networks - Architectures and Applications
Artificial Neural Networks (ANN) may probably be the single most successful technology in the last two decades which has been widely used in a large variety of applications. The purpose of this book is to provide recent advances of architectures, methodologies, and applications of artificial neura...
-
Deep Learning and the Game of Go
The ancient strategy game of Go is an incredible case study for AI. In 2016, a deep learning-based system shocked the Go world by defeating a world champion. Shortly after that, the upgraded AlphaGo Zero crushed the original bot by using deep reinforcement learning to master the game. Now, you can l...
-
Data Structures and Algorithms
Download free course Data Structures and Algorithms, pdf file on 111 pages by Granville Barnett, Luca Del Tongo....
-
: Advanced R Solutions
This book offers solutions to the exercises from Hadley Wickham's book Advanced R (Edition 2). It is work in progress and under active development. The 2nd edition of Advanced R is in print now and we hope to provide most of the answers....
-
Programming for Computations - Python: A Gentle Introduction to Numerical Simulations with Python 3.6
This second edition of the well-received book has been extensively revised: All code is now written in Python version 3.6 (no longer version 2.7). In addition, the two first chapters of the previous edition have been extended and split up into five new chapters, thus expanding the introduction to pr...
-
Graph Theory - Advanced Algorithms and Applications
This book is prepared as a combination of the manuscripts submitted by respected mathematicians and scientists around the world. As an editor, The author truly enjoyed reading each manuscript. Not only will the methods and explanations help you to understand more about graph theory, but The author a...