equelin / PSMitrend

Powershell module for creating and submitting Mitrend assessments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSMitrend

Powershell module for creating and submitting Mitrend assessments. It's purpose is to simplify the process of assessment's request by providing a single powershell command.

> Request-Assessment -Company 'MyCompany' -AssessmentName 'MyAssessment' -DeviceType 'MyDevice' -File 'C:\Myfile.zip'

This module can be useful for automating planed assessment's request to provide long term insight of your infrastructure.

What is Mitrend?

As stated in the Mitrend's website:

Mitrend helps IT professionals by providing a clear and accurate view of datacenter infrastructure. Our automated services include assessments of a wide range of infrastructure components, from Server and Virtualization to Storage and Backup Systems.

Requirements

  • Powershell 4 (If possible get the latest version available)
  • A valid Mitrend account

Usage Instructions

Install the module

#Automated installation from the Powershell Gallery (Powershell 5):
    Install-Module PSMitrend

# Or manual setup
    # Download the repository
    # Unblock the zip
    # Extract the PSMitrend folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\)

# Import the module
    Import-Module PSMitrend  #Alternatively, Import-Module \\Path\To\PSMitrend

# Get commands in the module
    Get-Command -Module PSMitrend

# Get help
    Get-Help Request-Assessment -Full #Get help for a specific command
    Get-Help PSMitrend

How to submit an assessment

You can find more detailed scripts here

1- Follow the mitrend documentation to gather all relevant files

2- Open a Powershell console and import the PSMitrend module

> Import-Module PSMitrend

3- Get your Mitrend credentials

> $Credentials = Get-Credential

4- Request an assessment

> $Assessment = Request-Assessment -Credentials $Credentials -Company 'MyCompany' -AssessmentName 'MyAssessment' -DeviceType 'Unity' -File 'C:\Myfile.zip'

7- If everything goes well, you should receive emails from Mitrend stating that they are processing the data

8- You can request Mitrend to send you an email with the assessment in xml format with the command Request-EmailReport. I you need powerpoint's reports, you will have to download them from the Mitrend website

> Request-EmailReport -Credentials $Credentials -Assessment $Assessment.id

Author

Erwan Quélin

Special Thanks

License

Copyright 2016-2017 Erwan Quelin and the community.

Licensed under the MIT License.

About

Powershell module for creating and submitting Mitrend assessments

License:MIT License


Languages

Language:PowerShell 100.0%