Hello,

I am looking for a simple way of retrieving the current time from
remote Windows NT/2000 servers using vbScript. I am presently using the
Win32_LocalTime class to retrieve the current time from Windows 2003
servers, but have found that this class is not supported on Windows
NT/2000.

Any help would be greatly appreciated.

Re: Retrieving current time from remote servers by Fosco

Fosco
Wed Oct 11 00:45:10 CDT 2006

bileduct:

> I am looking for a simple way of retrieving the current time from
> remote

http://www.google.it/search?hl=it&q=get+time%2Bvbs&meta=

http://archive.devx.com/sourcebank/details.asp?resourceNum=1044146

--
Fosco

Re: Retrieving current time from remote servers by Trevor

Trevor
Wed Oct 11 12:27:26 CDT 2006

bileduct wrote:
> Hello,
>
> I am looking for a simple way of retrieving the current time from
> remote Windows NT/2000 servers using vbScript. I am presently using the
> Win32_LocalTime class to retrieve the current time from Windows 2003
> servers, but have found that this class is not supported on Windows
> NT/2000.
>
> Any help would be greatly appreciated.
>
Hi there, another option would be to use the WshController object to
execute a script on a remote machine, using the built-in VBscript date
functions to retrieve date/time or whatever you need. Hope this helps!

Trevor Sullivan
MCP

Re: Retrieving current time from remote servers by Michael

Michael
Wed Oct 11 18:58:22 CDT 2006

bileduct wrote:
> Hello,
>
> I am looking for a simple way of retrieving the current time from
> remote Windows NT/2000 servers using vbScript. I am presently using
> the Win32_LocalTime class to retrieve the current time from Windows
> 2003 servers, but have found that this class is not supported on
> Windows NT/2000.
>
> Any help would be greatly appreciated.

Win32_OperatingSystem is supported on W2K and has a LocalDateTime in WMI
date/time format, e.g. LocalDateTime => 20061011165454.048000-420

--
Michael Harris
Microsoft MVP Scripting