<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Object required in VB script in Intel® Business Client Software Development</title>
    <link>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853661#M1720</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/261210"&gt;Christoph Jechlitschek (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi all,&lt;BR /&gt;I try to write a VB script that disables the alarm clock on a AMT 5.1 system. I pasted it below. But when I call Put, I get an Object required error message. I checked the msdn documentation for Session.put, and the example they give work, but mine doesn't, although it is very similar. Does anybody know what's wrong with it?&lt;BR /&gt;&lt;BR /&gt;Christoph&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim WSMan&lt;BR /&gt;Dim Session, Options, iFlags&lt;BR /&gt;Set WSMan = CreateObject( "WSMAN.Automation" )&lt;BR /&gt;&lt;BR /&gt;iFlags = WSMan.SessionFlagUseDigest Or _&lt;BR /&gt;WSMan.SessionFlagCredUsernamePassword Or _&lt;BR /&gt;WSMan.SessionFlagUTF8&lt;BR /&gt;&lt;BR /&gt;Set Options = WSMan.CreateConnectionOptions&lt;BR /&gt;Options.Username = "admin"&lt;BR /&gt;Options.Password = "P@ssw0rd"&lt;BR /&gt;&lt;BR /&gt;Set Session = WSMan.CreateSession("http://192.168.1.100:16992/wsman", _&lt;BR /&gt;iFlags, Options)&lt;BR /&gt;&lt;BR /&gt;strResource = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AlarmClockService"&lt;BR /&gt;&lt;BR /&gt;Set objResultSet = Session.Put( strResource, "&lt;AMT_ALARMCLOCKSERVICE xmlns="" =""&gt;&lt;CREATIONCLASSNAME&gt;AMT_AlarmClockService&lt;/CREATIONCLASSNAME&gt;&lt;ELEMENTNAME&gt;Intel AMT Alarm Cloc&lt;BR /&gt;k Service&lt;/ELEMENTNAME&gt;&lt;NAME&gt;Intel AMT Alarm Clock Service&lt;/NAME&gt;&lt;SYSTEMCREATIONCLASSNAME&gt;CIM_ComputerSystem&lt;/SYSTEMCREATIONCLASSNAME&gt;&lt;SYSTEMNAME&gt;ManagedSystem&lt;/SYSTEMNAME&gt;&lt;/AMT_ALARMCLOCKSERVICE&gt;" )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;While Not objResultSet.AtEndOfStream&lt;BR /&gt;Wscript.Echo objResultSet.ReadItem&lt;BR /&gt;Wend&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Christoph! I have asked Lance to take a look at this one since he is our Alarm Clock expert!</description>
    <pubDate>Wed, 22 Apr 2009 15:27:37 GMT</pubDate>
    <dc:creator>Gael_H_Intel</dc:creator>
    <dc:date>2009-04-22T15:27:37Z</dc:date>
    <item>
      <title>Object required in VB script</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853660#M1719</link>
      <description>Hi all,&lt;BR /&gt;I try to write a VB script that disables the alarm clock on a AMT 5.1 system. I pasted it below. But when I call Put, I get an Object required error message. I checked the msdn documentation for Session.put, and the example they give work, but mine doesn't, although it is very similar. Does anybody know what's wrong with it?&lt;BR /&gt;&lt;BR /&gt;Christoph&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim WSMan&lt;BR /&gt;Dim Session, Options, iFlags&lt;BR /&gt;Set WSMan = CreateObject( "WSMAN.Automation" )&lt;BR /&gt;&lt;BR /&gt;iFlags = WSMan.SessionFlagUseDigest Or _&lt;BR /&gt;WSMan.SessionFlagCredUsernamePassword Or _&lt;BR /&gt;WSMan.SessionFlagUTF8&lt;BR /&gt;&lt;BR /&gt;Set Options = WSMan.CreateConnectionOptions&lt;BR /&gt;Options.Username = "admin"&lt;BR /&gt;Options.Password = "P@ssw0rd"&lt;BR /&gt;&lt;BR /&gt;Set Session = WSMan.CreateSession("http://192.168.1.100:16992/wsman", _&lt;BR /&gt;iFlags, Options)&lt;BR /&gt;&lt;BR /&gt;strResource = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AlarmClockService"&lt;BR /&gt;&lt;BR /&gt;Set objResultSet = Session.Put( strResource, "&lt;AMT_ALARMCLOCKSERVICE xmlns="" =""&gt;&lt;CREATIONCLASSNAME&gt;AMT_AlarmClockService&lt;/CREATIONCLASSNAME&gt;&lt;ELEMENTNAME&gt;Intel AMT Alarm Cloc&lt;BR /&gt;k Service&lt;/ELEMENTNAME&gt;&lt;NAME&gt;Intel AMT Alarm Clock Service&lt;/NAME&gt;&lt;SYSTEMCREATIONCLASSNAME&gt;CIM_ComputerSystem&lt;/SYSTEMCREATIONCLASSNAME&gt;&lt;SYSTEMNAME&gt;ManagedSystem&lt;/SYSTEMNAME&gt;&lt;/AMT_ALARMCLOCKSERVICE&gt;" )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;While Not objResultSet.AtEndOfStream&lt;BR /&gt;Wscript.Echo objResultSet.ReadItem&lt;BR /&gt;Wend</description>
      <pubDate>Wed, 22 Apr 2009 14:01:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853660#M1719</guid>
      <dc:creator>Christoph_J_Intel</dc:creator>
      <dc:date>2009-04-22T14:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Object required in VB script</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853661#M1720</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/261210"&gt;Christoph Jechlitschek (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi all,&lt;BR /&gt;I try to write a VB script that disables the alarm clock on a AMT 5.1 system. I pasted it below. But when I call Put, I get an Object required error message. I checked the msdn documentation for Session.put, and the example they give work, but mine doesn't, although it is very similar. Does anybody know what's wrong with it?&lt;BR /&gt;&lt;BR /&gt;Christoph&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim WSMan&lt;BR /&gt;Dim Session, Options, iFlags&lt;BR /&gt;Set WSMan = CreateObject( "WSMAN.Automation" )&lt;BR /&gt;&lt;BR /&gt;iFlags = WSMan.SessionFlagUseDigest Or _&lt;BR /&gt;WSMan.SessionFlagCredUsernamePassword Or _&lt;BR /&gt;WSMan.SessionFlagUTF8&lt;BR /&gt;&lt;BR /&gt;Set Options = WSMan.CreateConnectionOptions&lt;BR /&gt;Options.Username = "admin"&lt;BR /&gt;Options.Password = "P@ssw0rd"&lt;BR /&gt;&lt;BR /&gt;Set Session = WSMan.CreateSession("http://192.168.1.100:16992/wsman", _&lt;BR /&gt;iFlags, Options)&lt;BR /&gt;&lt;BR /&gt;strResource = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AlarmClockService"&lt;BR /&gt;&lt;BR /&gt;Set objResultSet = Session.Put( strResource, "&lt;AMT_ALARMCLOCKSERVICE xmlns="" =""&gt;&lt;CREATIONCLASSNAME&gt;AMT_AlarmClockService&lt;/CREATIONCLASSNAME&gt;&lt;ELEMENTNAME&gt;Intel AMT Alarm Cloc&lt;BR /&gt;k Service&lt;/ELEMENTNAME&gt;&lt;NAME&gt;Intel AMT Alarm Clock Service&lt;/NAME&gt;&lt;SYSTEMCREATIONCLASSNAME&gt;CIM_ComputerSystem&lt;/SYSTEMCREATIONCLASSNAME&gt;&lt;SYSTEMNAME&gt;ManagedSystem&lt;/SYSTEMNAME&gt;&lt;/AMT_ALARMCLOCKSERVICE&gt;" )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;While Not objResultSet.AtEndOfStream&lt;BR /&gt;Wscript.Echo objResultSet.ReadItem&lt;BR /&gt;Wend&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Christoph! I have asked Lance to take a look at this one since he is our Alarm Clock expert!</description>
      <pubDate>Wed, 22 Apr 2009 15:27:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853661#M1720</guid>
      <dc:creator>Gael_H_Intel</dc:creator>
      <dc:date>2009-04-22T15:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Object required in VB script</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853662#M1721</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334712"&gt;Gael Holmes (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hi Christoph! I have asked Lance to take a look at this one since he is our Alarm Clock expert!&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Christoph, can you put a check in to see whether the Session object is getting created successfully? The arguments in your Session.put look okay to me, but I'm wondering if there was an issue with the Session object itself getting created.</description>
      <pubDate>Wed, 22 Apr 2009 16:51:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853662#M1721</guid>
      <dc:creator>Andrew_S_Intel2</dc:creator>
      <dc:date>2009-04-22T16:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Object required in VB script</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853663#M1722</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
It seems like it may be a WS-Man issue and I've asked Randy to take a look.&lt;BR /&gt;&lt;BR /&gt;From an Alarm Clock perspective, to clear/disable the alarm you should just need to call PUT with null arguments. The only thing I can think of to try is adding the arguments for the start time and interval, but not put any values with them.</description>
      <pubDate>Thu, 23 Apr 2009 04:28:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Object-required-in-VB-script/m-p/853663#M1722</guid>
      <dc:creator>Lance_A_Intel</dc:creator>
      <dc:date>2009-04-23T04:28:09Z</dc:date>
    </item>
  </channel>
</rss>

