windows-server-2008-r2

How to create a SQL Server login for a service account on a non-English Windows?

这一生的挚爱 提交于 2020-01-01 05:13:47
问题 Given a Windows Server 2008 R2 system, where the service accounts use a non-English display language, with SQL Server 2008, the following Transact-SQL statement fails: CREATE LOGIN [NT AUTHORITY\NETWORK SERVICE] FROM WINDOWS ... with the following error: Windows NT user or group 'NT AUTHORITY\NETWORK SERVICE' not found. Check the name again. (or the same message in the non-English display language for the service accounts, depending on the context). This same statement succeeds if the service

How to create a SQL Server login for a service account on a non-English Windows?

二次信任 提交于 2020-01-01 05:13:10
问题 Given a Windows Server 2008 R2 system, where the service accounts use a non-English display language, with SQL Server 2008, the following Transact-SQL statement fails: CREATE LOGIN [NT AUTHORITY\NETWORK SERVICE] FROM WINDOWS ... with the following error: Windows NT user or group 'NT AUTHORITY\NETWORK SERVICE' not found. Check the name again. (or the same message in the non-English display language for the service accounts, depending on the context). This same statement succeeds if the service

Task scheduler cannot open batch file when set to run whether user is logged on or not

≯℡__Kan透↙ 提交于 2019-12-31 12:23:34
问题 OS: Windows Server 2008 R2 Enterprise I am unable to get the Task Scheduler to run .bat files while I am logged off. I have a a production .bat file I want to use, but for my troubleshooting purposes I am using C:\Users\Administrator\Desktop\test.bat test.bat is very simple. All it contains is: taskkill /im notepad.exe It runs successfully on its own. If I have Notepad open and I double-click test.bat then the cmd window flashes and Notepad dies. The .bat file is not the problem. The task I

Microsoft Visual Studio 2012 has stopped working

冷暖自知 提交于 2019-12-30 19:28:03
问题 I have been using Visual Studio 2012 on Winodws Server 2008 R2 sp1, Although apart from a bit slow performance it seem to work fine. But whenever I close the application, I get following error- Microsoft Visual Studio 2012 has stopped working And prompts to restart or debug the program. I read here that deleting following registry key, would fix the issue on 64 Bit machine. [HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\WindowsNT\CurrentVersion\AppCompatFlags\Layers] The issue is, I have

Check for Third Party Firewalls on a Machine

不羁的心 提交于 2019-12-30 01:16:07
问题 I am working on doing a check for Firewalls. The following code quite easily checks the status of the default Windows Firewall: INetFwMgr manager = GetFireWallManager(); bool isFirewallEnabled = manager.LocalPolicy.CurrentProfile.FirewallEnabled; if (isFirewallEnabled == false) { Console.WriteLine("Firewall is not enabled."); } else { Consoe.WriteLine("Firewall is enabled."); } Console.ReadLine(); private static INetFwMgr GetFireWallManager() { Type objectType = Type.GetTypeFromCLSID(new Guid

How to register a 32-bit .DLL COM+ application on Windows 2008 R2

坚强是说给别人听的谎言 提交于 2019-12-29 07:13:07
问题 I have read through all the similar questions but am not finding my exact problem answered. I have tried all the similar recommendations. I am forced to migrate from a Windows Server 2003 environment to a Windows Server 2008 R2 environment running IIS 7.5. I have a web application that calls COM objects in a 32-bit DLL. The COM object was created from VB6. Here is what I have done to date: I have enabled 32-bit on my IIS Application Pool. I have registered the .DLL and it's dependent .DLL

What is required for an IIS site to send error details to the browser?

痞子三分冷 提交于 2019-12-29 05:22:28
问题 I am receiving a Server Error on an ASP Classic site running on IIS 7.5. I have "Send Errors To Browser" set to True , however I still receive the following error screen: 回答1: IIS is hijacking your classic ASP app's response. In your web.config file ensure that the following is configured: <configuration> <system.webServer> <httpErrors existingResponse="PassThrough"/> </system.webServer> </configuration> Also make sure that you've enabled "Send Errors To Browser" in the ASP configuration

Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders

这一生的挚爱 提交于 2019-12-28 03:35:10
问题 Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders for a long time. For example when deleting a file, the file may remain locked for 1 minute or more and only after that be deleted. On another occasions I encountered files or folders I could not delete. ProcMon showed that the System Process was holding a handle to those resources for a couple of minutes and then released them None of the resources I mentioned were system resources, only files and folders installed

Website does not work when moving the files to another server?

非 Y 不嫁゛ 提交于 2019-12-25 18:56:11
问题 ![enter image description here][1]I'm trying to troubleshoot this problem. I created a basic asp page with Javascript in one server which works fine at the moment but when I move the asp page and all the related files to the new server it does not work. What my asp page does is ask for last or first name in text box and it has button which after it is press it returns all the matches with contact info. from Microsoft Access database . HTML : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

Why does GetWindowThreadProcessId return 0 when called from w3wp.exe

核能气质少年 提交于 2019-12-25 14:17:12
问题 When running the following code, GetWindowThreadProcessId returns 0. I've read about the same problem happening with a service, but this code is being run as an Application Pool in IIS (namely, w3wp.exe). Also, both w3wp.exe and the EXCEL.EXE it is trying to kill are running in the same session (session 0), and as the same user. if (appClassXls != null) { IntPtr processId = default(IntPtr); GetWindowThreadProcessId(appClassXls.Hwnd, out processId); Process processXls = Process.GetProcessById