|
Thanks for the info but still doesnt seem to work. Its weird cause when the pause and resuming of services works then there is no problem. Its only an issue if the service takes too long to reach the desired state that the issues arise.
The way ive coded it tells the app to kill the service if it has not reached the desired state within a specified amount of time. Running the app on various other machines works fine and even works fine when running the app manually on the win 2k3 box. Its only when it runs as a batch process do the issues arise. Any other ideas?
|
|
|
|
|
Its due when wrote:
Its weird cause when the pause and resuming of services works then there is no problem
Can you tell me, what is the command that you use to start/stop/pause the service? Net start/stop or Sc query command?
Its due when wrote:
The way ive coded it tells the app to kill the service if it has not reached the desired state within a specified amount of time
If it is possible, could you post some piece of your code on this forum?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
"Can you tell me, what is the command that you use to start/stop/pause the service? Net start/stop or Sc query command?"
- I've written my own start/stop/pause resume command. This was primarily based on the article and code from http://www.microsoft.com/msj/0298/service.aspx[^]
The "kill" function is just a call to the "kill.exe" NT resource utility and is activated by a simple if statement specifying a timeout period.
|
|
|
|
|
have you checked what user the schedule runs as, and if that user has permissions to run the kill command?
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
If you whant to dirctly call the kill command
use system("kill blahblahbla"); command.
|
|
|
|
|
Well you could use signals from the
signal.h that will mean
manule sending a sig.
And I think the kill command
is a admin only command I think.
You could trie to some how create
your own kill function by scratch whitch
will take more time.
|
|
|
|
|
I am using code like this:
WindowsPrincipal winprince = new WindowsPrincipal(WindowsIdentity.GetCurrent());
if(winprince.IsInRole(@"cmp\Manager"))
return true;
else
return false;
To determine if a user is in a specific role. My problem is I don't know how all this works and it is taking hours for a user's role to propagate from Active Directory to their local machine. I thought having the user log out and log back in might help but it doesn't.
Can someone help explain how this works and why it is taking so long for the user's roles to work? (And it eventually does. I have it working for a few user's but as I add more roles or current users to additional roles I run into this problem...)
Regards,
KB
|
|
|
|
|
As I've watched the process of installing Windows 2003/run Windows Update/Install SQL Server, etc. on my test server for most of the afternoon, I find myself *REALLY* wanting a backup utility that could image the clean system at the end of this process onto a bootable DVD so that I could restore to the initial installed state simply by booting from that DVD and saying GO!
I've used an older version of Ghost and image storage on a network file server at my old job, and while that worked reasonably well the new version of Ghost I have with Norton Utilities just hangs my systems when it tries to boot. I've looked around a bit (i.e. googled) and found relatively few options. Is anyone doing anything like this, and what are you using?
|
|
|
|
|
:-DDoes anyone know how I can stop the header of files being indexed? I have a website running on templates and many of the headers are the same and contain a number of keywords. This renders the search almost useless for certain highly prevalent keywords. Is there anyway I can specify only the body of the file to be indexed ? Thanks!
|
|
|
|
|
Can anybody tell me what virtual memory implementation actually means? what is the difference between overlays and swapping? what is segmentation and paging?
|
|
|
|
|
There is a decent explanation available here[^] in the form of a PowerPoint presentation. You'll need PowerPoint or the free viewer from Microsoft to view it.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Virtual Memory is basically that the operating system presents the application with a flat address space, any of which can be accessed at any time and any amount can be used, regardless of how much physical memory is present. If the demand for physical memory gets too great, the system discards data not used recently, writing it to disk if necessary. If that data is then accessed, the system automatically reloads it somewhere in physical memory, then updates the virtual memory map to point to that physical memory.
Overlays are sections of program that can be loaded in, under program control, while the program is running, replacing other parts of the program. Many DOS apps made use of overlays to cram programs bigger than available memory (I recall Microsoft Works used overlays). Swapping is where the operating system shuffles pieces of program around in memory, loading from disk and discarding as necessary, without notifying the program that this is happening.
Segmentation and paging are two different sorts of swapping. Segmentation works on programmer-declared variable-size portions of a program called segments. Paging works on fixed size portions of programs or data called pages. The difference is that it's easier for the OS to locate blocks of memory if they're all the same size, making paging more predictable, but at the cost of the program incurring multiple swap operations to bring in a given piece of functionality (each different page hit causes the processor to raise a page fault exception, which causes the OS to locate that data, whereas if segmentation is used, the whole segment could be brought in).
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
i hav linux,winxp and win98 installed on my pc .. i few days bak i formated my winxp drive and reinstalled it.. but now the problem is tat i have lost the grub.. now i am directly given the option to load xp or 98 but the linux grub is not being shown at load time
can any body help me
regards
|
|
|
|
|
Use your Linux boot floppy or rescue CD to start Linux and re-install grub with the grub-install command.
|
|
|
|
|
I am trying to install the bluetooth device driver from a third party vendor to the WinXP service pack 2. I encounter a conflict of bluetooth device driver from the Microsoft Bluetooth emulator. Has anyone enountered this problem? Can help?
Han
|
|
|
|
|
Can you post an error message on this board? It is easy for us to search for the problem.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
i solve the problem. first with the bluetooth dongle plugged in i remove the device and the emulator from the device manager. Then I rename the inf file. Reboot and reinstall the third party software. And it works. Thanks pal
|
|
|
|
|
Hi, I found that morphix linux boot CDROM[^] could run without install any file on the hard disk drive. But I want to know are there any version of windows could run directly from the CDROM without install it on the hard drive too?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
|
Thank you very much Michael, On the other hand, I found a product on the market call Windows Preinstallation Environment (Windows PE). Is it work the same thing like the above hyperlink that you give to me or not???
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
See the "What is the difference between BartPE and Microsofts WinPE?" section on the BartPE page.
--
I'm Michael Dunn and I approve this post.
Vote Trogdor in oh-four!
|
|
|
|
|
Hi, can any one give me a short explaination about Windows Pre-installation Environment? I want to know what is it? and why we should use it?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
How do you write a boot-time utility for Windows 2k / XP?
By this I mean tools like chkdisk, partition magic and some defragmentation tools – that appear in a console-style window before the logon screen, allowing them to move around system files and do things without the system having many locks on files.
I’ve hunted around a bit and can’t find any guides, set of apis or anything open-source that would help. It would make great fodder for an article if anyone could see there way to writing one.
Specifically I think it would be quite an interesting exercise (!) to be able to write a defragmenter that runs at this time.
Really I would like to know how to write this kind of utility because I believe it would be a useful thing to know really!
/**********************************
Paul Evans, Dorset, UK.
**********************************/
|
|
|
|
|
You must use the native api. Look for some explenation on sysinternals[^]
Wout Louwers
|
|
|
|
|
That seems to be a post-logon-time defragger, rather then a while booting one. Nice link though.
|
|
|
|