Usuário com melhor resposta
Puxar a Hora e Data do Servidor 2003 por Script VBS

Pergunta
-
Olá Pessoal,
Algume sabe como fazer um script que puxa a hora e data do servidor?
Como se fosse o net time do dos??
Obrigado!- Movido Jesiel S. Pereira quarta-feira, 28 de outubro de 2009 11:06 Forum errado (De:Windows Server 2003)
Respostas
-
Olá,
Você pode usar o vbs para executar o net time, exemplo:
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
' Abrir normal
WSHShell.Run "net time \\server /set /y", 1, true
Set WSHShell = Nothing
WScript.Quit(0)
Até mais,
Jesiel
Obs.: Se útil, classifique
- Marcado como Resposta Tberth quarta-feira, 28 de outubro de 2009 11:24
Todas as Respostas
-
-
Olá,
Você pode usar o vbs para executar o net time, exemplo:
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
' Abrir normal
WSHShell.Run "net time \\server /set /y", 1, true
Set WSHShell = Nothing
WScript.Quit(0)
Até mais,
Jesiel
Obs.: Se útil, classifique
- Marcado como Resposta Tberth quarta-feira, 28 de outubro de 2009 11:24
-
Olá,
Você pode usar o vbs para executar o net time, exemplo:
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
' Abrir normal
WSHShell.Run "net time \\server /set /y", 1, true
Set WSHShell = Nothing
WScript.Quit(0)
Até mais,
Jesiel
Obs.: Se útil, classifique
RESOLVIDO, MUITO GRATO JESIEL