Category: PowerShell
-
Top 10 PowerShell Online Resources
When I was starting my journey with PowerShell I was hungry… hungry for knowledge. While learning the shell, I wanted to be inspired and know all the news. Attending a local London PowerShell meet-up kept me inspired – watching advanced users and what they were doing with PowerShell on the job was mind-blowing. To keep…
-
Speaking at PsDayUk 2023
When I attended my first PowerShell meetup back in 2017, I had no idea it would lead me to where I am today. Fast forward to 3rd of March 2023, I was privileged to speak and share my knowledge with other #PowerShell enthusiasts at #PsDayUk conference. I presented the PowerShell based web server and web…
-
PowerShell Error Handling – One error at the time please
Code fails – whether because of reasons out of our control, or because we didn’t consider the situation it might fail. So what should you do in case your script throws a PowerShell Error? Reason for PowerShell Error Expired credentials, timeout connections, lack of permissions and genuine software bugs – each of these are potential…
-
PowerShell WebApp using Pode
Writing a WebApp using PowerShell only. Crazy? Maybe. Possible? Absolutely. PowerShell WebApp Web Applications are popular, and require either knowing some front-end technologies or using some other solutions like no-code. What about PowerShell, can you build a web app using only PowerShell language? Yes, you can write a WebApp in PowerShell, and I will show…
-
Building PowerShell module on Azure DevOps pipeline – step by step guide
The World talks constantly about DevOps, CI/CI pipelines, automation – which great, but where to actually start? Especially when you’ve been writing PowerShell which is often used as automation language, but not actually as programming language? In this video I’ll show you how to create a build pipeline for PowerShell module, from scratch. We will…
-
Building PowerShell Module – how to organise your source files and build with ease
Organising all files, scripts and functions required to build a module might give one a headache. PowerShell doesn’t come with native way of building the module, which doesn’t make our job easier. Hence, we’re going to use ModuleBuilder from PowerShell community so that the way we organise the code is predictable and used widely across…
-
PowerShell Module and Manifest- create and configure your tools
The more PowerShell code you write results in more and more scripts. Often you have multiple scripts managing one domain or application. What in situation when scripts start to use other scripts to work, creating so called dependency? PowerShell module is the answer – it’s the native way of bundling in multiple functions together as…
-
PowerShell Parameter Attributes – validate, group, require params and add pipeline to your function
Having properly configured parameters help your users to understand the use of your function. It also helps fellow developers to appreciate the intended use of the function. In addition, it gives you more control of how the code flows through your script. Parameter attributes is what takes parameters to the next level – you can…
-
PowerShell function – converting script into function with parameters
So you’ve been writing your scripts for some time and wondering how to make them more PowerShell-like, so that they can be invoked from the console like all the other cmdlets? In this quick video I’ll show you how to convert a sample script into function, add parameters and indicated to your user how to…
-
PowerShell PSCustomObject – Custom Object, the way it was meant to be
Everything is an object in PowerShell, and ability to create own object allows for one more way of controlling and handling data. In this video I’ll take you through the steps of creating PSCustomObject, working with its properties to doing more advanced topics – like adding methods and types to the object.