Tag Archives: PowerShell Script

Get Windows Product License Information (including license type and product key) PowerShell/WinForms GUI Tool

Windows License Extractor is a small PowerShell/WinForms GUI tool that will help you to display/export licensing information (including the product key where possible) for your current running operating system, as well as other remote computer systems.

Windows License Extractor
Windows License Extractor 1.0.0

This utility can be useful if you lost the product key of your Windows, and you want to reinstall it on your computer.

Download:
Get-ProductKey

Extended Process Info PowerShell/SQL Tool

Get-Process Info is a PowerShell function, which provides information about processes and DLLs running or found on Windows PCs.
This PowerShell function queries a process listing database with over 40000 records and returns extra information about a computer process:
[Process Name] [Description] [Additional Info] [Reported as a virus]
[Reported as a trojan] [Reported as a spyware] [Safe to end the process]

Features

-Accepts pipeline input
-Accepts wildcard characters:
%           A substitute for zero or more characters
_             A substitute for a single character
[charlist]  Sets and ranges of characters to match

Examples

Example 1

Description:
Returns extended information about spoolvlc.exe process.

Output:

Example 2

Shows additional information for all processes currently runing on the local machine.

Output:

Example 3

Gets additional information for dll files and modules loaded by notepad process.

Example 4

Gets additional information for dll files and modules loaded by all currently running processes.

Example 5

Gathers processes information for a remote machine.

Example 6

Returns information for all recorded processes starting with vc.

Outbound Port Scanner

With Outbound Port Scanner you can determine, which outbound ports aren’t blocked by your firewall.

Outbound-Port-Scanner
Outbound Port Scanner with port range 20-30.

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 to which port to bind the service.

The Code:
You may want to select a port range (line 2).
The destination host listens on all TCP ports from 1 to 65535.

 

File Share Quota Manager – Menu Based

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.

File Share Quota Manager
File Share Quota Manager v1.1

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 the ability to remotely manage the quotas can save tremendous amount of time spent on manual quota processing during our daily admin tasks.
This tool is extremely helpful for managing file quotas on Windows servers with no PowerShell FSRM module support (which comes with Windows Server 2012).

Functions:
1. Adds New Quota
-Creates a new quota using standard user share template
2. Shows Quota & Local Drive Information
-Shows common quota parameters & local disk information
-Shows information (free space) for all available local disks (load balancing purposes)
3. Modifies Existing Quota
-Modifies the Quota Limit
-Applies New Standard Templates:
*User Predefined:
*4 GB User Share Hard Quota
*8 GB User Share Hard Quota
*12 GB User Share Hard Quota
*16 GB User Share Hard Quota
*20 GB User Share Hard Quota
*4 GB User Limit with 250 MB Extension
*8 GB User Limit with 250 MB Extension
*12 GB User Limit with 250 MB Extension
*16 GB User Limit with 250 MB Extension
*20 GB User Limit with 250 MB Extension
*Groups Predefined:
*10 GB Group Share Hard Quota
*20 GB Group Share Hard Quota
*30 GB Group Share Hard Quota
*40 GB Group Share Hard Quota
*50 GB Group Share Hard Quota
*10 GB Group Limit with 250 MB Extension
*20 GB Group Limit with 250 MB Extension
*30 GB Group Limit with 250 MB Extension
*40 GB Group Limit with 250 MB Extension
*50 GB Group Limit with 250 MB Extension
-Disables Quota
-Enables Quota

Requirements:
The script leverages the command-line FSRM utility dirquota and requires PSRemoting enabled on the target systems.

Tested on the following platforms:
Windows Server 2003
Windows Server 2008 R2

Download Link:
https://gallery.technet.microsoft.com/PowerShell-Tool-File-Share-560bde3b

The code:
In case your preferable way is to access the servers using their virtual names, you need to do few modifications:
-Uncomment line 51. The script will resolve server’s hostname form the DNS. To use FQDN type in the DNS suffix.
-Comment out line 49.

For retrieving the local disks information (lines 75,77) I used filtering to exclude all possible drives that I don’t want to monitor. Those are system drive, Quorum disk, drives that do not support any active shares. You may want to adjust this filtering to fit  with your environment configuration.
To change the standard quota templates use Find/Replace.