Using Powershell to Uninstall Applications

Automating to uninstall software from a Windows machine can sometimes be a cumbersome task, especially to uninstall applications based on the versions installed. In such cases, PowerShell can come to the rescue by leveraging the Windows Registry to find and uninstall the application in question. Today, I’ll share a script that will uninstall almost any type of application, which can be used along with SCCM or MDM solutions as well.

Continue reading “Using Powershell to Uninstall Applications”

Powershell for Object-based Selection Prompt

One of its most powerful features of PowerShell is its ability to work with objects, allowing you to manipulate data in a structured and intuitive way.

Today, we’ll explore how to make an object-based user selection menu in PowerShell. Using Out-GridView is an easiest option for this purpose. Also, I make a custom function for the object-based user selection.

Continue reading “Powershell for Object-based Selection Prompt”

Powershell for Bulk Character Conversion

Are you dealing with text data that you need to convert different characters or words or symbols in bulk? In this blog post, I’ll introduce a powershell script that streamlines the conversion process, making it easy to work with text data across different languages and character sets.

Continue reading “Powershell for Bulk Character Conversion”

Resolving winget not recognized error when running with the System Account

Although winget exists on your system, but when you try to run the winget with system account (or using the scheduled task with the system account) and you see this error.

winget : The term ‘winget’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Continue reading “Resolving winget not recognized error when running with the System Account”

Set Any Attribute of AD users by using PowerShell Script

Updated Post: Now, instead of the SamAccountName you need to use Identity in the csv header to identify users (which is the existing SamAccountName of users).

Eg: if you want to modify the user who has the SamAccountName user01 to user001, then you need to put user01 under the Identity column and user001 under SamAccountName column in the csv file.

Continue reading “Set Any Attribute of AD users by using PowerShell Script”

Creating Active Directory Users in the Nested OUs

It is the powershell script that will automatically create AD users. What makes it unique is that all the necessary OUs (even nested OUs) are created in advance before users creation. So, you won’t need a separate script for both tasks. Here, I give the screenshot of my testing domain, with example users defined in my csv file.

Continue reading “Creating Active Directory Users in the Nested OUs”

Powershell Debugging Made Easy


There are times when you spot an error yet can’t find where it is located or the lines when it occurred, only then you’ve to go for line-by-line debugging. Powershell has built-in debugging tools for this. Generally, there are 2 methods for debugging. and you can use anything based on your preference.

Continue reading “Powershell Debugging Made Easy”