Unable to run NetScan using task scheduler
Started by Tom Ryans
Tom Ryans
Unable to run NetScan using task scheduler 14 June 2014, 01:58 |
I can verify that the task started since netscan.exe appears in the task manager but after days of waiting it never finishes. Since the task scheduler uses a lower priority than applications run manually, I tried changing the task to run with a higher priority but that did not fix the issue either. I have no clue what the problem is since it runs perfect every time I run the batch file/powershell script manually. What could be causing this issue?
I would greatly appreciate any help!
Re: Unable to run netscan using task scheduler 14 June 2014, 14:13 |
Admin Registered: 18 years ago Posts: 3 518 |
Most likely if you have not supplied a configuration file, it will start with a default configuration and hang at the message box
Since there is no desktop, it might hang there indefinitely. I guess we'll need to a check in the code whether an interactive desktop is available.
Casey Rauth
Re: Unable to run netscan using task scheduler 17 June 2014, 02:50 |
Start-Process -FilePath "D:\netscan\netscan.exe" -ArgumentList '/hide /config:d:\netscan\config.xml /auto:"d:\netscan\temp.xml"' -Wait -NoNewWindow
As he mentions, it works when running the script manually, but will hang indefinitely if run as a scheduled task.
Uli
Re: Unable to run NetScan using task scheduler 05 August 2014, 16:58 |
Re: Unable to run NetScan using task scheduler 09 August 2014, 18:59 |
Admin Registered: 18 years ago Posts: 3 518 |
Carlo
Re: Unable to run NetScan using task scheduler 07 February 2015, 02:30 |
Re: Unable to run NetScan using task scheduler 08 February 2015, 10:17 |
Admin Registered: 18 years ago Posts: 3 518 |
Carlo
Re: Unable to run NetScan using task scheduler 10 February 2015, 03:06 |
Re: Unable to run NetScan using task scheduler 10 February 2015, 11:22 |
Admin Registered: 18 years ago Posts: 3 518 |
Carlo
Re: Unable to run NetScan using task scheduler 12 February 2015, 18:03 |
Below is the command i use to launch netscan on a batch file:
start /wait %~dp0\64-bit\netscan.exe /hide /range:%Range% /Config:CONFIG.xml /auto:%~dp0\Dati\%FILE%.csv
I test it on Windows 2008 (64bit), Windows 2008 R2 and Windows 2012
Same batch work with netscan version 5.5.12, but not work with version 6.0.3
Re: Unable to run NetScan using task scheduler 12 February 2015, 22:51 |
Admin Registered: 18 years ago Posts: 3 518 |
Carlo
Re: Unable to run NetScan using task scheduler 13 February 2015, 20:55 |
And yes, my batch file work fine when launched manually.
below you can find my batch file:
@echo off set Range=192.168.1.1-254 Set File=xxx cls IF EXIST %~dp0\Dati\%File%.csv ( IF "%PROCESSOR_ARCHITECTURE%"=="x86" ( @echo Merge 32 Bit start /wait %~dp0\32-bit\netscan.exe /hide /range:%Range% /Config:STD-ZUC.xml /auto:%~dp0\Dati\%file%.csv /Merge ) ELSE ( @echo Merge 64 Bit start /wait %~dp0\64-bit\netscan.exe /hide /range:%Range% /Config:STD-ZUC.xml /auto:%~dp0\Dati\%file%.csv /Merge ) ) ELSE ( IF "%PROCESSOR_ARCHITECTURE%"=="x86" ( @echo New 32 Bit start /wait %~dp0\32-bit\netscan.exe /hide /range:%Range% /Config:STD-ZUC.xml /auto:%~dp0\Dati\%file%.csv ) ELSE ( @echo New 64 Bit start /wait %~dp0\64-bit\netscan.exe /hide /range:%Range% /Config:STD-ZUC.xml /auto:%~dp0\Dati\%file%.csv ) )
Re: Unable to run NetScan using task scheduler 13 February 2015, 21:22 |
Admin Registered: 18 years ago Posts: 3 518 |
Carlo
Re: Unable to run NetScan using task scheduler 14 February 2015, 02:15 |
Re: Unable to run NetScan using task scheduler 16 February 2015, 10:57 |
Admin Registered: 18 years ago Posts: 3 518 |
Grab the Process Monitor, set it to monitor I/O actvity from netscan.exe and see if that sheds light on the issue.
John
Re: Unable to run NetScan using task scheduler 13 March 2015, 06:12 |
Re: Unable to run NetScan using task scheduler 13 March 2015, 12:46 |
Admin Registered: 18 years ago Posts: 3 518 |
Re: Unable to run NetScan using task scheduler 13 March 2015, 23:50 |
Registered: 9 years ago Posts: 4 |
John
Re: Unable to run NetScan using task scheduler 14 March 2015, 02:10 |
In Version 6.03 and 6.04 we have the same behaviour as described from other editors before.
In the console the batch is working perfectly. But asa the batch is started by the taskplanner, it runs forever. Stopping the taskplanner - the batch process is killed immediately, the netscan.exe process is still active by doing nothing. I've tried several parameter to start the netscan process in the batch as well as different attributes of the task.
System: 2008R2 - German
Different batch commands used:
- Start /Wait netscan.exe /hide /config:%SysMonID%.xml /auto:%SysMonID%_Results.xml
- Start /Wait netscan.exe /config:%SysMonID%.xml /auto:%SysMonID%_Results.xml
- netscan.exe /hide /config:%SysMonID%.xml /auto:%SysMonID%_Results.xml
- netscan.exe /config:%SysMonID%.xml /auto:%SysMonID%_Results.xml
Different Taskplanner attributes used:
- hidden
- not hidden
All netscan options - incl. the IP range - are saved from the GUI
AutoUpdate was switched off and verified in the saved XML File
King regards from Hamburg
John
Re: Unable to run NetScan using task scheduler 15 March 2015, 18:04 |
Admin Registered: 18 years ago Posts: 3 518 |
Then there will be a log file in
c:\Users\Public\Documents\netscan.log
or
C:\Documents and Settings\All Users\Documents\netscan.log
Please post it here or upload via our support form.
Re: Unable to run NetScan using task scheduler 16 March 2015, 05:59 |
Registered: 9 years ago Posts: 4 |
Re: Unable to run NetScan using task scheduler 16 March 2015, 10:49 |
Admin Registered: 18 years ago Posts: 3 518 |
Re: Unable to run NetScan using task scheduler 16 March 2015, 22:36 |
Registered: 9 years ago Posts: 4 |
Re: Unable to run NetScan using task scheduler 17 March 2015, 12:25 |
Admin Registered: 18 years ago Posts: 3 518 |
Re: Unable to run NetScan using task scheduler 17 March 2015, 21:31 |
Registered: 9 years ago Posts: 4 |
John
Re: Unable to run NetScan using task scheduler 19 March 2015, 04:30 |
Re: Unable to run NetScan using task scheduler 29 January 2016, 18:58 |
Registered: 8 years ago Posts: 4 |
In first, many thanks for this famous free software!
However i have exactly the same problem with the last netscan version (v6.1.0.0 32 and 64 bits). In the console the batch is working perfectly. But when the batch is started by the taskplanner (in .bat), it runs forever... And it's very hard to find previous version. Someone with the same problem here?
Thanks all!
Re: Unable to run NetScan using task scheduler 29 January 2016, 19:14 |
Admin Registered: 18 years ago Posts: 3 518 |
Re: Unable to run NetScan using task scheduler 29 January 2016, 19:28 |
Registered: 8 years ago Posts: 4 |
Re: Unable to run NetScan using task scheduler 30 January 2016, 18:08 |
Admin Registered: 18 years ago Posts: 3 518 |