PowerShell 7 Tutorials for Beginners #2 : Variables

preview_player
Показать описание
In this video I will go over different variables in PowerShell 7.2 and how they work, how to declare a variable, get its type and how to cast a type to variable. I will also show how to set PowerShell to a strictmode

Tags:
PowerShell, jackedprogrammer, powershell 7, how to install powershell 7, powershell 7 on vs code, visual studio code
Рекомендации по теме
Комментарии
Автор

JackedProgrammer, Thanks for making something seemingly difficult easy. I've been waiting for a series like yours. No yelling, no drama, just to the point and on topic. Thanks again!

dogbyte
Автор

Videos like this stand the test of time. Thank you!

c-LAW
Автор

i'm starting my powershell journey with this playlist, I need to learn powershell for my Job, thanks a lot

phanphan
Автор

@5:48 - the shortcut key combo "Ctrl " and "L" will do a better job than cls or clear, no need to type anything. just hit Ctrl and L at the same time. Works in Linux too.

logicprohacks
Автор

An excellent explanation of how variables work, in clear English. Thank you so much!

canyont
Автор

I like it that is slow, because I am a total beginner and your videos are clear and easy to understand. thank you

Inna.-fh
Автор

A bit slow and tedious, but good info. One thing, though; I noticed you always highlight the entire code by hand and then click on Run Section icon. Anyone watch, don't forget that you can click on the Play icon (just to left of Run Section icon, or press >F5< to run the entire code (it that's what you want to do). I'm a keyboard shortcut person - faster than dealing with a separate device. I did like that this GUI allows you to run an individual line, or group of lines, without having to wade through the entire list of previous commands.

Your comment toward the end about double being larger, but not a big deal made me feel really old :) I remember (back in the day around, 1712 .. maybe 1579?), where data type could be critical for some larger programs because RAM was so limited - counting the bits for variables and line of code could make or break a project. Not something I miss :)

Oops-IMeantToDoThat
Автор

Thanks for providing fundamental things for newbie like me to discover basic about powershell

ahmad_afif
Автор

do you have any exercises that we can work on?

Inna.-fh
Автор

Thanks a lot, this is a really great tutorial!

olgadurham
Автор

very nice video for beginner, i'm one of the biginner thanks for making this tutorials and thank you.

pierre-richardbeaubrun
Автор

Thanks for the great vid! very easy to digest.

easymindinner
Автор

I`m trying to learn PowerShell, Thanks a lot

ВикторЛарионов-йк
Автор

Hi Mr JackedProgrammer, I could not get the set- strict thing to work . I don't know why. it works till I add the "Lastest" part to it. Any ideas? but thanks for your classes . helping a lot !

naomitheron
Автор

can someone give solution for this

write a script in PowerShell that reads a configuration from a JSON file and, based
on this configuration, locates selected files. The script accepts one parameter $configfilePath – a
parameter of type string that specifies the path to a configuration file.
Here is an example configuration file:
{
"DirectoryPath": "PATH_TO_DIRECTORY",
"FilesToLocate”: [ "FILE_NAME_1", "FILE_NAME_2"]
}
In the script you should read the configuration and then output the number of files specified by
the FilesToLocate attribute from the given directory specified by the DirectoryPath attribute.
Additional requirements:
You should also meet the following requirements:
• If the path specified by $configPath does not exist, the script should return 1.
• If the DirectoryPath attribute is missing, the script should return 2.
• If the path specified by the DirectoryPath attribute does not exist, or if it is a file, the script
should return 3.
• If the FilesToLocate attribute is missing, the script should return 4.
• If any file provided by the FilesToLocate attribute does not exist, the script should ignore it
and continue processing.
• In the end the script should return the number of files found

ArvindKumar-clbr
Автор

When running code on line 3, I get a Visual Studio Code prompt: "connect choices are either " Open 'launch .json' or 'Cancel'"

larrygonzales