windows-server-2008

Check anti-virus status in C#

这一生的挚爱 提交于 2019-12-06 07:48:02
问题 I need to check a group of servers to see whether the anti virus is up-to-date and running. Tricky thing is that they are spread over Windows 2003 and 2008 servers and I need to be able to check them all. Is there any way of doing this with C# or VB.NET? I have briefly looked around using WMI, but it appears on 2008/win7 computers Microsoft has changed what information they give back to you. In summary, I need the following: AV name AV version AV Up-to-Date AV Enabled/Running Can anyone help?

VisualStudio C# x64, why AddReference option, .NET tab points to x86 DLL instead of x64?

我与影子孤独终老i 提交于 2019-12-06 07:46:45
I want to create an x64 application. When I want to add a reference for example to system.data in window AddReference under tab .NET I see only x86 DLLs, and I need 64 bit versions. I have Windows Server 2008 x64 with Visual Studio 2008. I created a project and I set x64 under Configuration Manager. What can I do to force Visual Studio to point to the correct DLLs (from C:\WINDOWS\Microsoft.NET\Framework64 instead of C:\WINDOWS\Microsoft.NET\Framework )? Running into the same problem, and yes I also consider it a bug from MS. You'd think either the x64 or x86 sgen.exe could handle msil

UAC: Manifest file is ignored

依然范特西╮ 提交于 2019-12-06 07:25:40
One of my Executables writes some configuration into a XML file to C:\Program Files\MyApp\config.xml. It needs to run as Administrator on Vista / Server 2008, otherwise the OS won't let it write to that location. I included a manifest file named config.exe.manifest, to automatically request administration rights at launch. Here's my manifest file: <?xml version="1.0" encoding="utf-8"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level=

jenkins service fail to start on windows 2008

人盡茶涼 提交于 2019-12-06 05:25:18
问题 I'm trying to get Jenkins installed as a service on a Windows Server 2008 Datacenter (SP2). I can't seem to get it to run as a service and am looking for any ideas to help get it going. When I try install Jenkins with native Windows package I get "Error 1920. Service Jenkins failed to start." in msiexec logs. I've performed the following steps for manual installation: Installed java 32 bit Started Jenkins with java -jar jenkins.war Gone to Manage Jenkins and set it to run as a Windows Service

Which is better to use for a recurring job: Service or Scheduled Task?

回眸只為那壹抹淺笑 提交于 2019-12-06 05:05:57
问题 I have a task that needs to run every 30 seconds. I can do one of two things: Write a command line app that runs the task once, waits 30 seconds, runs it again and then exits. I can schedule this task with Scheduled Tasks in Windows to run every minute Write a Service that runs a task repeatedly while waiting 30 seconds in between each run. Number 1 is more trivial, in my opinion and I would opt to do it this way by default. Am I wimping out? Is there a reason why I should make this a Service

Delphi Win32 Service “Printer Selected is not valid” error on 2008 64bit standard server

心已入冬 提交于 2019-12-06 04:40:16
问题 I have developed a simple win 32 service in delphi 7 which performs some print operations. All works fine on our XP machines, but fails on the target Windows 2008 standard server . When I put a try except block around the print statement, it results in the "Printer Selected is not valid" error. When I check the Printer object for count of printers and event write out all the printers available in the Printer object to a file, it works fine. Only when I try to perform a print (on any printer

Missing 'qedit.dll' in Windows Server 2008?

不打扰是莪最后的温柔 提交于 2019-12-06 03:17:26
We've found that Windows Server 2008 SP2 doesn't contain QEDIT.DLL. This 'DirectShow Editing' DLL contained several useful DirectShow filters, namely SampleGrabber, that we had been using. I found some references to this issue during the Windows Server 2008 beta cycle, but it was supposed to have been added back for release. Does anyone have any current knowledge of this, and if there are any workarounds other than copying a version from Vista or Win2003? The SampleGrabber filter is one of the MSDN sample filters. I'm not sure whether all the filters that you need are available as samples

batch script to send email

纵饮孤独 提交于 2019-12-06 00:28:52
问题 How to write a Windows batch script to send a mail? Give an example 回答1: You will need to use a third party tool such as blat (http://www.blat.net/). Then in your batch file, you would have a line like the following: blat -to foo@bar.com -f bar@foo.com -subject "Email Subject" -body "Email body" -server mysmtphost 回答2: You can enable the installed SMTP Server of Windows. And then run a power shell script: $subject = $args[0] # Create from/to addresses $from = New-Object system.net.mail

The type or namespace name ‘LayoutsPageBase’ does not exist in the namespace ‘Microsoft.SharePoint.WebControls’

不想你离开。 提交于 2019-12-05 21:39:51
I am attempting to create a web application page on a SharePoint 2010 site using Visual Studio 2010. I created a new application page without adding any code to it and get this error The type or namespace name ‘LayoutsPageBase’ does not exist in the namespace ‘Microsoft.SharePoint.WebControls’. Did you create your project as a Farm Solution or Sandbox Solution? There are two versions of Microsoft.SharePoint.dll. If the version you have referenced in your project is from 14\UserCode\assemblies, then you are using the sandbox version. The LayoutsPageBase class is not available in sandbox

Dr. Watson alternatives for Windows 2008+?

别说谁变了你拦得住时间么 提交于 2019-12-05 19:40:05
We used to use Dr. Watson logfiles and dumps for crash analysis in our production environment, but Dr. Watson is no longer part of server 2k8 and our infrastructure team has had issues getting it running on 2008. Are there alternatives that can be used in a similar way? In particular, we'd need the faulting module and address causing the crash (we use this with the PDB and map information to backtrace to the faulting location), and it would have to work with windows services (including those running as localsystem). Thanks for any suggestions. You can configure Windows Error Reporting to