Good Contents Are Everywhere, But Here, We Deliver The Best of The Best.Please Hold on!
Data is Loading...
Your address will show here +12 34 56 78
Azure, Cloud, PowerShell
If you need a script which outputs you the overall VMCore amount per region, there you go.
This is a snippet from a RunBook which iterates also through each subscription before, so you would get all amount of used cores per subscription as well as per region.

I took the advantage of using Get-AzureRmVMUsage.
So you can use this two-liner

 

 

or a tiny script like this which gives you the result per region

 



which gives you this

0

Hotfix, Patching, PowerShell, Server, Windows
I just wanted to share you a tiny snippet if you’re looking for a simple PowerShell liner to simply get a KB Hotfix installed. It also verifies if the KB is installed already.
Okay this is a small one for you guys but trust me I will wrap it for you into a big function if you want to use it with more than one server or even Credentials.

 

0

PowerShell, Server, Windows
Have you ever wondered if there’s an opportunity to easily create a GUI out of every PowerShell Cmdlet?
In many cases this can be very useful for example if your Cmdlet hs too many parameters to list or just to see what’s it offering on Common parameters as well.

Just use the Show-Command cmdlet with any PowerShell cmdlet to bring up a GUI interface.
Let’s try this with the Get-Service Cmdlet and see what’s happening!



You will have three options for executing your command: Run, Copy (for the clipboard), or Cancel.

0

Network, PowerShell, Server, Windows
Respective Microsoft’s Technet article regarding Resolve-DnsName I have created you a function with the ability to run it against more than only one computer. Resolve-DnsNames performs a DNS name query resolution for the specified name.

 

0

PowerShell, Server, Windows
Okay at the end it’s a simple $PSVersion wrapped in an Invoke-Command but hey these simple things are needful in case you need to run it against of 100s of servers and not just locally. With the help of Invoke-Command via WinRM and $PSVersionTable.psversion wrapped in a foreach you can retrieve PowerShell version of your remote computers indifferent if you need to use credentials to run it against a different domain than you currently reside. Just use the below function Get-PSVersions, simple but good.


While processing your list of computers a nice Write-Progress will give you some details about the status:


Once finished your output will look like this:

0