Posts

Showing posts with the label Status Report

PowerShell and Azure Resource Graph

Image
Introduction On today’s post, I want to discuss a service introduced on the Microsoft Azure platform fairly recently, Azure Resource Graph . Azure Resource Graph service enables the administrators to explore resources in large scale deployment with relative ease across multiple subscriptions and management groups. Azure Resource Graph queries provide the following capabilities. Ability to query resources with complex filtering, grouping, and sorting by resource properties. Ability to iteratively explore resources based on governance requirements and convert the resulting expression into a policy definition. Ability to assess the impact of applying policies in a vast cloud environment. Ability to detail changes made to resource properties (preview). Azure Resource Graph service was announced during 2018’s Microsoft Ignite Conference. The service coupled with cross-platform PowerShell Az module enables the administrators to discover resources much faster compared to...

Get IIS AppPool Info

Image
Here is a simple PowerShell function to check the app pool status on remote servers. It make use of Microsoft.Web.Administration Namespace instead of WebAdministration snap-in. Please let me know your feed back. References: https://gallery.technet.microsoft.com/scriptcenter/Powershell-ScriptFunction-2ed89388 https://blogs.msdn.microsoft.com/carlosag/2008/02/10/using-microsoft-web-administration-in-windows-powershell/ <# . SYNOPSIS List the app pools and it' state remotely. . DESCRIPTION Get the app pools and it's status remotely making use of .NET Microsoft.Web.Administration namespace. . PARAMETER ComputerName Provide the name or IP address of a remote computer or a list of computer names separated by a comma. .EXAMAPLE Get-AppPool -Computer comp1,comp2 #> Function Get-AppPool (){ [ CmdletBinding ()] param ( [ parameter ( mandatory = $ True , Position = 1 )] [ string []]$ ComputerName ...

Check Memory Usage

Image
This blog is created as part of my PowerShell learning and getting into the blogging world, so you may see repetitive content. Please bear with me. Here I am posting a simple script that can be used to get RAM memory details from remote windows computers. Please let me know your suggestions on improving the scripts. reference: https://gallery.technet.microsoft.com/scriptcenter/Powershell-Script-to-Get-78687c5e <# . SYNOPSIS Get memory details of a remote server . DESCRIPTION Get the Available physical memory, FreePhysicalMemory, and Percentage of Memory Usage remotely. . PARAMETER ComputerName Accepts a list of computer names or IP addresses . EXAMPLE Get-MemoryUsage -ComputerName computer1 Get-MemoryUsage -ComputerName computer1,computer2 . LINK https://posh-scripting.blogspot.in/2016/10/memory-usage.html #> function Get-MemoryUsage { [ CmdletBinding ()] Param ( # A computer name or list of computer names ...