Si votre email correspond à un compte, vous recevrez un lien de réinitialisation.
Bonjour,J'ai besoin d'interroger la Base de Registre de mes collègues pour modifierune valeur REG_SZVoici mon Script:On Error Resume NextstrComputer = "."Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!" &strComputer & "rootdefault:StdRegProv")Set wshNetwork = wscript.CreateObject("WScript.Network")Set objWMIService = GetObject("winmgmts:" & strComputer & "rootcimv2")Set colItems = objWMIService.ExecQuery("Select * from Win32_UserAccountwhere name='" & WshNetwork.UserName & "'",,48)For Each objItem in colItemsstrSID = objItem.SID ' Récupération du SID user connectéNextstrResult = "User = " & WshNetwork.UserName & vbcrlf & "SID: " & strSID &vbcrlf & "==================" & vbcrlfFor i=1 To 12 'Boucle de vérification des différentes clés associéesIf i < 10 thenstrKey = strSID & "SoftwareMicrosoftInternet AccountManagerAccounts 0000000" & iElsestrKey = strSID & "SoftwareMicrosoftInternet AccountManagerAccounts 000000" & iEnd ifstrValueName1 = "POP3 Server"strValueName2 = "SMTP Server"objReg.GetStringValue HKEY_USERS,strKey,strValueName1,strPop3objReg.GetStringValue HKEY_USERS,strKey,strValueName2,strSmtpstrResult = strResult & "i = " & i & vbcrlf & "POP3 = " & strPop3 &vbcrlf & "SMTP = " & strSmtp & vbcrlf & "================" & vbcrlfNextMsgBox strResult, vbInformation, "Résultat"Je n'arrive malheureusement pas à l'interroger, je n'ai aucune valeur enretour, j'ai essayé GetExpandedStringValue, mais idem, rien.Avez vous une idée?--Amicalement,Thierry
Bonjour, J'ai besoin d'interroger la Base de Registre de mes collègues pour modifier une valeur REG_SZ Voici mon Script: On Error Resume Next strComputer = "." Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\" & strComputer & "rootdefault:StdRegProv") Set wshNetwork = wscript.CreateObject("WScript.Network") Set objWMIService = GetObject("winmgmts:\" & strComputer & "rootcimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_UserAccount where name='" & WshNetwork.UserName & "'",,48) For Each objItem in colItems strSID = objItem.SID ' Récupération du SID user connecté Next strResult = "User = " & WshNetwork.UserName & vbcrlf & "SID: " & strSID & vbcrlf & "==================" & vbcrlf For i=1 To 12 'Boucle de vérification des différentes clés associées If i < 10 then strKey = strSID & "SoftwareMicrosoftInternet Account ManagerAccounts 0000000" & i Else strKey = strSID & "SoftwareMicrosoftInternet Account ManagerAccounts 000000" & i End if strValueName1 = "POP3 Server" strValueName2 = "SMTP Server" objReg.GetStringValue HKEY_USERS,strKey,strValueName1,strPop3 objReg.GetStringValue HKEY_USERS,strKey,strValueName2,strSmtp strResult = strResult & "i = " & i & vbcrlf & "POP3 = " & strPop3 & vbcrlf & "SMTP = " & strSmtp & vbcrlf & "================" & vbcrlf Next MsgBox strResult, vbInformation, "Résultat" Je n'arrive malheureusement pas à l'interroger, je n'ai aucune valeur en retour, j'ai essayé GetExpandedStringValue, mais idem, rien. Avez vous une idée? -- Amicalement, Thierry