Archive for setembro \30\+00:00 2008|Monthly archive page

Logando com privilegio de system

Essa quem me ensinou foi o Fred Lost in the e-Jungle

Você pode fazer tudo pela linha de comando:

C:\>at hh:mm /interactive cmd.exe

C:\>exit

Espere até hh:mm, uma janela DOS aparecerá já sob a conta SYSTEM, dai você pode fazer:

C:\>taskkill –f –fi “imagename eq explorer.exe”

C:\>explorer

Voilà! Vc está logado como SYSTEM (que é mais privilegiado localmente do que o Administrator!).

É claro, a coisa toda funciona apenas se o usuário tiver acesso ao at.exe ou a um scheduler.

Problemas semelhantes podem ser encontrado no MS SQL Agent e nos Screen Savers.

Valeu Tarzan…

Horário de Verão 2008/2009

O Horário de Verão 2008/2009

O Horário de Verão 2008/2009 tem início à zero hora (00h00) do dia 19 de outubro de 2008, quando os relógios deverão ser adiantados em uma hora nas regiões Sul, Sudeste e Centro-Oeste, conforme pode ser verificado no site do Ministério de Minas e Energia.

Como o Brasil não possui um horário de verão estático, as datas de início e término são diferentes a cada ano, dificultando a atualização automática do sistema. A partir de 2009 o Horário de Verão passará a ter datas fixas, como pode ser observado neste decreto do Ministério de Minas e Energia. Entretanto, para este Horário de Verão 2008/2009 algumas alterações ainda precisam ser feitas manualmente.

Com o propósito de evitar transtornos para você, a Microsoft se antecipou a possíveis problemas que possam ocorrer e oferece dicas de como fazer as alterações de modo a refletir corretamente as datas de início e de fim do horário de verão atual para o Brasil.

Neste ano, as datas de início e fim do horário de verão para o fuso horário (GMT -3:00) Brasília no Windows são as seguintes:

  • O horário de verão começa à 00:00 do domingo, 19 de outubro de 2008.
  • O horário de verão termina às 24:00 do domingo, 15 de fevereiro de 2009.

Atenção: Usuários corporativos que precisam alterar o horário do Microsoft Outlook ou do Microsoft Exchange devem seguir as orientações contidas no seguinte endereço:
www.microsoft.com/brasil/horariodeverao

Veja abaixo como efetuar a alteração do Horário de Verão no Windows:

Os usuários do Windows Vista, Windows XP, Windows Server 2003 e Windows Server 2008 deverão solicitar um hotfix que atualizará as datas de seus sistemas automaticamente. Para obter esse hotfix, siga os passos abaixo:

Acesse a página http://support.microsoft.com/kb/957201/pt-br

Nessa página você verá todas as informações sobre o hotfix. Clique no link “Visualizar e solicitar downloads de hotfix” para acessar o formulário de requisição.

No final dessa página, selecione a versão do seu Windows

Em seguida, preencha o formulário com seu email e digite os caracteres que aparecerem na imagem.

Clique no botão “Solicitar hotfix” e pronto, o hotfix será enviado em breve para o seu e-mail.

Google phone começa a ser vendido

Já tem data para chegar às lojas dos Estados Unidos o primeiro concorrente direto do iPhone. Dia 22 de outubro será lançado o G1 (vídeo abaixo), primeiro celular a usar o software Android, do Google. A competitividade do aparelho, também chamado de HTC Dream, surge ainda no valor: custará US$ 179, 20 dólares a menos que o celular da Apple. O plano de dados ilimitado sairá por US$ 35.

Matéria na integra: http://jc.uol.com.br/2008/09/23/not_180396.php

Historia da internet

http://www.empreenderti.com/

Ajuste o horário de verão no Windows

Acabei de ler no blog o Vinicius Canto que a Microsoft vai liberar patch de correção via update para salvar a vida da galera.
Segue link
http://www.microsoft.com/brasil/windows/products/windowsvista/verao.mspx

Horario de verão 20008 / 20009

script para alterar horario de veão em estações de trabalho rodando windows 2k,XP e servidores com windows 2k e 2k3.
Infelizmente ao testar no vista ele altera o horário mas se reiniciar volta as configurações default.
Infelizmente não encontrei a pagina onde meu amigo Marcelo Dantas descobriu este script.

‘///////////////////////////////////////////////////////INICIO\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
‘script para alterar horario de verao no brasil
‘descoberto por Marcelo Dantas Bandeira – mdbandeira@gmail.com
‘alterado por Romeu Malacarne Avancini – rmavancini@gmail.com

Const BRASILIA_TZNAME = “E. South America Standard Time”
Const KEY_BRASILIA_TIME = “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\E. South America Standard Time”
Const KEY_TZINFO = “HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation”
Const REG_WINDOWSVERSION = “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion”

Dim strNewBrasiliaTZInfo, strNewDaylightStart, strNewStandardStart
Dim objShell, objFSO
Dim strCurrentStandardNameTZInfo
Dim intReturnValue
Dim strCurrentStandardName, strCurrentStandardNameSATime, strCurrentStandardNameSATimeMUI
Dim strRegExePath, intLastTZUpdate

On Error Resume Next

strNewBrasiliaTZInfo = “b400000000000000c4ffffff0000020000000300000000000000000000000a00000003000000000000000000”

strNewDaylightStart = “00000a00020000000000000000000000”

strNewStandardStart = “00000200030000000000000000000000”

Set objShell = CreateObject(“WScript.Shell”)
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Set objNetwork = CreateObject(“WScript.Network”)

intLastTZUpdate = 0

If LCase(objShell.Environment(“PROCESS”).Item(“OS”)) = “windows_nt” Then
    ‘Check if Timezone update was already applied. In this case, exit the script
    intLastTZUpdate = objShell.RegRead(KEY_BRASILIA_TIME & “\LastTZUpdate”)

    If intLastTZUpdate <> 2008 Then
      err.clear
      strRegExePath = getRegExePath
      If objFSO.FileExists(strRegExePath) Then
          ‘Set the registry key with the new Brasilia Timezone Information for 2008-2009
          intReturnValue = objShell.Run(strRegExePath & ” add ” & Chr(34) & KEY_BRASILIA_TIME & Chr(34) & _
                                          ” /v TZI /t REG_BINARY /d ” & _
                                        strNewBrasiliaTZInfo & ” /f”, 0, True)
          If (intReturnValue = 0) And (Err.Number = 0) Then
              ‘Check if the computer’s current time zone is (GMT -3:00) Brasilia time zone
              ‘If yes, change the current start and end daylight savings dates
              strCurrentStandardName = objShell.RegRead(KEY_TZINFO & “\StandardName”)
              strCurrentStandardNameSATime = objShell.RegRead(KEY_BRASILIA_TIME & “\Std”)
              strCurrentStandardNameSATimeMUI = objShell.RegRead(KEY_BRASILIA_TIME & “\MUI_Std”)
                                                         
              If ((Err.Number = 0) Or (Err.Number = -2147024894)) Then
                  If (LCase(strCurrentStandardName) = LCase(strCurrentStandardNameSATime)) Or _
                       (LCase(strCurrentStandardName) = LCase(strCurrentStandardNameSATimeMUI)) Then
                      ‘The current time zone is (GMT -3:00) Brasilia time zone
                      ‘Update current time zone information with the new settings
                      err.clear
                      intReturnValue = objShell.Run(strRegExePath & ” add ” & Chr(34) & KEY_TZINFO & Chr(34) & _
                                                  ” /v DaylightStart /t REG_BINARY /d ” & _
                                                  strNewDaylightStart & ” /f”, 0, True)
                                                               
                      intReturnValue = intReturnValue + objShell.Run(strRegExePath & ” add ” & Chr(34) & KEY_TZINFO & Chr(34) & _
                                                  ” /v StandardStart /t REG_BINARY /d ” & _
                                                  strNewStandardStart & ” /f”, 0, True)
                                                                                                                                       
                      If (intReturnValue = 0) And (Err.Number = 0) Then
                          ‘TimeZone information set fine
                          ‘We only need to update the current setting
                          If wscript.Version < “5.7” Then
                            objShell.Run “CONTROL.EXE TIMEDATE.CPL,,/Z ” & BRASILIA_TZNAME, 0, True
                          End If
                          lineOut “Time zone for 2007-2008 (GMT -3:00) Brasilia time zone updated successfully.” & vbCrLf & _
                                  “Current time zone for 2007-2008 updated successfully.”, 0
                          ‘Save a registry key to avoid refreshing timezone running script each startup.
                          objShell.RegWrite KEY_BRASILIA_TIME & “\LastTZUpdate”, 2007
                      Else
                          ‘Reg.exe returned an error
                          lineOut “An error occurred when updating current time zone information”, 2
                      End If
                  Else
                    lineOut “Current standard time zone is ‘” & strCurrentStandardName & “‘. No need to update it. ” & vbCrLf & _
                            “(GMT -3:00) Brasilia time zone information for 2007-2008 updated successfully.”, 0
                    ‘Save a registry key to avoid refreshing timezone running script each startup.
                    objShell.RegWrite KEY_BRASILIA_TIME & “\LastTZUpdate”, 2007
                  End If
              Else
                  ‘Error querying time zone information
                  lineOut “An error occurred querying the time zone information”, 2
              End If
             
          Else
              ‘ An error occurred when you set the Time Zone information for Brasilia Time
              lineOut “An error occurred when updating time zone information for (GMT -3:00) Brasilia”, 2
          End If
      Else
          lineOut “Could not find reg.exe in following location: ” & strRegExePath & vbCrLf & _
                  “(GMT -3:00) Brasilia time zone for 2007-2008 not updated”, 2
      End If
   End If
Else
    lineOut “Operating System not Supported. Run the script in a Windows NT-based operating system.”, 1
End If

Function getRegExePath()
    ‘Windows 2000 does not have inbox reg.exe. In this case,
    ‘we need to make sure reg.exe is present on the same folder as script is located.
      getRegExePath = objFSO.GetSpecialFolder(1) & “\reg.exe”
      If Not objFSO.FileExists(getRegExePath) Then
          getRegExePath = objFSO.GetParentFolderName(wscript.ScriptFullName) & “\reg.exe”
      End If
End Function

Sub lineOut(strLine, intType)
    Dim ScriptHost
    ScriptHost = wscript.FullName
    ScriptHost = Right(ScriptHost, Len(ScriptHost) – InStrRev(ScriptHost, “\”))
   
    If (InStr(1, wscript.FullName, “CSCRIPT.EXE”, 1) > 0) Then
        wscript.Echo strLine
    Else
        ‘Do not display anything if not running under cscript command line processor.
        ‘If you want to have a message box that contains the message,
        ‘remove the ‘ for the line under
        ‘wScript.Echo stLine
    End If
    objShell.LogEvent intType, strLine
End Sub

wscript.quit

‘///////////////////////////////////////////////////////FIM\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\