Generate a temporary file name
> [System.IO.Path]::GetTempFileName()
Resolve a host name to it's FQDN
> [system.net.dns]::resolve($env:computername)
> [system.net.dns]::resolve($env:computername).host #Return the FQDN only
Show hidden files and folders
> Get-ChildItem –Hidden
> Get-ChildItem –Attributes H
Clear recycle bin
> #Requires PowerShell Version 5
> Clear-RecycleBin –DriveLetter C -force
Add CTMF Modules to a script
> Import-Module $PSScriptRoot\CTMF-Modules\ctmf-core.psm1 -force
Test TCP Open port
> (new-object system.net.sockets.tcpClient).connect("computername",80)
If no error is returned the port is accessible