windows-server-2008

run powershell script from anywhere

走远了吗. 提交于 2020-06-27 23:07:13
问题 I am currently working on a powershell script. The objective of this script is to import data from a .csv file from which new users are created if that username does not already exist in the Active Directory. My question is how can I make this script run from any location so all I have to do is type the name of the script and it will run. I have been able to do this in BASH but can't figure out how to do this in power shell. So far google has been little help. If it makes any difference i'm

PHP Windows extensions won´t load

白昼怎懂夜的黑 提交于 2020-04-07 05:57:51
问题 I'm working on a windows server 2008 R2 machine. I have installed apache 2.2 with php 5.4.25 While trying to enable ldap support for the apache server i found out that the server does not load the extensions. I ran php_info() and this was the result Configuration File (php.ini) Path C:\Windows Loaded configuration file: "C:\php\php.ini extension_dir C:\php\ext I have changed the php.ini to load the extensions, but they are not loaded and they are not visible in the php_info dump. I tried to

MSMQ on Win2008 R2 won’t receive messages from older clients

你。 提交于 2020-01-24 08:24:27
问题 I'm battling a really weird problem here. I have a Windows 2008 R2 server with Message Queueing installed. On another machine, running Windows 2003 is a service that is set up to send messages to a public queue on the 2008 server. However, messages never show up on the server. I've written a small console app that just sends a "Hello World" message to a test queue on the 2008 machine. Running this app on XP or 2003 results in absolutely nothing. However, when I try running the app on my

Enabling JavaScript GZIP compression in IIS?

拈花ヽ惹草 提交于 2020-01-22 21:46:06
问题 we're looking to compress our gargantuan JavaScript files with GZip to speed up the page loads of our site. I know this can be done through IIS, but I can't seem to find a simple step-by-step guide on how to implement it. If someone could point me towards such a guide, I'd really appreciate it. I've never done this before, so it would need to be quite basic. We're running IIS7.5 on Windows Server 2008 R2 . Your time is much appreciated. 回答1: Turns out it's really easy: Go into IIS Manager Go

Does IIS 7 have limit of simultaneous requests?

别说谁变了你拦得住时间么 提交于 2020-01-20 18:30:08
问题 Does IIS 7 have some limit of simultaneous requests? I'm using Windows Server 2008. Thanks in advance. 回答1: On Windows Server operating systems, IIS 7.0 has no request execution limit. Source 回答2: Yes, IIS 7 can have a limit of simultaneous requests, depending on the edition of Windows you're using. I see people often assert (as others have here) that somehow the limits have been lifted with IIS 7. It's just not always so, and depends on whether running 2008, 7, or Vista. Let's start with

ASP.NET command line problem

做~自己de王妃 提交于 2020-01-17 04:12:06
问题 I want to execute some ms dos commands from our asp.net code (command line arguements). But system is not permitting this (Windows 2008 server). Any help would be great. The same code is working fine on our Windows 2003 server. See the code I use below. protected void btn_Click(object sender, EventArgs e) { ProcessStartInfo processStartInfo = new ProcessStartInfo("cmd.exe"); processStartInfo.RedirectStandardInput = true; processStartInfo.RedirectStandardOutput = true; processStartInfo

ASP.NET command line problem

不想你离开。 提交于 2020-01-17 04:11:48
问题 I want to execute some ms dos commands from our asp.net code (command line arguements). But system is not permitting this (Windows 2008 server). Any help would be great. The same code is working fine on our Windows 2003 server. See the code I use below. protected void btn_Click(object sender, EventArgs e) { ProcessStartInfo processStartInfo = new ProcessStartInfo("cmd.exe"); processStartInfo.RedirectStandardInput = true; processStartInfo.RedirectStandardOutput = true; processStartInfo

ASP.net pages crash in IIS 7.5/Server 2008 but worked in IIS6/Server 2003

喜欢而已 提交于 2020-01-15 12:05:23
问题 We recently upgraded our server From windows 2003 to Windows 2008 and from SQL Server 2005 to SQL Server 2008. The site in general works, but some pages keep on crashing. it seems like the pages who take a bit longer than the usual crash. I get this This webpage is not available The connection to www.YourSite.com was interrupted. I have a carbon copy of the site on my local machine and everything works perfect. Where do I start? Managed Pipeline Mode is set to Classic. Should I change it to

Does Win 2008 r2 x64 server come with .net 3 sp1 package already installed?

时间秒杀一切 提交于 2020-01-14 10:35:24
问题 same as in title? I have a test server with mentioned OS and my app is .net 3.5 based. I do want to know if win 2008 r2 comes with service pack 1 for .net 3.5 from the box. And does it come with .net 3.5 sp1 family update as WELL, since after I downloaded the update, the installer says I do not have software required to update. Could some win 2008 guru perhaps explain it to me? thanks luke 回答1: Windows Server 2008 R2 does come with .NET 3.5 SP1, however it is not an installed feature by

ASP.Net Com-InterOp Excel Generation issue when hosting

你说的曾经没有我的故事 提交于 2020-01-13 08:08:15
问题 In my ASP.Net application I'm generating a Excel file using MsExcel Object Libby (Com-InterOp) . The application worked fine in the VS dev. environment. But when I host it in the server I'm getting following error, if I'm no user is logged in to the server through Remote desktop Connection. "Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a The server process could not be started because the configured