|
Here's my dilemma. In order to understand it better let me just tell you what I want the result of the task to be:
Kill all processes EXCEPT the ones I tell you not to kill.
I wan't to use the pslist & pskill (both by sysinternals.com) utilities to accomplish this task but using a batch file to automate the procedure. Basically I want to somehow parse the output of pslist.exe and feed it to the pskill.exe utility in such a way that I can terminate all the processes in memory EXCEPT a few predefined ones such as "svchost.exe" obviously. Get it? Is this possible to do in a simple batch file or will this shiznit require some more thought?
Please let me know if you can help. Much appreciated.
~|~
"Do not worry about your difficulties in mathematics, I can assure you mine are still greater" -Albert Einstein
|
|
|
|
|
|
Oh my god I can't believe the solution was this simple! Thanks I'll try this out in a few days!
thanks again =)
|
|
|
|
|
A client PC on the work network went south this week - no apparent reason. The setup: a Win2K Server with 6 clients, in a domain with Active Directory. All clients are fairly new Dells running WinXP SP2. The server is a Dell Xeon blade server updated to SP4. All clients are configured more or less identically, using automatic settings for TCP/IP. One, however, can't acquire IP settings from the DHCP server. I set the IP configuration manually. It can't reach the Internet, it can't log on to the domain. It can ping every other device on the network (except the Internet gateway, a Linksys router), and browse the network - including the server - but it can't be pinged from any other host. Nslookup from the client reports no DNS server can be reached, yet it can access and copy files on the server running DNS, and no other client has trouble accessing the DNS service.
I think I can rule out a DHCP or DNS failure, and there is clearly nothing wrong with the physical link. The DHCP and DNS client services are up and running, but NETLOGON occasionally refuses to start. SFC doesn't report any damaged system files. I'm stumped.
Any suggestions before I roll back the configuration to an earlier date?
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Roger Wright wrote:
All clients are configured more or less identically, using automatic settings for TCP/IP. One, however, can't acquire IP settings from the DHCP server
Check your DHCP server, whether there is no IP available for the client??? If so, try to increase the scope of your DHCP server.
Roger Wright wrote:
It can't reach the Internet, it can't log on to the domain. It can ping every other device on the network (except the Internet gateway, a Linksys router)
As far as I know, router is block the broadcast signal of the machine when it broadcast for DHCP server. In that case mean the router is in the middle of the client and DHCP server. In order to solve that you must have DHCP relay agent to manage the broadcast signal and get an IP address from DHCP server.
One more thing, try to check your subnet mask after you change it to static IP address. Whether it point to the right class or not.
Good luck
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
All clients, except this one, are working perfectly. All IP settings are correct. The DHCP server has a scope large enough to handle the whole Indian tribe, more than enough for 7 PCs in my little company. I suspect that something has corrupted the networking software (I did remove 1396 spyware/adware objects from it a few weeks ago), and under an earlier version of Windows I would remove and reinstall networking. WinXP doesn't allow this, however.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
How about router? Do you have router in the middle of DHCP server and client or not? If so, then you will need DHCP relay agent between the client and the router because without DHCP relay agent, router will block broadcast signal from the client to DHCP server during the time that client request an IP address from the DHCP server.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I have an MFC application that needs to open up to 2500 threads. I wrote a quick benchmarking app to find where the limit is on various OS's and configurations. On my work PC (Windows XP Pro SP2, 1.7MHz, 512MB RAM), the limit is 2008 threads. On an older NT PC, it was 1017, and on a newer Server 2003 PC (1GB RAM) the limit was 2015. I've tried changing the stack space allocated in AfxBeginThread. The numbers don't change. I always have plenty of physical memory still available after the limit is reached.
Is there a resource limit per process? Any other ideas?
|
|
|
|
|
codingmom3 wrote:
I have an MFC application that needs to open up to 2500 threads.
You're kidding, right? OK, assuming not, threads aren't free. Each thread gets a 1 MB stack, so once you open approximately 2000 threads, you will have exhausted your 2GB process space. Even if you change the stack size, the OS keeps internal data structures for each thread, which again use up process space. This has nothing to do with how much RAM is in the box, virtual memory is not the same as physical memory.
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Hi guys is there anyone that use Windows 2003 server with MS SQL 2000 server.
Is MS SQL 2000 server compatible with this OS?
Thank YOU!!!
|
|
|
|
|
Yes, it is. When you try to install SQL Server, Windows Server will produce a warning message telling you to upgrade to SP3. You should still be able to complete the installation. You should then apply Service Pack 3 and the MS03-031[^] security patch. If you decide to apply this patch you should also consider applying the patch in KB 826161[^] to your Enterprise Manager installations. This patch fixes an issue where Enterprise Manager prompts for a new password when you make changes to a SQL Server login.
See also the KB article "Windows Server 2003 Support for SQL Server 2000"[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I now could get the usb controller device's SymbolicLink through the setupdixxx functions with the USB CONTROLLER device's GUID and also could get the usb controller's attributes,like: PID and VID.But this symbolicLink could NOT use in the CreateFile to get the usb disk's handle.
On the other hand, I also could get the usb disk's handle through the setupdixxx functions with the DISK device's GUID, But i cann't get the PID and UID through this handle!!
So my first problem is: how can i get the special usb DISK's handle.For example: a SONY usb disk and a Samsung usb disk are both plug on my pc. And i just want to get SONY disk's handle,not the Samsung usb disk.What should I do?
Second problem is: althrough I could get the usb DISK's handle, I could not get it's disk name,like "H:". Which function could help me to do that?
Pls, I really need some help.
Thank you very much.
|
|
|
|
|
Try to check this function[^], it might give you some idea.
|
|
|
|
|
Hi, I wonder one problem. I have a 2 PC name PC1 and PC2 . I have a share folder on PC1 with grand permission to Everyone and Read Permission. So when I mapped the drive from PC2 and access the file, it could read only and could not change anything.
But at the same time, I come back to the PC1 and change the permission on PC1 (and PC2 did not log off) that allow Everyone with Full control . Then I try to make change to the file and save but it is not allow. It said that I have the read permission only. But when I log PC2 off and log on again, I could do anything in the mapped drive (such as read, write, delete...).
From here, my question is: why do I need to log off PC2 after the PC1 change the permission??? The similar question is, why windows need to restart after we install some application???
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
The man from SCN-CO wrote:
why do I need to log off PC2 after the PC1 change the permission???
A mapped share is treated as a virtual local drive by Windows. I suspect that the drive attributes are only read at the time the connection is made, and are not refreshed on subsequent file access attempts.
The man from SCN-CO wrote:
why windows need to restart after we install some application???
Some applications provide new versions of system files that must be reloaded into memory before they are usable, and many include controls that must be registered. Also, changes made to the registry do not take effect until the registry files are reloaded. Rebooting accomplishes the refresh.
Matters have improved considerably; on older versions of Windows a reboot was required every time a setting was changed. When Win2K was launched, Microsoft made a major production of the fact that there were only five things one could do to Windows 2000 that require a restart! Much cheering ensued...
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Thank you very much for your comment, that make me a have some concept about it why windows need to restart or logoff to take it affect.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
About VPNs.
I have a domain at work with a Win2K Server and WinXP clients, and a standalone server that is not a member of a domain at home running Win2K Server. The work network is connected to the Internet via a free-standing Cisco Wireless Bridge. The home server is configured to accept incoming RAS connections from me, but no one else, and is connected to the Internet via a dedicated 802.11b radio link to my ISP. I successfully connected from my client at work today using PPTP and a WAN NDIS adapter, but accomplished little else. Two problems surfaced that I have no idea how to approach:
1. While connected, I was unable to connect to the Internet from my work client. As soon as I disconnected, Internet service returned to normal.
2. While connected to the VPN link, I could not browse anything on my home server, even though many folders are shared and the connection displayed normal background broadcast traffic volume between the hosts. I expected my computer and its shares to appear in My Network Places, but they never did.
I can live with #1 if I have to, but I need to be able to access and run software at home from the remote location. I can't very well do that if I can't "see" what's on my home server, so #2 is critical. Any clues would be most welcome. Take your time - I'll be here all weekend. And thanks, all, for any guidance.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Roger Wright wrote:
1. While connected, I was unable to connect to the Internet from my work client. As soon as I disconnected, Internet service returned to normal.
Try to check the product documentation with your cisco product, i'm not sure too but did you have any firewall service to block the internet port??? Another way is check the port of your HTTP or FTP whether it is allow to accept the connection or not (try check at the property TCP/IP filtering of your network connection).
Roger Wright wrote:
2. While connected to the VPN link, I could not browse anything on my home server, even though many folders are shared and the connection displayed normal background broadcast traffic volume between the hosts. I expected my computer and its shares to appear in My Network Places, but they never did.
I used to have the same problem like you too. But I did not figure out what is main problem (maybe the slow internet connection). In my opinion, if it is possible try to use Distribute File System (DFS) of an FTP site from your home computer. Sometime to solve the problem, I have to point the path from windows explorer by using the UNC path.
Hope this comment would give you some idea. You still have any problem please let me know.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Problem 1.) is explainable in retrospect - my client at work has its one NIC directly connected to my home computer via an encrypted tunnel. That means that all traffic, including http requests, is pumped into the tunnel and never reach the Internet per se. All packet go directly to my home server. There is a way to configure a split tunnel that I have yet to find, but I'm searching...
Problem 2.) has nothing to do with DFS or FTP - the FTP server is working great. It is more likely related to WINS, as I am unable to browse. Attempting to initiate browsing using the UNC name \\MAIN can't work if WINS is unable to resolve the name to an address. It's really annoying that, years ago, I was able to enter the IP address of my work server from home and instantly browse (and print a message to my boss) without using any fancy, secure VPN connections. I just added a new Network Place, typed in the address, and all the shares on the company server were available for browsing and editing/stealing. Now that I'm trying to do it the "right" way it becomes impossible.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
|
The first time I was going to give you a 'B', but never mind.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
|
|
|
Hi,
I'm administering this application (written in C++ with ATL) running under IIS 5. Sometimes (the provider doesn't yet know why), it throws an unmanaged exception. So Windows "kills" the process...well, watching the corresponding DLLHOST process with the Process Explorer, Windows unloads every dll loaded in the DLLHOST process, but it leaves the process "alive" with this files:
Unicode.nls
Locale.nls
Sortkey.nls
Sorttbls.nls
Ctype.nls
R000000000967.clb
The problem is that I've to kill the process with Task Manager, because even if I take the site down, IIS doesn't wipe this process. And what is the worst: IIS keeps receiving connections for this process, so if I didn't realize that the application was hung, connections keep increasing and lowering the server performance.
I would appreciate a hint about why Windows doesn't completely clean this DLLHOST process after the unmanaged exception.
Thanks,
Federico
|
|
|
|
|