This is a fork from an awesome script I found. Thanks and credits to Adam Burford Create A KeyTab File Using PowerShell Script Follow this link for documentation. https://therealadamburford.github.io/Create-KeyTab/