windows-server-2008

Tell reboot from shutdown on Windows Server 2008

一世执手 提交于 2019-12-13 04:31:23
问题 As per MSDN, it is not possible to determine, whether reboot or shutdown occurred using WM_ENDSESSION Message. I've found the only way to do this, but it's quite ugly and works only for Windows 2000 Server, not for 2008 Server. The reason I'm asking is that I'm in process of porting Linux daemon to Windows as System Service. This daemon acts differently on reboot and system shutdown events. I am also using python with pywin32 in project if it somehow helps to answer. 回答1: You need to

How to make AutomationFactory available for a silverlight application in a sharepoint site?

烈酒焚心 提交于 2019-12-13 04:18:49
问题 I am trying to create a silverloght application to open visual studio and deploy it as a webpart in sharepoint site. I am using following code: dynamic cmd = AutomationFactory.CreateObject("WScript.Shell"); cmd.Run("devenv.exe", 1, true); this is working fine in standalone silverlight application, however, when I added this as a webpart in sharepoint site. It gives an error that "This operation is not supported in the current context". Based on my search, the reason for this may be is that

How to create an AMI from a running/existing windows instance?

不想你离开。 提交于 2019-12-13 04:13:41
问题 I have a running/existing EC2 instance with Windows Server 2008 with instance backed, how do i create an AMI from this existing instance? 回答1: Under "EC2 Service Settings" on the existing instance, select if you want to run sysprep after the bundled instance is re-instantiated. Then, go to the AWS management console, right-click your instance, and click "Bundle". Select your credentials and destination S3 bucket. 来源: https://stackoverflow.com/questions/6641922/how-to-create-an-ami-from-a

Classic ASP Session Variables Lost on Windows Server 2008 R2 / IIS 7

谁说我不能喝 提交于 2019-12-13 04:01:03
问题 We transferred our existing website which is running on a Server 2003 machine using iis6 and coded with classic asp to a Server 2008 64 bit machine using iis7 and classic asp. The only changes to the pages were for our calls to a Universe db, which need a new connection string . We tested all the pages within the department running 4-5 users and all went well. When we made it live for everyone (between 40 and 100 users) users were losing their session variables some immediately and others

copy folder to multiple servers with different %userprofile%

半世苍凉 提交于 2019-12-13 03:23:31
问题 I do not have access to GPO or AD/OU, so what I found to do the easiest was to create a batch file for users. Here is what I want to achieve : I have over 50 servers, and 10 users that will be connecting to these machines. On those different machines, I want to populate, from 1 location (1 main server, 1 main location/main user), all the internet favorites (C:\Users\MAIN USER\Favorites\Links) to everyone on every machine... I want to create a batch file, with minimum user manipulation, . So

ASP MVC server requirements - Is Server 2008 very desirable?

妖精的绣舞 提交于 2019-12-13 02:56:13
问题 I read in a few places that MVC requires Windows Server 2008 for full support. Can the same be achieved on a Vista Ultimate dev machine or will some things be missing? If you have worked with MVC, have you had trouble finding relatively inexpensive hosting for Windows Server 2008? Though hosting is not as big a concern for me right (I know I will find some) as needing a dev machine with 2008 Server. 回答1: ASP.NET MVC plays nicely with Server 2008, but this is not required. The main crux to not

Windows Server 2008 Special Fonts during rendering

风流意气都作罢 提交于 2019-12-13 02:34:57
问题 So we have a service running on Server 2008 which kicks off a process (C# app) which does some rendering. The process is running successfully but it is using the system fonts (Arial I believe) instead of fonts which are supposed to be loaded. If I run this process manually by logging into the server, the fonts load successfully and the process renders correctly. I have tried running this process by using CreateProcessWithLogonW but that still doesn't work. I am assuming this has to do with

Centralized log files using Windows Server

微笑、不失礼 提交于 2019-12-13 01:55:31
问题 I want to have a web interface for end-users in order to provide them the chance to monitor the log files from different servers using only the interface. I found this proposal: http://logstash.net/docs/1.3.3/tutorials/getting-started-centralized And this example for implementation process: http://michael.bouvy.net/blog/en/2013/11/19/collect-visualize-your-logs-logstash-elasticsearch-redis-kibana/ Generally as I know Redis is compatible with Linux OS. However My OSs are Windows Servers 2008.

SQL 2005 connection using classic ADO from Windows 2008 yields odd performance

折月煮酒 提交于 2019-12-12 23:24:57
问题 UPDATE: Please see the updates below, as I'm adding more information to the bottom as I run into it. I'm working on setting up a new web server running Windows Server 2008, connecting to another Windows 2003 Server with SQL Server 2005. I'm running into some weird results when trying to run queries from the server to the SQL Server 2005 server. Basically, ever other query has a fixed 625 millisecond overhead if results are returned, but no overhead when it's a non-query: I'll let my sample VB

Changing default culture for windows service running as LocalSystem

…衆ロ難τιáo~ 提交于 2019-12-12 22:41:33
问题 Our admins unexpectedly migrated a server where my .NET windows service runs (to Windows 2008 ... because of some old apps). It is running under LocalSystem account. The target framework is .NET framework 4 Client Profile. In my service the method DateTime.Parse now throws invalid format exception. When I add to OnStart Thread.CurrentThread.CurrentCulture = new CultureInfo("cs-CZ", false); it gets better, but still in some methods it fails, probably running in different therads. How to