windows-server-2008

How to detect antivirus on Windows Server 2008 in C#?

与世无争的帅哥 提交于 2019-11-30 06:30:31
I have seen code samples similar to the following numerous times in my search for an answer: using System; using System.Text; using System.Management; namespace ConsoleApplication1 { class Program { public static bool AntivirusInstalled() { string wmipathstr = @"\\" + Environment.MachineName + @"\root\SecurityCenter"; try { ManagementObjectSearcher searcher = new ManagementObjectSearcher(wmipathstr, "SELECT * FROM AntivirusProduct"); ManagementObjectCollection instances = searcher.Get(); return instances.Count > 0; } catch (Exception e) { Console.WriteLine(e.Message); } return false; } public

Fail to install Python 2.7.9 on a Windows google compute engine instance

给你一囗甜甜゛ 提交于 2019-11-30 04:55:18
问题 I fired up a new Windows google compute engine instance. It's running Windows 2008 R2, service pack 1. I download and try running the Python .msi installer for version 2.7.9, and it fails with this error: There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. I see this error for both the 64-bit and the 32-bit installer. Has anyone else seen it or know of a work-around? 回答1: I

Does IIS 7 have limit of simultaneous requests?

别说谁变了你拦得住时间么 提交于 2019-11-30 04:45:51
Does IIS 7 have some limit of simultaneous requests? I'm using Windows Server 2008. Thanks in advance. On Windows Server operating systems, IIS 7.0 has no request execution limit. Source charlie arehart Yes, IIS 7 can have a limit of simultaneous requests, depending on the edition of Windows you're using. I see people often assert (as others have here) that somehow the limits have been lifted with IIS 7. It's just not always so, and depends on whether running 2008, 7, or Vista. Let's start with Win2k8, since you mention using that. The following document suggests that 2k8 has only a server

IIS: How to disable Data Execution Prevention in Windows Server 2008?

∥☆過路亽.° 提交于 2019-11-30 02:50:56
问题 I've been trying to disable DEP on my windows 2008 dev box and have not succeeded. I've tried: System Properties->Performance Options->Data Execution Prevention->Turn on DEP for essential Windows programs and services only (still happens) System Properties->Performance Options->Data Execution Prevention->Turn on DEP for all programs and services except those I select in this case, i tried to choose both inetinfo.exe and w3wp.exe in the c:\windows\system32\inetsrv\ folder, and when selected, I

The FastCGI process exited unexpectedly

别来无恙 提交于 2019-11-30 01:35:01
I am trying to run PHP via FastCGI on a Windows 2008 server. I followed this installation doc http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis7/ and have checked I completed the steps correclty numerous times. However when I try to execute a php page i am presented with the following error: HTTP Error 500.0 - Internal Server Error C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly You might be using C:/[your-php-directory]/php.exe in Handler mapping of IIS just change it C:/[your-php-directory]/php-cgi.exe . sepehr maybe you should try installing VC++

Run multiple sites from one IP in IIS

拜拜、爱过 提交于 2019-11-30 00:48:01
I have a box with Windows Server 2008 and IIS 7, and I'm using an ASP.NET app. I am trying to run multiple sites from one IP, but I can't access the sites from the outside. I can only access the Default website from outside but when I want to access the second one it does not work. The second one should run on the http://ip:81 and the default one is on 80. They both run fine locally on the box and I have added a rule on the firewall to allow all inbound. host headers are your friend This link might help you. http://technet.microsoft.com/en-us/library/cc753195(v=ws.10).aspx You basically are

Why does %TEMP% resolve to a non-deterministic path of the form %TEMP\\<digit>?

淺唱寂寞╮ 提交于 2019-11-30 00:31:06
I have a Windows Server 2008 32 bit and when I'm typing %temp% it takes me to ..AppData\Local\Temp\1\ or ..AppData\Local\Temp\2 instead of ..AppData\Local\Temp I've already checked the Environment Variables and they are ok. I'm asking that because I have an application that's supposed to copy files to %temp%\my application and instead it copies the files to %temp%\1\my application Does someone have a solution for that? Damien_The_Unbeliever Explanation, discussion, workarounds, etc, all under the Old New Thing article Why does the name of my TEMP directory keep changing - it ensures multiple

Getting 404.0 error for ASP.NET MVC 3 app on IIS 7.0 / Windows Server 2008

情到浓时终转凉″ 提交于 2019-11-29 23:50:43
I am attempting to deploy an ASP.NET MVC 3 application to a Windows 2008 x64 server (running IIS 7.0 obviously), and IIS does not want to seem to serve up the content properly. All requests are resulting in a 404.0 error, because the requests are not matching any handler and IIS is attempting to use the StaticFile handler to serve up the requests. The issue seems to be related to .NET 4.0, as I have an MVC 2 application running just fine in an app pool that is configured for the .NET 2.0 runtime. I have had no issues deploying this same application to IIS 7.5 servers both on Windows 7 and

Windows 2008 server task scheduler does not run .bat batch job [closed]

£可爱£侵袭症+ 提交于 2019-11-29 23:13:08
I have a batch file on a Windows 2008 server that, when invoked from command line works fine. However, when I set a scheduled task to run this job, it does not work properly. The task scheduler does show that that the task is getting run at regular intervals, it does not show any error. But, the batch file does not process what it is supposed to process. Any ideas on how to fix this issue is most welcome Windows Server 2008 will not run any batch file with quotation marks " inside the batch file. See http://technet.microsoft.com/en-us/library/dd851678.aspx I had a similar problem, my .bat file

IIS 7.5 web application first request after app-pool recycle very slow

浪子不回头ぞ 提交于 2019-11-29 23:12:33
We have our website running on two machines with iis 7.5 One works fine. The other one how ever takes a really long time to process the first request after an app-pool recycle. It can take upwards of 60secs which is unacceptible since its going to be used as our production server. I've checked the app-pool settings on the both servers and they are the same, and the webapp version on both servers is the same. I've run the task manager and resource monitor, add see a connection to the machine when I make the request but nothing else happens, iis doesn't even show the request in the logs untill