<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; WMI: узнать время на удаленном компьютере]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5858&amp;type=atom" />
	<updated>2011-06-13T11:19:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5858</id>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49106#p49106" />
			<content type="html"><![CDATA[<p>миллион спасибо,&nbsp; как приду домой попробую.</p>]]></content>
			<author>
				<name><![CDATA[HolyMacaroni]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26990</uri>
			</author>
			<updated>2011-06-13T11:19:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49106#p49106</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49105#p49105" />
			<content type="html"><![CDATA[<p>В связи с тем, что при снятии/установке галки в данном разделе меняются сразу же 5 значений (а то - у MS никогда просто не было) предлагаю тупо/железобетонно: <br />* экспортировать раздел (или прямо из regedit значения списать), когда через GUI все настроено верно<br />* затем прописывать эти значения через RegWrite()<br />* с удаленной машины брать только местное время/дату</p>]]></content>
			<author>
				<name><![CDATA[jite]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25851</uri>
			</author>
			<updated>2011-06-13T07:13:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49105#p49105</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49104#p49104" />
			<content type="html"><![CDATA[<p>Или через реестр <a href="http://forum.windowsfaq.ru/archive/index.php/t-47600.html">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation</a>.<br />Наличие параметра DisableAutoDaylightTimeSet - это отсутствие той самой галочки.<br />Или с этой стороны копать: <a href="http://msdn.microsoft.com/en-us/library/ms724932%28VS.85%29.aspx">SetDynamicTimeZoneInformation()</a>.</p>]]></content>
			<author>
				<name><![CDATA[jite]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25851</uri>
			</author>
			<updated>2011-06-13T06:55:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49104#p49104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49103#p49103" />
			<content type="html"><![CDATA[<p>Через реестр такие вещи делаются (а вообще говоря, чисто по секрету, любые связанные с настройками виндов).</p>]]></content>
			<author>
				<name><![CDATA[Аскет]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25748</uri>
			</author>
			<updated>2011-06-13T06:50:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49103#p49103</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49102#p49102" />
			<content type="html"><![CDATA[<p>я имею ввиду программно:)</p>]]></content>
			<author>
				<name><![CDATA[HolyMacaroni]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26990</uri>
			</author>
			<updated>2011-06-13T04:38:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49102#p49102</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49098#p49098" />
			<content type="html"><![CDATA[<p>А в настройках Windows переход убирать надо, так понимаю. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Галочка должна быть снята.<br />И в консоли и в GUI должно показываться местное время +GMT X, где X постоянная (если указ об отмене перевода времени не отменят) добавка, равная бывшее_зимнее_(оно_же_основное)_GMT + 1.</p>]]></content>
			<author>
				<name><![CDATA[jite]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25851</uri>
			</author>
			<updated>2011-06-12T19:49:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49098#p49098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49097#p49097" />
			<content type="html"><![CDATA[<p>спасибо большое, а переход на летнее время как убрать?</p>]]></content>
			<author>
				<name><![CDATA[HolyMacaroni]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26990</uri>
			</author>
			<updated>2011-06-12T19:18:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49097#p49097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48972#p48972" />
			<content type="html"><![CDATA[<p>Получение даты/времени: <a href="http://gallery.technet.microsoft.com/scriptcenter/07e0a1b4-8c02-49bc-a538-35374c6edfa2">List the Local Time on a Computer</a>.<br />Установка даты/времени: <a href="http://blogs.technet.com/b/heyscriptingguy/archive/2007/11/16/hey-scripting-guy-how-can-i-set-the-date-and-time-on-a-computer.aspx">Hey, Scripting Guy! How Can I Set the Date and Time on a Computer? - Hey, Scripting Guy! Blog - Site Home - TechNet Blogs</a>.</p><p>Работа с форматом дата/время: <a href="http://msdn.microsoft.com/en-us/library/aa393687(v=vs.85).aspx">SWbemDateTime Object (Windows)</a>.</p><p>P.S. Offset — это «Bias» из «Win32_TimeZone».</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-06-05T19:34:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48972#p48972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48969#p48969" />
			<content type="html"><![CDATA[<p>спасибо большое за ответ, разобрался по вашим наводкам как получить время и дату&nbsp; на удаленном и локальном компьютере:</p><div class="codebox"><pre><code>strServer = &quot;.&quot;

Set objWMI = GetObject(&quot;winmgmts://&quot; &amp; strServer &amp; &quot;/root\cimv2&quot;)
Set objInstances = objWMI.InstancesOf(&quot;Win32_TimeZone&quot;,48)

For Each objInstance in objInstances
   WScript.Echo objInstance.getObjectText_
Next</code></pre></div><p>, но не понял как устанавливать дату и время и переход на зимнее/летнее время на локальном компьютере, точнее не понял в каком формате принимает данные метод SetDateTime</p>]]></content>
			<author>
				<name><![CDATA[HolyMacaroni]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26990</uri>
			</author>
			<updated>2011-06-05T16:54:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48969#p48969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48864#p48864" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>HolyMacaroni пишет:</cite><blockquote><p>... как можно спомощью WMI узнать время на удаленном компьютере...</p></blockquote></div><p>Используйте класс <span style="color: blue">Win32_TimeZone</span>.</p><div class="quotebox"><cite>HolyMacaroni пишет:</cite><blockquote><p>... и установить его на локальном?</p></blockquote></div><p>Используйте метод <strong><span style="color: blue">SetDateTime</span></strong> класса <span style="color: blue">Win32_OperatingSystem</span>.</p>]]></content>
			<author>
				<name><![CDATA[Dmitrii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=13351</uri>
			</author>
			<updated>2011-06-01T05:49:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48864#p48864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[WMI: узнать время на удаленном компьютере]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48855#p48855" />
			<content type="html"><![CDATA[<p>Здравствуйте, как можно спомощью WMI узнать время на удаленном компьютере, и установить его на локальном?</p>]]></content>
			<author>
				<name><![CDATA[HolyMacaroni]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26990</uri>
			</author>
			<updated>2011-05-31T19:39:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48855#p48855</id>
		</entry>
</feed>
