Automate Azure VM deployment

Splatting parameters First steps Parameters Confirm parameters Conditional parameters Creating and using objects Full script It's been a while that I don't bring something new to this blog, this is because I made a big change recently by moving from Brazil to Germany, I came to live here with my wife (which is Brazilian and … Continue reading Automate Azure VM deployment

Copy and enumerate copied files

Build function parameters Filter files Copy folder structure Copy and enumerate each file Full script Some weeks ago I saw a person asking for help in stackoverflow to build a script that would copy files and then enumerate each of them. Well, I've made a simple script for him but, some days after I had the … Continue reading Copy and enumerate copied files

Using secure passwords in your Powershell scripts

Generate a secure string Convert it to an encrypted string Create and set a PSCredential object System administrators often need to deal with credentials, an IT infrastructure is about security, that's one of the root reasons for any enterprise to have it implemented. Powershell has a great way to easily secure your passwords, then you … Continue reading Using secure passwords in your Powershell scripts

Monitor RAM usage remotely

Get RAM information Define usage percentage status Generate hashtable to output data Final touches Full Script See it in action There are several reasons why we may need to monitor the RAM usage, whether that's a server, an endpoint or a lab, the RAM is crucial for any machine to work properly for our needs. … Continue reading Monitor RAM usage remotely

How to create Popups with Powershell

Finding the ProgID Create an instance of a COM object Using Popup method Improve it with a script See it in action Bottom Line Component Object Model is a platform-independent, distributed, object-oriented system for creating binary software components that can interact, COM was replaced for .NET, despite this, it remains as a viable technology with important legacy … Continue reading How to create Popups with Powershell

How to block input with Powershell

Find C# function signature Code review Full script Powershell has many built-in cmdlets that allows us to automate our environment, but sometimes we need even more. For that, there's a powerful cmdlet which we've already used here in another article, called "Add-Type" which is capable of adding a .NET class into a powershell session, and … Continue reading How to block input with Powershell

Notes – APIs & .NET Architecture

Windows Native APIs .NET Classes Namespaces Assemblies Calling Windows Native APIs - Script Example Windows Native APIs: "Application Programming Interfaces" works for developers take advantage of built-in available operations to work with their software. This helps reduce the amount of code developers need to create, and also helps create more consistency across apps for the same … Continue reading Notes – APIs & .NET Architecture