This function will return a boolean value on whether a registry string is correctly formatted. Any suggestions for improvements then please post below. Thanks. Function: ; #FUNCTION# ==================================================================================================================== ; Name ..........: _IsRegKey ; Description ...: Check if a string is a valid registry string. ; Syntax ........: _IsRegKey($sRegistryKey) ; Parameters ....: $sRegistryKey - A registry string.