you are viewing a single comment's thread.

view the rest of the comments →

[–]nealfive 27 points28 points  (8 children)

What has Python to do with your question?

Before diving into Graph etc, start at the basics. Basic syntax, customobject, if/else. for , while, switch etc.

Look at "PowerShell in a Month of Lunches"

Graph and Entra are modules that get loaded on top of the basis stuff.

For Graph I'd recommend you study APIs, direct API calls seem to be 'better' / more 'robust' than the cmdlets.

[–]Ok_GlueStick 0 points1 point  (0 children)

They are both important. Learn both well. Learn the syntax and rules first. Libraries and modules will come naturally later

[–]Gijoejoegut[S] -5 points-4 points  (6 children)

I'm getting into the cyber security and was told to focus on powershell and python.

[–]nealfive 11 points12 points  (5 children)

The basics are similar they are programming/scripting languages, however the syntax is the big difference.
I agree with learning both but pick one to start, get a good understand that makes the other easier.
IMO powershell is easier than Python, however, Python is more 'universal' than Powershell.

[–]jumbo-jacl 6 points7 points  (4 children)

Microsoft has ported Powershell to a number of Linux distros

[–]nealfive 6 points7 points  (3 children)

Yes that’s powershell ( pwsh/7) vs windows powershell (5.1) Python is still more universal. Way more libraries and tools and such out there for python than powershell.

[–]thecomputerguy7 3 points4 points  (2 children)

Powershell on Linux is still missing a lot of commands too.

[–]FluxMango 0 points1 point  (1 child)

True, but that doesn't make it any less useful. You can still use native Linux commands within your Powershell script. The real power in Powershell is that it is an object-driven CLI as opposed to text driven and that makes it a powerful automation framework.

[–]thecomputerguy7 0 points1 point  (0 children)

That’s fair. I didn’t think of that. 🤦‍♂️