windows-server-2012

Return code of scheduled task prefixed with 0x8007000 in list view, registered as 0 in the event log

匆匆过客 提交于 2019-12-19 10:49:29
问题 I am currently trying to setup monitoring of windows scheduled tasks in Zabbix. It seemed easy enough to just monitor the Microsoft-Windows-TaskScheduler/Operational event log filtered by 201 events and regexing on the return code, but when I started simulating errors to test the monitoring, nothing happened. It turns out that all our windows 2012 servers always log "return code 0" in the event log, even though it actually, sort of, displays it correctly in the Task Scheduler list view. When

How to enable Windows Authentication on a Windows Server 2012 IIS website using Powershell?

三世轮回 提交于 2019-12-19 10:44:13
问题 From end-to-end, how does one go about setting Windows Authentication on a ASP.NET app in Windows Server 2012? In earlier versions of IIS, you could just set <authentication> , <identity> , and <authorization> settings in the Web.Config and be done with it. <!-- Web.Config --> <system.web> ... <authentication mode="Windows /> <identity impersonate="false /> <authorization> <allow users="DOMAIN\user1" /> <allow users="DOMAIN\user2" /> <deny users="*" /> </authorization> Now there is an extra

“Run as different user” Visual Studio, cannot clear cached TFS credentials

时光怂恿深爱的人放手 提交于 2019-12-18 12:24:57
问题 Update I managed to solve it by getting my user granted permissions to remotely connect to the desktop using credential set 2 and thus being able to remove the stored credentials from Credential Manager. I log onto my server with one set of credentials and open Visual Studio 2012 using "Run as different user" ( Shift + Right-click ) as I need a second set of credentials to deploy to my dev. env. SharePoint site. I have previously done above and then connected to TFS using a third set of

An error occurred in the secure channel support - Classic ASP HTTP Request

≡放荡痞女 提交于 2019-12-18 12:07:52
问题 I have a classic ASP website running on a Windows Server 2012 box. One page makes a HTTP request to another application over https using code like this: Sub ShopXML4http(url, inStr, outStr, method, xmlerror) Dim objhttp Set objhttp = Server.CreateObject ("MSXML2.ServerXMLHTTP.6.0") objHttp.open method, url, false If Method="POST" Then objHttp.Send instr Else objHttp.Send End if outstr=objHttp.responseText Set objhttp=nothing End Sub This code works fine almost all of the time (thousands of

OpenNMS Win Server installation issues

邮差的信 提交于 2019-12-14 04:27:17
问题 I am attempting to install this on my HTPC running server 2012 and have followed the wiki installation guide but when I get to putting port range to search I get these errors. This is the guide: https://docs.opennms.org/opennms/releases/latest/guide-install/guide-install.html#gi-install-opennms-windows C:\Users\Administrator\Downloads\standalone-opennms-installer-18.0.2-1\opennms-installer>SET OPENNMS_HOME=C:/Program Files (x86)/OpenNMS C:\Users\Administrator\Downloads\standalone-opennms

How do I re-register ASP.NET with IIS 8?

拜拜、爱过 提交于 2019-12-14 03:59:44
问题 I am running a gallery template Windows Server 2012 VM instance on Azure. I've deployed a .NET site to the local IIS 8.0 but it doesn't work, just gives 404's for path that work fine on dev box (IIS Express). I had a nightmare with Web Deploy already on this VM so I think this whole VM template is screwy. I want to re-register ASP.NET with IIS using aspnet_regiis.exe but I see this message: This option is not supported on this version of the operating system. Administrators should instead

IIS8 RewriteModule / URLRewrite Extremely Slow

萝らか妹 提交于 2019-12-14 03:23:56
问题 I'm running a website with IIS8 on Windows Server 2012. I'm trying to determine what's causing high CPU usage by IIS (frequently 50% or more CPU usage by IIS). Server receives about 40 total requests per second throughout the day, but probably only 1-2 URLs per second that require processing. I enabled Request Tracing and found that some RewriteModule requests are taking over 100 seconds (!) to complete. I'm having trouble determining how this is possible on a machine with more than

Edit windows Group Policy from Command line (CMD)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 02:53:23
问题 I want to add some group policy and I need to added by batch file How can I edit windows Group Policy from windows command line? 回答1: Try importregpol.exe http://blogs.technet.com/b/fdcc/archive/2008/05/07/lgpo-utilities.aspx It will import whatever is in the pol file you specify. To make a pol file I blank the policy by remove machine and user then set the desired settings with the LGPO editor MMC and grab the pol files that are created. 来源: https://stackoverflow.com/questions/25341093/edit

Localization of NaN in deDE returns “NaN” rather than “n. def.” in Windows 8/Server 2012

£可爱£侵袭症+ 提交于 2019-12-14 01:26:29
问题 Sometime between Windows 7 and Windows 8, Microsoft changed the localization of NaN in de-DE (aka German (Germany) ) from: n. def. to NaN Background There are people on Earth who speak a language other than English; and who speak English in a country other than the United States. As a result, different cultures have different ways to display a value that is "Not a number" . For example: English: NaN Arabic: ليس برقم Greek: μη αριθμός Alsatian: Ohne Nummer Basque: EdZ Breton: NkN Catalan: NeuN

Web service method works fine on development computer but failed on server

佐手、 提交于 2019-12-14 00:40:00
问题 I have a serious problem with ASP.NET web service. I have a web service method that checks for the existence of user password in my project's database. I wrote the method inside an asmx file to access to it. [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services