2003 and XP startup grief
October 31, 2007 3:28 PM
Subscribe
Windows 2003 startup scripts. I have a little program, I want to run it on startup, my administration has helped .. a bit. I can't make it work. I've tried everything, any fresh ideas?
Thanks for clicking, I'll try and be brief. I'm in a highly locked-down Windows XP and 2003 server environment run by techs who are too distracted and busy to help much. I have written a piece of management software for the workstations in VB.NET. I want to deploy it to 20 workstations as a beta test. It is an executable that needs to run on startup on a machine rather than a user basis (lots of different users on these few test machines). Installation is not a problem - it just needs to be called on startup, every time.
The techs have allowed me to run a batch file on startup which is called from the Win 2003 server logon scripts - which are themselves batch files that they run to set up shares etc. This is controlled from the group policy (here I get lost). Perfect, you would think, *but* - either my program runs and nothing else does (ie: because it doesn't terminate and 'go away' the workstation hangs and the user can't do anything until I kill my program) - or, if I try and shell - using shellexec from a program or 'start' or any other shell or spawn trick, nothing happens, my program appears to run and then just disappears - I can't see it and it can't see me.
I should add that manually, from the command prompt everything is fine, I can shell and return to the user with my program running perfectly.
Any ideas? The whole environment is somewhat over-managed - I can't go near the registry, can't write to important parts of the hard disk and there is no startup folder. I also need to keep things very simple for the techs, who at any minute might get fed up and just tell me to get lost. I don't want to get into deployment and policies with them, making official changes on the network takes months, if it happens at all (it very seldom does). They have quietly slipped me this batch file, this opportunity. How can I use it just to load a simple program?
I can of course make any change I like to the program. If there were an equivalent of the old 'Terminate and stay resident' call, that might do it. VB.NET 2005.
Sorry to go on. I've put a lot of work into this and am near despair. I've Googled to death. Any ideas?
posted by grahamwell to computers & internet (10 comments total)
posted by JaredSeth at 3:37 PM on October 31, 2007