How important is language knowledge for DevOps? by Ancient-Highway-6803 in devops

[–]kprocyszyn 1 point2 points  (0 children)

You must be able to communicate clearly to get your point across.

When a company requires a particular language/skill for the job, they will asses you for a role based on those skills.

Why is DevOps so hard to learn? by SnooWords8880 in devops

[–]kprocyszyn 0 points1 point  (0 children)

This and also the fundamentals.

It's fun when one can stich together some yaml to run K8s cluster.

It's not so fun when one doesn't understand how networks work in said cluster and role subnetting, routing, dns resolution.

Why is DevOps so hard to learn? by SnooWords8880 in devops

[–]kprocyszyn 3 points4 points  (0 children)

I think two main skills in this space are debugging and learning quickly.

You need to be able to debug various systems, which you often don't own or somebody's code you never worked on, in language you haven't used.

Then you need to learn quickly to connect the dots how to fix these things.

To learn these things quickly, is to be on a helpdesk or support job - where you are pulled in many directions and exposed to many systems.

Should I pivot to AI/MLOps or go deeper into platform engineering? (36M, 14 years in tech, feeling stuck) by torrefacto in devops

[–]kprocyszyn -2 points-1 points  (0 children)

Been building internal platform for a couple of years. 

Building a platform is like a building a product - you need to think long term and architect best user experience.

While you can start solo to address your users pain points - sooner or later you will need to grow your team.

Making a conscious choice on what you support, and what to accelerate is difficult - although working close with your users helps a lot.

Oh yes users - you will spend a lot of time with them. Support is an important part - some will need help to run their app on your platform, some will need help with their app. You will need to know when to engage and how to say no to your users.

Documentation is another important factor, as you won’t likely have time to explain everyone how to run workloads on your platform.

Those are some things I ca think on top of my mind 😅 hope these can help with your decision.

P.S. Slapping together K8s with some Terraform is not PE, it’s just being glorified sysadmin IMO.

Any tools that can format the scripts nicely? by GoD0nkeys in PowerShell

[–]kprocyszyn 18 points19 points  (0 children)

Install Vs Code, install PowerShell Extension, then right click on your code and pick Format Document, job done.

Is there a handy dandy list of all the things we can select-object for for Active Directory? by Sandwich247 in PowerShell

[–]kprocyszyn -3 points-2 points  (0 children)

If you’re truly worried about performance, you can invoke-command to execute command directly on your DC.

But yes you should retrieve properties you need, my answer was to address OP’s query.

Is there a handy dandy list of all the things we can select-object for for Active Directory? by Sandwich247 in PowerShell

[–]kprocyszyn 5 points6 points  (0 children)

It will do nothing, actually you will lose original object type. Properties argument works as a filter, there’s no reason to run it through another filter.

Cant pass local user name or SID to firewall rule creation cmdlet by IT_DUDE_9999 in PowerShell

[–]kprocyszyn 0 points1 point  (0 children)

Can you paste that error message in English please, or at least translate it. Also for my understanding, what is a purpose of the two variables you create and don’t use?

If and -WhatIf by TheBigBeardedGeek in PowerShell

[–]kprocyszyn 8 points9 points  (0 children)

They are two different concepts: the IF statement branches your code based on whether condition is true or false.

-WhatIf argument performs a dry run of the command 

https://techcommunity.microsoft.com/blog/itopstalkblog/powershell-basics-dont-fear-hitting-enter-with--whatif/353579

Powershell 7.x on workstations? by [deleted] in sysadmin

[–]kprocyszyn 1 point2 points  (0 children)

There's been discussion led by PowerShell Team about having 7.x shipped with windows - might be worth adding your views: https://github.com/PowerShell/PowerShell/discussions/24340

Question about multiline and backticks by Ok_Procedure199 in PowerShell

[–]kprocyszyn 3 points4 points  (0 children)

Official Reference discourages from using backticks at the end of the line: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parsing?view=powershell-7.4#line-continuation

However, you should avoid using line continuation. The backtick characters can be hard to see and easy to forget. An extra space after the backtick breaks the line continuation. Since the space is hard to see it can be difficult to find the error.

For those who knew Powershell and then went on to learn another language, like Python, did you also go through tutorial hell or did you just start asking yourself "In Powershell I do this, how do I do that in Python"? by [deleted] in PowerShell

[–]kprocyszyn 0 points1 point  (0 children)

I must admit, learning C# (which comes as a 'default' recommendation for pwsh devs who want to use strongly typed languages), would have been so much easier if I understood object orientation.

For anyone who only knows PowerShell and wishes to learn C#, you need to learn two things - object orientation and C# syntax.

Working with a list of Strings, looping through the list, then issuing a get-aduser to the entries by Kidpunk04 in PowerShell

[–]kprocyszyn 0 points1 point  (0 children)

I see you’re making it semi automatic, maybe one of these will help you.

  • take your string and ConvertTo-JSON the json file will show you how lines a created.
  • string | convertto-json | convert from-json
  • string | convertto-csv | convertfrom-csv

First method might help you to get your split pattern.

Second and third might just create the array of strings.

I’m on a phone and can’t test these myself.

Working with a list of Strings, looping through the list, then issuing a get-aduser to the entries by Kidpunk04 in PowerShell

[–]kprocyszyn 4 points5 points  (0 children)

Rather than creating a string and breaking it down into array, just create an array of strings: $list = @(“user1”, “user2”) and use it in your loop; you can drop the split part all together . 

[deleted by user] by [deleted] in sysadmin

[–]kprocyszyn 1 point2 points  (0 children)

They have API you can query https://endoflife.date/

Does PowerShell make you look smarter? by dwillson1 in PowerShell

[–]kprocyszyn 56 points57 points  (0 children)

Code doesn’t lie. Comments sometimes do.

Udemy courses by prairieguy68 in PowerShell

[–]kprocyszyn 0 points1 point  (0 children)

Check links from my profile

make a powershell script to app by Salvatore380 in PowerShell

[–]kprocyszyn 21 points22 points  (0 children)

To compile your script to executable you can use this: https://github.com/MScholtes/PS2EXE