Question Valeur registry

Plus d'informations
il y a 12 ans 6 mois #15903 par Albert
Valeur registry a été créé par Albert
Salut,
J'essaye d'avoir le nom de mes instances sql server par la clé de registre HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL\* :

[code:1]$RegPath = \"HKLM:\SOFTWARE\Microsoft\Microsoft\SQL Server\Instance Names\SQL\"
Get-ItemProperty -path $RegPath[/code:1]

Mais je me retrouve toujours avec ça :
[code:1]PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\
Microsoft\Microsoft SQL Server\Instance Names\SQL
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\
Microsoft\Microsoft SQL Server\Instance Names
PSChildName : SQL
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
TESTSQLE : MSSQL11.TESTSQLE
SQLEXPRESS08 : MSSQL10_50.SQLEXPRESS08[/code:1]

Moi je voudrais juste TESTSQLE SQLEXPRESS08. Pourtant quand je vais voir la clé de registre il n'y a bien que ça dedans. Comment obtenir seulement le \"Name\" ?
Merci d'avance.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 12 ans 6 mois #15905 par Albert
Réponse de Albert sur le sujet Re:Valeur registry
J'ai trouvé :
[code:1](Get-Item -path $RegPath).Property[/code:1]
[code:1]TESTSQLE
SQLEXPRESS08[/code:1]

:)<br><br>Message édité par: FlqX, à: 11/09/13 15:04

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.048 secondes
Propulsé par Kunena