BACKUP default directory
http://www.sqlservercentral.com/Forums/Topic1319398-1550-1.aspx
/*
In case it was not clear in Jason's post, the @key parameter value remain consistent
across all of your instances. The proc he is calling does proper registry resolution
for us depending on the instance we run it from. That is the beauty of master.sys.xp_instance_regread, as opposed to master.sysxp_regread
which requires the literal path to the registry location you want.
If you were using master.sys.xp_regread your calls would need
to be different across all of your 5-10 instances.
*/
EXECUTE [master].dbo.xp_instance_regread
N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\MSSQLServer', N'BackupDirectory'
Lowell