How to Use Variables in PowerShell
Автор: Settings Sorted
Загружено: 2026-11-29
Просмотров: 0
Описание:
Typing the same value again and again is how mistakes creep in. After this lesson you can store text, numbers and whole command results in PowerShell variables, reuse them, change them and delete them.
Chapters:
0:00 Intro
0:16 Open Windows Terminal
0:27 Type terminal
0:45 Terminal opens with a PowerShell tab
1:05 Create a variable
1:37 To read the value back
1:51 Variables inside text
2:09 Now the same sentence, but with single quotes
2:27 Store a number
2:42 Use it in a sum, like any number
2:57 Change a number
3:15 Check the new value
3:27 Check a variable's type
3:50 Now the same question for name
4:04 Text versus numbers
4:21 Now swap the two sides
4:49 Store a command's result
5:10 Read a property
5:26 Read another property, the year
5:40 Text has properties too
5:56 Some parts are actions, called methods
6:14 A misspelled variable
6:37 List your variables
7:08 Replace a text value
7:22 Run the greeting from before again
7:41 One more detail: type the name in capitals
8:04 Store a list of results
8:27 Count tells you how many items a list holds
8:47 Delete a variable
9:04 Prove it's gone by asking Get-Variable for it
9:27 You can now create variables, use them in text
Previous: PowerShell Basics for Beginners: Your First Commands • PowerShell Basics for Beginners: Your Firs...
Next: How to Use the PowerShell Pipeline • How to Use the PowerShell Pipeline
More PowerShell for Beginners Course videos: • PowerShell for Beginners Course
Subscribe to Settings Sorted for more short, clear how-tos.
#Windows11 #HowTo #Powershell
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: