windows-server-2008

Can't copy files to UNC Destinations if BAT file is called via scheduled task

≡放荡痞女 提交于 2019-12-02 19:42:07
I have a bat file copying files from current machine to mapped network drive (one line, xcopy command). It works when I RDP to server. However, when I run as a scheduled task, and configure it to run under the same user I'm logged in, it doesn't work and give error 0x4. Is there a way I can achieve this? I also try dsynchronize and it works when I click synchronized. When I run it as service same issue. Imran I was able to figure it out. Following batch files works under scheduler, even as local system account: net use m: \\server\share /U:server\user password xcopy C:\source m: /E /Y It maps

IIS Host Headers and non WWW to WWW

こ雲淡風輕ζ 提交于 2019-12-02 19:35:49
问题 I know there's a bunch of examples on how to redirect your non www to your www site, but I'm not using any rewrite utils/ISAPI. On my Windows 2008R2 box, I have several sites setup in IIS. I setup host headers for both www and non www versions. The first couple of sites work fine. If you try to go to the non www site, you are automatically redirected to the www version. As far as I recall, I didn't have to do anything special other than add the appropriate host headers - no messing around

How can I enable the Windows Server Task Scheduler History recording?

妖精的绣舞 提交于 2019-12-02 15:40:50
I have a Windows Server 2008 with scheduled tasks running, mainly .bat files calling PHP files. I have 2 users on the server, one Admin and the other is a Standard user. I used the Standard User to clear the history log in the Task Scheduler History tab using the Event Viewer. Now it won't record any history anymore. All of the scheduled tasks no longer have history in the History tab. However, the Last Run Result returns 0x0 and the schedulers are working fine. Please advise. Brian Clark Step 1: Open an elevated Task Scheduler (ie. right-click on the Task Scheduler icon and choose Run as

Problem rendering a PowerPoint to png in C# using COM under an IIS service

瘦欲@ 提交于 2019-12-02 15:21:43
问题 first of all, my program CAN render a pptx to png, the quality is just greatly reduced when rendering on Windows Server 2008 R2 and I'm wondering why. I tested my program on windows 7 x64 using Cassini and the rendering to png of the pptx is perfect. But when I deploy my program on IIS and try to render the pptx, the quality of its rendering is reduced. This is the link the same image, one rendered under windows 7 cassini and the other under windows server 2008. The perfect quality one: http:

using word object in windows server

久未见 提交于 2019-12-02 12:38:51
I have asp.net app which at some point takes word document, edits some of the data there and sends it to email. While this is running good on my local computer where I have microsoft word, when I am trying to do the same thing from windows server without microsoft word installed, the document doesn't get created, and it seems that nothing is happening. Does anyone can tell me what do I need to install for this to work, do I need to install normal microsoft word application or I can install some assemblies? Thanks, Laziale There are 3rd party tools that do this, you should NOT do it with MS

IIS Host Headers and non WWW to WWW

和自甴很熟 提交于 2019-12-02 11:42:48
I know there's a bunch of examples on how to redirect your non www to your www site, but I'm not using any rewrite utils/ISAPI. On my Windows 2008R2 box, I have several sites setup in IIS. I setup host headers for both www and non www versions. The first couple of sites work fine. If you try to go to the non www site, you are automatically redirected to the www version. As far as I recall, I didn't have to do anything special other than add the appropriate host headers - no messing around with rewrites/ISAPI. What am I missing on the server manager side of things in order to get this working?

How to get windows username in MS Access VBA on Windows Server 2008

匆匆过客 提交于 2019-12-02 08:55:57
I am using this code in my MS Access VBA: How to get logged-in user's name in Access vba? It works perfectly fine. However, our foreign employees need to use the software on a server, and it is unable to retrieve the username. We are signed in as usual. The server version is Windows Server 2008 SP2. Any suggestions? Best regards, Emil. Andre I don't know which method you are using (there are several answers), but this one suggested by HansUp is easy and hopefully works on the Server too: https://stackoverflow.com/a/32565953/3820271 Public Function GetUserName() As String ' GetUserName =

Cannot access Page without authentication

旧巷老猫 提交于 2019-12-02 08:21:47
问题 I deployed the sample application (the blue one you get when you create a new project) to IIS7 on Windows Server 2008. When I try to access mysite.com/home/about I get redirected to Accoun/Login. This does not happen when I run the site on VS integrated server. I did not change any code in the project, so it sems to be an issue on the server. IIS is set to integrated mode. Any ideas what is wrong? 回答1: Further on eu-ge-ne's answer, if 'Anonymous Authentication' is enabled then you need to

MVC routes lost after app pool recycle (updated title 3/3/14)

半腔热情 提交于 2019-12-02 06:06:25
问题 I am trying to deploy an ASP.NET MVC 4 web application to a production server (Windows Server 2008 R2 [x64] with SP1 installed, running IIS 7.5) that already has several other working ASP.NET applications. All I can get is a 403 at index, and a 404 for everything else but the static content. The application works without a problem on my local machine's instance of IIS 7.5 (And I am running on Windows 7, up-to-date, 64-bit.) What I have tried: <modules runAllManagedModulesForAllRequests="true"

Crystal Report redistributable for Windows Server 2008? - An error has occurred while attempting to load the Crystal Reports runtime

空扰寡人 提交于 2019-12-02 03:58:26
First at all, thanks everyone. What do I need to get work crystal report on windows server 2008? Or how can I get work rpt files (loaded by code and flush it to browser) on a website (framework 3.5/4.0) running on a windows server 2008 ? I mean, I load some rpt files (built them on crystal report 2008) and then using crystal object to export the file to xls/pdf, change the headers, make a flush to the browser and it works, this on windows server 2003/Seven/XP but the site doesn't work on Windows server 2008, I guess that I need a redistributable, but, which one ? Any idea ? Thanks in advance.