I use NMAP frequently and there are many times that I wish to have its functions on different environments. In this case I was interested in finding how many IP were available for capacity on a local network, knowing that all devices on my network have ICMP enabled.
Continue reading “PowerShell : Find-AvailableIP”
How To Get Your External/Public IP With Powershell Core Using A RestAPI
How many times we need to gather simple informations manually? Wouldn’t be easier and simpler just to get it with a one-liner? Every user can get his your public ip opening a browser and typing “What is my ip?”, few users know how to get the same information in one line from the cli.
Continue reading “How To Get Your External/Public IP With Powershell Core Using A RestAPI”
PowerShell: Test-CurrentUserIsLocalAdmin
Is it very useful to run simple checks to validate the user environment, especially when checking if the context while user is working is aligned with out expectations or requirements. But is not always easy to get a simple information such as if the current user is a local admin or not.
It’s very easy to check it from the user interface, but I found that can be important to gather that information with powershell without running as an administrator.
PowerShell Security Policies (Types and Scopes)
I like to keep it simple, but I think that “secure-by-default” description of PowerShell is telling the story wrong, like saying that powershell is just a glorified command prompt or a modern replacement for VB Script. It not setting the right context and showing which goal we want to reach.
Continue reading “PowerShell Security Policies (Types and Scopes)”

