Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Win32::OLE and Task Scheduling - Invalid Query

by Corion (Patriarch)
on Oct 21, 2018 at 09:50 UTC ( [id://1224402]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (10000..10001) {
        die Win32::OLE->LastError() unless (push @Triggers, $TriggerSet->C
    +reate(0));
    ...
      unless (my $values = $Triggers[$#Triggers]->ValueQueries->Create("ev
    +entId", "Event/System/EventID"));
        $Triggers[$#Triggers]->{Enabled} = 1;
    }
    
  2. or download this
        $Triggers[$#Triggers]->{Id} = $_;
    
  3. or download this
    
        <Query Id="$_" Path="Microsoft-Windows-NetworkProfile/Operational"
    +>
    
  4. or download this
    warn "Testing query";
    $RootFolder->RegisterTaskDefinition("OLE-Test",$TaskDefinition,1,undef
    +,undef,3);
    warn "Query OK, installing task";
    $RootFolder->RegisterTaskDefinition("OLE-Test",$TaskDefinition,6,undef
    +,undef,3);
    print Dumper $TaskDefinition->{XmlText};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1224402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found