Artemis.psm1

<#
    .NOTES
    --------------------------------------------------------------------------------
     Code generated by: SAPIEN Technologies, Inc., PowerShell Studio 2019 v5.6.165
     Generated on: 8/9/2019 04:09
     Generated by: jisodl0
     Organization: J.B. Hunt
    --------------------------------------------------------------------------------
    .DESCRIPTION
        Script generated by PowerShell Studio 2019
#>



    <#
        ===========================================================================
         Created with: SAPIEN Technologies, Inc., PowerShell Studio 2019 v5.6.156
         Created on: 1/17/2019 13:11
         Created by: jisodl0
         Organization: J.B. Hunt
         Filename: Artemis.psm1
        -------------------------------------------------------------------------
         Module Name: Artemis
        ===========================================================================
    #>

    
    <#
    .SYNOPSIS
      Copies your current path to your clipboard.
    
    .DESCRIPTION
      Using $pwd, your current path is saved to your clipboard so you can paste it
    anywhere you need.
      
    .EXAMPLE
      PS C:\> Copy-PathToClipboard
    #>

    function Copy-PathToClipboard {
      [CmdletBinding()]
      [Alias('cptc')]
      param ()
      $PWD.Path | Set-Clipboard
    }
    
    <#
    .SYNOPSIS
        Resolves the DNS name for a device.
    
    .DESCRIPTION
        Using the provided IP address, will resolve the DNS name for the device using Resolve-DnsName.
    
    .PARAMETER IPAddress
        The IP of the device you wish to retrieve the DNS name of.
    
    .EXAMPLE
        PS C:\> Resolve-JBDnsName -IPAddress '10.3.14.211'
    
    .EXAMPLE
        PS C:\> Resolve-JBDnsName 10.3.14.211
    #>

    function Resolve-JBDnsName {
        [CmdletBinding()]
        param (
            [Parameter(Mandatory = $true,
                       Position = 0)]
            [System.String]$IPAddress
        )
        
        Resolve-DnsName -Name $IPAddress -Server 10.16.100.1
    }