Checking list of software from Command Line
Posted in Sems
on 08 December 2021
I needed to check software installs on multiple machines. One thing I found was to utilize WMI (Windows Management Instrumentation). The command is simple:
wmic product where "name like '%%Office%%'" get name
Above searches the installed programs list and returns anything with word Office in it. The output looks like:
Office 16 Click-to-Run Extensibility Component
Office 16 Click-to-Run Localization Component
Office 16 Click-to-Run Extensibility Component 64-bit Registration
Office 16 Click-to-Run Licensing Component
This helps me quickly to check and find if a particular software is installed. You can combine above with a psexec command and get it in one swoop. In my case, I used ScreenConnect’s command line to run it and checking the list.
Posted on 15 May 2023
This can be handled in multiple ways. However, I like the one liner using WMI:
WMIC USERACCOUNT WHERE Name='username' SET PasswordExpires=FALSE
Change username to the account you need to set and you are good to go.
Posted on 09 May 2023
There are times I needed to export my rules to a human readable form. This comes very handy. If you haven't installed the ExchangeOnline module, you can follow https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps
Open a Powershell window, then:
Get-InboxRule -Mailbox user1| ...
Posted on 03 May 2023
Sometimes, users will have issues with their print jobs. If this happens on a printer shared on a server, they will block rest of the users. A quick and simple fix is to stop the ...
Leave a Reply