windows-server-2008

can't terminate process using WMI but taskkill works

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 15:35:48
My user is in the Administrators group. I am using the .NET WMI API (System.Management) to kill a process using this code: var scope = new ManagementScope("\root\cimv2"); scope.Connect(); var query = new ObjectQuery( string.Format("Select * from Win32_Process Where ProcessID = {0}", processId)); var searcher = new ManagementObjectSearcher(scope, query); var coll = searcher.Get().GetEnumerator(); coll.MoveNext(); var mgmtObj = (ManagementObject)coll.Current; var ret = (uint) mgmtObj.InvokeMethod("Terminate"); // ret == 2 here, meaning "Access Denied" It's failing to kill the process and

Stop sync windows 2008 r2 clock

和自甴很熟 提交于 2019-12-04 15:22:00
I need to stop the sync from a windows server 2008 r2 from sync. Already stop the windows time service, but it sync in 2 seconds. how can i delay 1 day in the clock and dont sync ? Luis TO do it, i have to stop this two services Hyper-V Time Synchronization Service Windows Time temporarely stopping the service: net stop w32time unregistering the service: W32tm /unregister http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1318 If running a VM, disable time sync: Deselect Time synchronization between the virtual machine and the host operating system in

How to figure out method name by assembly and methoddef?

你离开我真会死。 提交于 2019-12-04 15:06:22
Application that was developed on machine with Windows XP and works there just fine has severe problems on target machine with Windows Server 2008. Namely, it fails to start properly with following information avaiable: Description: Stopped working Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: neolant.asrm.rcpfreshner.service Problem Signature 02: 1.0.7.0 Problem Signature 03: 4f4b66d2 Problem Signature 04: mscorlib Problem Signature 05: 2.0.0.0 Problem Signature 06: 4bf4c743 Problem Signature 07: e47 Problem Signature 08: 20e Problem Signature 09: Exception OS Version:

Check anti-virus status in C#

好久不见. 提交于 2019-12-04 14:48:26
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? Sample can be found here using WMI as you mentioned. The poster states this is being done on a Win 7

jenkins service fail to start on windows 2008

烈酒焚心 提交于 2019-12-04 12:48:00
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. Told Jenkins to restart itself as a service. At this point, Jenkins dies and doesn't come back up.

asp.net 2.0 global themes not working on new windows server 2008

好久不见. 提交于 2019-12-04 12:40:19
We're migrating our .net 2.0 websites from a Windows 2003 server (32 bit) with IIS6 to a Windows Server 2008 (64 bit) box with IIS7. I can't seem to get the global themes to work. Same content/directory structure as our old servers; local App_Themes work fine. Global Theme path: D:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\Themes thanks, Aaron From the MSDN, your directory path should read: %windows%\Microsoft.NET\Framework\version\ASP.NETClientFiles\Themes. MSDN on themes . Of course, there are caveats with this and it appears that your directory could work if certain circumstances

log4j:ERROR Failed to rename

人走茶凉 提交于 2019-12-04 12:20:00
问题 I get this error "log4j:ERROR Failed to rename" in my tomcat server log. I have multiple DailyRollingFileAppender in my log4j XML. And each appender points to different file. Only once instance of the application is running. I used Handle utility and run the command (with log file name as parameter) handle -f ams-app.log and the result is Tomcat7.exe pid: 5032 type: File 54C: E:\apps\ams\logs\ams-app.log From this I assume there is only one lock on the file. My environment Windows Server 2008

Can't step into stored procedure on remote SQL Server 2008

心已入冬 提交于 2019-12-04 11:59:53
问题 I have a domain controller installed on virtual Windows Server 2008 x64 . SQL Server 2008 Express x64 is running on Windows Server 2008 x64 and client on Windows 7 RTM x86 . Both have joined the domain. I'm starting both Visual Studio 2008 and SQL Server Management Studio 2008 under domain admin user. This account is a member of group sysadmin on SQL Server . Server has firewall exceptions for both TCP and UDP on ports 135-139 and 1433-1434 . Visual Studio 2008 Remote Debugger services is

SSIS Package runs for 500x longer on one server

故事扮演 提交于 2019-12-04 10:32:39
问题 I have an SSIS package--two data flow tasks, 8 components each, reading from two flat files, nothing spectacular. If I run it in BIDS, it takes reliably about 60 seconds. I have a sandbox DB server with the package running in a job which also takes reliably 30-60 seconds. On my production server, the same job with the same package takes anywhere from 30 seconds to 12 hours . With logging enabled on the package, it looks like it bogs down--initially at least--in the pre-execute phase of one or

Block ping in Windows Server 2008 R2

☆樱花仙子☆ 提交于 2019-12-04 10:16:39
I have deployed my Asp.Net web application on Windows Server 2008 R2 , and I want to block all ping requests to this server without effecting my application . Thanks in advance Satinder singh Go to Start → Administrative Tools → Windows Firewall with Advanced Security → Inbound Rules → File and Printer Sharing (Echo Request – ICMPv4-IN) → right click and select Enable Rule . My application now works fine and when I try to ping my server I do not receive any response. Using the solution provided by Satinder, you should further refine the scope of which computer/server and/or IP range(s) can