How do I customize my Powershell console + Opacity function

Host automatic variable Prompt Function Set-ConsoleOpacity Function Hi! This article is something that I have decided to share with you that I would say that is something "personal". This is not about automating something, I don't intend to explain the scripts too much, this is just to share with you how do I play with … Continue reading How do I customize my Powershell console + Opacity function

Using confirm verification with user input

Using regular expression (regex) Combine it with a DO loop Once you start making Powershell scripts, it doesn't take long to realize that you'll want to confirm some actions taken by your script before the action is taken. Today I'm going to show you two approaches for it. Using regular expression (regex)¬† Regular expression or … Continue reading Using confirm verification with user input

How to get information from HKEY_CURRENT_USER registry HIVE remotely

Understanding the problem The solution The script Conclusion Having access to the registry information from a remote computer is a crucial step that every system administrator have to face in his career, the registry store not only information but also actually configurations in the system and it's installed applications. So since I use to expend … Continue reading How to get information from HKEY_CURRENT_USER registry HIVE remotely

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