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 […]
Starting with Windows Server 2012, you can now handle directly the IP configuration with PowerShell cmdlets. Unfortunately, there is no cmdlet which directly updates an already existing IP address. You have to use four of them. Please be aware that you will disconnect yourself from the computer if you do this operation remotely. This won’t […]