Just a quick post on how to remove VMs from the VMware inventory and add them again with the same configuration settings from the command line with PowerCli.
Sometimes cmdlets are asking for plain-text passwords instead of Secure Strings. And the New-SmbMapping cmdlet (developed by Microsoft! Huh!) is one of them…
Displaying firewall rules with PowerShell is very easy with the Get-NetFirewallRule cmdlet.
However, there is a gap: port numbers are not displayed.
On this one, I will not go very deep with the explanation because it implies many PowerShell knowledge.
However, I will explain the main principle and give a sample of code to make your work easier if you understand it.
Most of the time, you will just have to adapt it to match your needs.
Sometimes you discover that there are many duplicates in your Path environment variable. This happens because most of the software you install just add new paths without formerly checking if they already exist. How to do it with Powershell First, we want to get the current content of the Path environment variable. Now we want […]