TAK

Build status PowerShell Gallery

Tom’s Admin Kit, or TAK, is a PowerShell script module that contains useful tools which I collected or created over the years. I tried to give credits where appropriate and where I could still remember the source :)

The main goal of creating the module and writing the scripts it contains, was learning PowerShell and making my job a little bit easier. As I am currently looking into continuous integration, I used this module to build an example deployment pipeline. You can read more about that here.

Functions

Add-EtcHostsEntry

Add an entry to local hosts file.

Connect-Lync

Connect to Skype for Business Server or Online.

Connect-SfB

Connect to Skype for Business Server or Online.

Convert-SubnetMask

Convert a SubnetMask to PrefixLength or vice-versa.

ConvertFrom-Base64

Convert Base64 to ClearText String

ConvertFrom-SID

Get the account name for a SID.

ConvertTo-Base64

Convert a String to Base64

ConvertTo-SID

Get the SID for an account name

Edit-EtcHosts

Edit etc hosts file with notepad.

Get-DKIMRecord

Get DKIM Record for a domain.

Get-DMARCRecord

Get DMARC Record for a domain.

Get-MacAddressVendor

Mac Address vendor lookup.

Get-MxRecord

Get MX Records for a domain.

Get-SPFRecord

Get SPF Record for a domain. If the include tag is present, recursively get that SPF Record, too.

Get-TakHash

Get hash for a string.

Get-WlanProfile

Get-WlanProfile

Import-Csr

Import certificate signing request from base64 text.

Import-DhcpServerLog

Import DHCP Server Log files.

Import-IISLog

Import IIS log files with default header.

Invoke-WhoisRequest

Wohis request.

New-FirewallRule

Create a new Windows Firewall Rule.

New-RgsReport

Gather information about Skype for Business Response Groups, Queues, Agent Groups.

New-SPFRecord

Create SPF record for a given mail domain.

Remove-EtcHostsEntry

Remove an entry from local hosts file by it's IP address.

Show-EtcHosts

Display /etc/hosts file content on Windows or Linux/macOS.

Show-WlanProfile

Get wlan pre-shared key.

Test-ExchangeAutodiscover

Test Exchange Autodiscover Web Service.

Test-FederationService

Test the ADFS web service

Test-LyncDNS

Test DNS entries for Skype for Business / Lync deployments.

Test-LyncDiscover

Test the Lyncdiscover service for Skype for Business/Lync deployments

Test-OOSFarm

Get internal and external URLs for PowerPoint sharing.

Test-SfBDNS

Test DNS entries for Skype for Business / Lync deployments.

Test-SfBDiscover

Test the Lyncdiscover service for Skype for Business/Lync deployments

Test-TCPConnection

Test if a TCP Connection can be established.

Test-TLSConnection

Test if a TLS Connection can be established.

Update-FileWriteTime

Touch a file.

Download & Source for TAK

The Module is available on the PowerShell Gallery, you can install or download it using the following commands:

Install-Module -Name TAK -Scope CurrentUser
Save-Module -Name TAK -Path <Path>

And you can find the source on GitHub: tomtorggler/TAK