I often look at the code of others with respect and admiration. Peter Kriegel (Germany) wrote Export-XLSX.ps1, an amazing script which lets you export data into a real XLSX file without Excel being installed. The script also enables you to directly append worksheets to XLXS files. His website, http://www.admin-source.de, hasn’t been updated in a while,…
Month: January 2017
Get the NetBIOS AD Domain Name from the FQDN
I hate using NameTranslate, because it is a COM object, and because the output is often really hard to get into a clean, trimmed string. The netBIOS name isn’t a part of the AD domain object, but I suspected that the information could be gotten using a LDAP query. My searching lead me to a post…