Windows PowerShell Tutorial for Beginners


Download 1.73 Mb.
Pdf ko'rish
bet2/23
Sana30.04.2023
Hajmi1.73 Mb.
#1411530
1   2   3   4   5   6   7   8   9   ...   23
Bog'liq
Windows PowerShell Tutorial for Beginners

Introduction
Automate it. Now, where’s that script…
Warning: PowerShell is addictive.
Windows PowerShell is an object-oriented automation engine and scripting language with an interactive 
command-line shell designed to help IT professionals configure systems and automate administrative tasks. 
You can find it in every modern Windows OS starting with Windows 2008R2. 
Learning Windows PowerShell is like learning to use a universal multi-tool. In this eBook, we’ll walk you 
through PowerShell scripting basics, show you PowerShell commands and scripts for performing the most 
common administrative tasks, and explain how you can schedule your PowerShell scripts and commands.
So, let’s start learning PowerShell!


1. PowerShell Scripting Basics
5
In this part, we’ll cover PowerShell scripting basics so you can more easily perform virtually any 
administration task in your Windows IT environment.
PowerShell offers both a command-line option and an integrated scripting environment (ISE):
1.1 Launching the PowerShell
To launch the PowerShell command line, type powershell.exe in the Windows Start menu. You’ll see a 
screen like the following:
To launch the PowerShell ISE, type powershell_ise.exe in the Start menu. Using the PowerShell ISE is the 
preferred way to work with the scripting language because it provides syntax highlighting, auto-filling of 
commands and other automation features that simplify script development and testing.


6
1.2 Preparing to Run PowerShell Scripts
PowerShell scripts are stored in.ps1 files. You cannot run a script by simply double-clicking a file; this design 
helps avoid accidental harm to your systems. Instead, to execute a script, right-click it and choose Run with 

Download 1.73 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   23




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling