windows-server-2003

How can a windows service programmatically restart itself?

I need to write robust code in .NET to enable a windows service (server 2003) to restart itself. What it the best way to so this? Is there some .NET API to do it? ...

Can't find windows share despite having connected VPN

I'm a programmer dammit, I should be allowed to ask these kinds of IT questions! :) Anyway the problem is as follows. I'm writing an automatic build script to deploy code to a live windows 2003 server. To get access to the server I enabled the VPN role, and I can connect to it remotely from my dev machine using a username and password I...

Procedure for Migrating SBS2003 From POP3 Connector

We are going to migrate our SBS2003 server from downloading e-mail via the POP3 connector to getting e-mail sent directly to the server via SMTP. The static IP address is already setup and working. Following is the procedure I've come up with. Did I miss anything, or have anything unnecessary? • Preliminary Setup (several days befor...

Another Synergy issue: screen lock on Windows Server 2003

I have set up Synergy on Unix systems with no problems, however when I set up a Synergy server on a Windows Server 2003 box using I get an error message that the mouse cursor is locked when trying to move to the client system. I use a Microsoft Natural keyboard in case that matters (seems Scroll Lock might be involved). Does anyone hav...

How do I programmatically get a list of locked files under a folder structure?

Following up from this question: How can I unlock a file that is locked by a process in .NET, how do I programmatically get a list of files that are locked in a particular folder and its subfolders? I'm using Windows 2003, .NET 3.5, C# 3.0. Update: some background... basically we're archiving closed websites on a shared server. After d...

I'm getting blank pages instead of error messages using classic ASP, IIS6 and WinServer 2003 R2

We have an old system running on a WinServer2003 R2 - IIS6 and it was written using classic ASP. We need to trap all errors and for that, I configured IIS to redirect 404s and 500s to a custom page (custom errors config) that writes the info to a log file (this page creates and manages the logs). Here is the weird thing: The first time...

Application Pools not starting after iisreset

Before I start, I know using iisreset is considered bad practice, but this shouldn't happen anyway.. What we have: Several machines with IIS6 on Windows Server 2003 R2 (both 64 and 32 bits) Several WCF webservices (.NET runtime 2.0) deployed in several applications, each with it's own application pool, each application pool running un...

Team foundation and 64-bit windows, can't install?

Hi, So is it a certified answer that you can't install Team foundation on windows 2008 64-bit? Update Is it better just do install it on windows 2003 or 2008? ...

SetSystemFileCacheSize and RtlCompressBuffer

I have a problem where the system cache grows too big such that my server applications do nt have enough free RAM. This is a known issue in 64-bit Windows Server 2003. Using SetSystemFileCacheSize API works to limit the max size of the system file cache, BUT, when it is limited, then suddenly a system thread starts up running RtlCompre...

Best tools for testing bulk emailing in .net?

Scenario is that we send out thousands of emails through SMTP server. Content is created in advance and picked up when sent. The thing is we want to find where our bottlenecks are in production environment and where work needs to be done. Goal is to be able to send half a million emails in ten minutes*. Should we create dummy email...

What is the best Event Log viewer for windows 2003 server?

I'm Looking for a free or open source Event Log viewer on windows 2003 server with these capabilities 1.Remote log view 2.Filter and search 3.Popup notification of a new Log entry in windows Taskbar any recommendations? ...

Why is the storage for MSMQ full when the queues themselves are empty?

A QA server of mine which has not given me any flack for a while started giving my applications errors because they could not write to a queue. MSMQ specifically threw a message saying "Insufficient resources to perform operation". A check of the queues themselves indicate that they are empty, with zero messages each. A check of the li...

Is it possible to forward all traffic to an IP Address?

we have a old and dying dedicated server. we want a new one at a new datacenter. we have a bunch of sites using the current server and don't have control of all their DNS. is there an easy way to redirect all the traffic from xx.xx.xx.xx to zz.zz.zz.zz without updating DNS records? Thanks. ...

A user with Local Admin + NETWORK SERVICE permissions for Windows Sharepoint Timer Service

Is it possible to create a user with permissions of both a local administrator and NETWORK SERVICE? I've got a Sharepoint timer job which runs stsadm for which it needs local administrator permissions. On the other hand temer jobs are also used by other services which need NETWORK SERVICE permissions and those to sets of permissions onl...

What access does Apache 2.0 need in Windows Server 2003 in order to start as a service?

Until this morning, I have had Apache 2.0 running as a service using a local account which was configured with appropriate permissions. Sometime yesterday, someone must have changed something, and now Apache 2.0 won't start as a service under this account. I made the account an Administrator temporarily, and Apache 2.0 starts fine. I t...

How to easy determine if a port is open on an Windows server?

I'm trying to install a site under an alternative port on a server, but the port may be closed by a firewall. Is there a way to ping out or in, on a specific port, to see if it is open? ...

What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product?

What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product? I have two servers, one runs my code much faster than the other and I believe their configurations are close to equivalent and therefore I want to benchmark the two. I do not want this question to become one about the hardware. This question...

Should SQL Server be on the same machine as your IIS installation?

I'm listening to podcast #19 and Joel and Jeff are arguing about running SQL Server on the same machine as your IIS installation. I have to say that it sounds like Jeff folded to Joel, but then again I am only guessing which one is which. ;) What are the pros and cons of each? Which is better? I typically run them separately (Joel's pr...

lsass.exe starts maxing CPU after ASP.NET web app deployment

After deploying a new build (mostly changed DLL's) of an ASP.NET web app the CPU on the server is now jumping to 100% every few seconds and the culprit is lsass.exe. Do you think that the deployment of the asp.net web app to the server and this problem are related? (or a coincidence that it happened at the same time?) More info: This i...

Schedule a .vbs file to run in Windows

I have a VBScript script that starts a cmd prompt, telnets into a device and TFTP's the configuration to a server. It works when I am logged in and run it manually. I would like to automate it with Windows Task Scheduler. Any assistance would be appreciated, here is the VBScript script: set WshShell = WScript.CreateObject("WScript.Shel...