here is another handy script if you have long polling time set on the channel and quickly want computers to poll the channel.
//Janne
'Author Janne Carlsson 'Simple script to make a range of computers poll their channel'You need admin status on the remote computers. 'In prism console do a computer status report and sort on example attended and export to excel'use the function Auto filter on for example the colum client status to get the machine attended copy the list of computernames to an txt file'save it as computers.ini in folder "C:\Script\Prism"''Cmdfile the file that executes on remote computer'inifile the file that contains computernames to do the poll'psexecfile the location of psexec ''The script uses psexec from pstools by http://www.systeminternals.com/'Script start'Path to files used by the scriptpsexecfile = "C:\Script\Prism\psexec.exe"cmdfile = """C:\Program Files\Script\pollchannel.cmd"""inifile = "C:\Script\Prism\computers.ini"''random function so that not overload the serverintMax = 1 'secondsintMin = 5 'secondsRandomizeintWait = Int((intMax - intMin + 1) * Rnd + intMin)'Set WshShell = WScript.CreateObject("WScript.Shell")Set objFS=CreateObject ("Scripting.FileSystemObject")set listFile = objFS.OpenTextFile (inifile)
do while listFile.AtEndOfStream <> True computer1 = (listFile.ReadLine) run = WshShell.run ( psexecfile & " " & "\\" & computer1 & " -i -n 5 " & cmdfile) 'WScript.Echo( psexecfile & " " & "\\" & computer1 & " -i -n 5 " & cmdfile)'Wait abit WScript.Sleep intWait * 1000Loop
wscript.echo "Finished"