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

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 APIs & .NET Architecture

Automation for removing users and computers from Active Directory

Create CSV file Import CSV file content Splash parameters with hashtables Build script. If you still manage users and computers in active directory manually, there are two options, maybe you manage a very small infrastructure, or, you must continue reading this! Automation not only saves a lot of time, but also avoids human error, be … Continue reading Automation for removing users and computers from Active Directory

Software Uninstall Automation [Part 3/3]

Add function information Build the process Full script See it in action Conclusion This is the last part of this article, be sure to see the part 1/3 and part 2/3 if you didn't yet! Add function information Powershell functions are blocks of code inside of a script for easy re-use, we can use them like we … Continue reading Software Uninstall Automation [Part 3/3]

Software Uninstall Automation [Part 2/3]

Get computer list values. Get WMI key values: Parameters. Get WMI key values: Switch parameters. Build classkey. In the part PART 1/3 we learned how to speed up a WMI query to quickly find and uninstall a specific software in our infrastructure, now we will build a script to run it in the infrastructure. I'll … Continue reading Software Uninstall Automation [Part 2/3]

Software Uninstall Automation [Part 1/3]

  Query software with Get-WmiObject. Query software with type accelerator [wmi]. Compare efficiency. Uninstalling software can be a simple task right? but when you have a bunch of machines that must have some software uninstalled, usually due to urgent causes like license expiration, bugs in the infrastructure and so on, this simple task could turns … Continue reading Software Uninstall Automation [Part 1/3]