What this course is
- This course enables you to automate deployments on Windows Servers
- Using From Powershell Terminal
What this course is not about is
- Windows Server Administration
- Windows Desktop Administration
- Understanding GUI
Powershell
- Powershell
- Terminal Which is shipped along with windows
- Powershell is made available to mac & Linux OS via Powershell Core
- Any shell will have commands, Powershell commands come in different flavors
- Cmdlets:
- Built-in commands provided by microsoft are cmdlets.
- Functions
- Commands written in powershell for reusability.
- Aliases
- External Scripts
- Cmdlets:
- Powershell Command Scheme
Verb-Noun
. Most commonly available verbs are Get, Set, Update, Remove etc… Some of the popular nouns Process, Services etc
Get-Command
- Cmdlets take parameters
- Lets Experiment today
Get-Command -Verb Get
Get-Command -Verb Get -Noun Process
Get-Command -Noun Process
- Lets Find Command lets to Start a Process (notepad)
Noun = Process
Lab Environment
- Windows 10 Laptop or VM
- Visual Studio Code (For Developing Powershell Scripts)
- One Cloud Account (Free Cloud Account)
Basic Powershell Concepts
- Variable:
-
variables are prefixed with $ symbol
-
Two types of variables
- User Defined Variables
- Automatic Variables:
- To view all the variables
Get-Variable
- To view all the variables
-
$null
-