windows-server-2008

Scheduling a task in Windows Server 2008 R2

旧巷老猫 提交于 2019-11-29 01:16:41
I have scheduled a task to run a SSIS job using the Task Scheduler (TS). It is configured to run as a User who belongs to the Admin group. The security is "Run whether user is logged on or not" is checked "Dont store password" is checked "Run with highest preveilage" is unchecked The scheduled task run ONLY when the user is logged in but when the user logs out the task doest seem to run. I figured "Run whether user is logged on or not" should run the task when the user isnt logged on. What am I missing? Try storing the password. If the user isn't logged in and the password isn't stored there

Ruby on Rails on IIS?

折月煮酒 提交于 2019-11-29 01:16:15
I'm writing a Ruby on Rails app that normally runs on Heroku or a Linux Box, but I'd need to deploy it to a Windows Server as well. The Server is a 64-Bit Win2008 Server with IIS 7.0 installed, so normally I'd prefer using IIS instead of setting up an Apache next to it. I just don't know if Ruby/Rails works with IIS? Do Gems work? Is 64-Bit an issue? I'm thinking of using Ruby 1.9.1 and Rails 2.3. you must like pain because this deployment is going to hurt. I don't know if this is a solution for you, but at my old job we were deploying web apps on windows tablets (over 200 of them) and decided

Programmatically add IP to Server 2008 firewall rule

故事扮演 提交于 2019-11-28 23:57:30
Anybody know how to programmatically add an IP address to a Server 2008 Windows Firewall with Advanced Security rule? i.e. I've setup a Block Action firewall rule which has some IP addresses listed under the "Remote IP address" section of the Scope. I want to be able to programmatically add (or perhaps remove) IP addresses from this list. Are there .NET objects available to do this? The Windows Firewall with Advanced Security Start Page can be found at: http://msdn.microsoft.com/en-us/library/ff956124(v=VS.85).aspx Specifically, it seems you need the INetFwRule Interface which is described at:

Why does %TEMP% resolve to a non-deterministic path of the form %TEMP\<digit>?

99封情书 提交于 2019-11-28 21:28:18
问题 I have a Windows Server 2008 32 bit and when I'm typing %temp% it takes me to ..AppData\Local\Temp\1\ or ..AppData\Local\Temp\2 instead of ..AppData\Local\Temp I've already checked the Environment Variables and they are ok. I'm asking that because I have an application that's supposed to copy files to %temp%\my application and instead it copies the files to %temp%\1\my application Does someone have a solution for that? 回答1: Explanation, discussion, workarounds, etc, all under the Old New

Getting 404.0 error for ASP.NET MVC 3 app on IIS 7.0 / Windows Server 2008

这一生的挚爱 提交于 2019-11-28 20:56:31
问题 I am attempting to deploy an ASP.NET MVC 3 application to a Windows 2008 x64 server (running IIS 7.0 obviously), and IIS does not want to seem to serve up the content properly. All requests are resulting in a 404.0 error, because the requests are not matching any handler and IIS is attempting to use the StaticFile handler to serve up the requests. The issue seems to be related to .NET 4.0, as I have an MVC 2 application running just fine in an app pool that is configured for the .NET 2.0

What are practical limits on the number of FileSystemWatcher instances a server can handle?

余生长醉 提交于 2019-11-28 18:41:48
I have a windows service that is currently instantiating about a dozen FileSystemWatcher instances to monitor shared folders across the corporate network for files to be processed. I am looking into adding more instances so I'm wondering if anyone here has experience (with production systems) as to what are practical limits on number of FileSystemWatcher instances a production system can reliably handle? Edit: In my case, the InternalBufferSize property is not modified so the InternalBufferSize is the default 8 KB... I assume the increase in InternalBufferSize would affect the number of

How to set user environment variables in Windows Server 2008 R2 as a normal user?

跟風遠走 提交于 2019-11-28 18:05:20
In older versions of Windows, it was just open the Control Panel, select the System applet, select the Advanced tab, and then hit the Environment variables button. As a normal user, you could edit the "User variables" but not the "System variables". In Windows Server 2008 R2, if I try to hit the Advanced System settings option in the System applet, it prompts for the Administrator password. You can also use this direct command line to open the Advanced System Properties: sysdm.cpl Then go to the Advanced Tab -> Environment Variables OK I found it. Arg, an exercise in frustration. They left the

Stopping cookies being set from a domain (aka “cookieless domain”) to increase site performance

大兔子大兔子 提交于 2019-11-28 17:16:36
I was reading in Google's documentation about improving site speed. One of their recommendations is serving static content (images, css, js, etc.) from a "cookieless domain": Static content, such as images, JS and CSS files, don't need to be accompanied by cookies, as there is no user interaction with these resources. You can decrease request latency by serving static resources from a domain that doesn't serve cookies. Google then says that the best way to do this is to buy a new domain and set it to point to your current one: To reserve a cookieless domain for serving static content, register

Add writing permission to PHP on IIS 7

落爺英雄遲暮 提交于 2019-11-28 16:51:09
I need a PHP script to have writing permission in a directory. PHP 5.3 is running as FastCGI under IIS 7 with windows server 2008 as OP. On my php error logs, I got "permission denied" when the script attempts to write a file. How can I sort this out? I tried to give all right to IIS_IUSR and to IUSR_myservername (with a right click on my folder) but it didn't work. Any help would be very appreciate, Regards, Julien tomfumb I have the same setup and I have to give write permission to: IUSR IIS AppPool\<<AppPoolName>> Actually, it's a little bit more complicated. The first thing to do is to

How to run ASP.NET C# web application locally?

馋奶兔 提交于 2019-11-28 12:22:31
For a web application I am using ASP.NET C# (OS- Windows7, .NET 4) and the task has done. But I don't know how to run it locally in Windows7 as well as in Server 2008(.NET 4 and IIS installed in server 2008). And I have to run it in both the platfrom . So any help please. Thanks a lot. If you have IIS 7 installed on your Win 7 machine, then: Open you project in VS.NET Right click on your project's node in solution explorer and choose "Properties" Switch to the "Web" tab. Select the radio "Use Local IIS web server" Click the "Create Virtual Directory" button That takes care of getting your