PowerShell Scripts

.SYNOPSIS Displays the Windows Firewall state for Domain, Private, and Public profiles on local or remote computer. .DESCRIPTION Use Get-FirewallState to show current Firewall state that is presented on the Windows Firewall with Advanced Security Properties page, with the tabs for Domain, Private, and Public profiles. .PARAMETER HOSTNAME Specifies the remote or local computer name. When using … Continue reading Get Windows Firewall State on Local or Remote Machine Utilizing Netsh.exe

Amazon EC2 Instances have metadata they can access. They get it by accessing a web server on a link-local address This PowerShell function will attempt to open http connection to the link-local address, and if successful will confirm that the host is running on Amazon Elastic Compute Cloud (Amazon EC2). Code:  

Get-FileShares PowerShell function will enumerate all shares (except administrative, but including those that end in a dollar sign ($) on a remote machine and optionally send the output to a CSV file. The following share properties will be included in the export: ServerName | ShareName | SharePath | Description ServerName ShareName SharePath Description FILESERVER01 \\FILESERVER01\CustomerCare … Continue reading Get File Shares PowerShell Function

With Outbound Port Scanner you can determine, which outbound ports aren’t blocked by your firewall. This PowerShell tool is extremely helpful when you are behind firewall, and you are running service on a remote machine that you want to connect to it, but you are unable to find out which ports can be accessed and … Continue reading Outbound Port Scanner

Get-Geo PowerShell function will resolve the IP address of a domain and return the country name and country code information: Add this function to a module or save it as ps1 file and dot source it:  

WhoIs PowerShell function will perform a domain name lookup and return information such as domain availability (creation and expiration date),  domain ownership, name servers, etc.. Add this function to a module or save it as ps1 file and dot source it in your profile:  

Get-FileReport function creates detailed file report and exports it into CSV format. Description: Use this function to export properties for files of certain type (doc, txt, jpg, etc.), and files older than certain days. The report includes the following file properties: File Name | Full File Path | File Extension | File Size in KB … Continue reading File Report PowerShell Function

File Share Quota Management Tool is a powerful menu based PowerShell script used to remotely control the amount of disk/storage space that a user can utilize on the file server. Quota manager tool will help system administrators to create, modify, enable or disable quotas on remote file servers. The user-friendly navigation through the menus and … Continue reading File Share Quota Manager – Menu Based

Leave a Reply

Your email address will not be published. Required fields are marked *

Windows PowerShell scripts and tools for task automation.