windows-server-2003

Are GUIDs generated on Windows 2003 safe to use as session IDs?

ぃ、小莉子 提交于 2019-12-07 01:27:28
问题 My web application operates only over SSL and sets a time limited cookie for each user after they successfully login with a username and password. The biggest weaknesses in the system are one compromising an existing user's cookie. And two guessing a session ID GUID. I know of mechanisms for the first weakness but I'm wondering how much I need to worry about the chance of an attacker guessing a session ID GUID based on a GUID they have previously obtained by logging into an account they have

how to set web.config default page for php index file

穿精又带淫゛_ 提交于 2019-12-07 01:12:02
问题 I'm trying to start my web site on iis server and I use php for that. every thing is fine on server but defaultDocument. how can I set that on web.config file. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <defaultDocument enabled="true"> <files> <remove value="default.aspx" /> <remove value="iisstart.htm" /> <remove value="index.html" /> <remove value="index.htm" /> <remove value="Default.asp" /> <remove value="Default.htm" /> <add value="index.php" /> </files> <

NT Eventlog single message size

风格不统一 提交于 2019-12-06 19:19:30
问题 Can anybody tell me what is maximum size of a windows NT log message? I know that it is possible to reset the maximum log size of event log from 32 MB. I am interested about the memory a single message can hold in NT event log. Thanks in advance 回答1: In Windows Server 2008 the maximum size of a single Event Log entry is: 31,839 characters http://msdn.microsoft.com/EN-US/library/windows/desktop/aa363679.aspx 回答2: The answer is 32766 characters ~ 32 KB See a example below: Error: Log entry

how to allow files starting with period and no extension in windows 2003 server? [closed]

独自空忆成欢 提交于 2019-12-06 16:49:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . How can I create this file in a directory in windows 2003 SP2: .hgignore I get error: You must type a file name. 回答1: That's a "feature" of Windows Explorer. Try to create your files from a command line (or from a batch/program you wrote) and it should work fine. Try this from a dos prompt: echo Hello there! >

PowerShell window preventing shutdown

左心房为你撑大大i 提交于 2019-12-06 11:16:01
If I have a PowerShell window (at the PowerShell command prompt) on display it prevents the computer shutting down. I.e. if I open a PowerShell window and then try to shutdown the server, I get the End Program popup saying Windows cannot end this program. I get the same result if I start PowerShell from the start menu, from a cmd prompt and from a shortcut with -NoExit specified. How can I get shutdown to automatically close a PowerShell window (if it is at the PowerShell prompt) in the same way as it would for a CMD window? Alternatively, is it possible for PowerShell to detect when a

How do I run my app with large pages in Windows?

瘦欲@ 提交于 2019-12-06 08:24:39
Large pages are available in Windows Server 2003 and Windows Vista . But how do I enable large pages for my application? Martin's answer is correct on Windows Server 2003: You will have to assign the "Lock pages in memory" privilege to any user that runs your > application. This includes administrators Select Control Panel -> Administrative Tools -> Local Security Policy Select Local Policies -> User Rights Assignment Double click "Lock pages in memory", add users and/or groups Reboot the machine On Windows Vista you need also make sure that the application is run as Administrator (by right

Is activemq reliable?

馋奶兔 提交于 2019-12-06 07:58:04
We have put ActiveMQ on a fresh server. Configured it to use 'kahadb' (the preferred as we read) and set it to allow the file to expand to 2gb. Then when we put load on the queue (+- 500/sec), within a few minutes activemq crashes. When ActiveMQ tries to restart, it can't because the db is corrupt: 2010-11-29 13:00:50,359 | ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: java.io.EOFException | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain java.io.EOFException at java.io.RandomAccessFile.readFully(RandomAccessFile.java:383) at java.io.RandomAccessFile.readFully

Check anti-virus status in C#

这一生的挚爱 提交于 2019-12-06 07:48:02
问题 I need to check a group of servers to see whether the anti virus is up-to-date and running. Tricky thing is that they are spread over Windows 2003 and 2008 servers and I need to be able to check them all. Is there any way of doing this with C# or VB.NET? I have briefly looked around using WMI, but it appears on 2008/win7 computers Microsoft has changed what information they give back to you. In summary, I need the following: AV name AV version AV Up-to-Date AV Enabled/Running Can anyone help?

Add enabled Computer to Active Directory OU

我们两清 提交于 2019-12-06 03:48:26
I am trying to programmatically add a computer to the Active Directory of my company. I was searching the internet for so long now, but i couldn't find a solution. My code: DirectoryEntry dirEntry = new DirectoryEntry("LDAP://OU=ou2example,OU=ou1example,DC=site,DC=company,DC=com"); dirEntry.Username = "username"; dirEntry.Password = "password"; DirectoryEntry newComputer = dirEntry.Children.Add("CN=" + ComputerName, "computer"); newComputer.CommitChanges(); My problem: The computer is added to the Active Directory. But it is flagged as disabled. I tried to following to enable the computer:

I have two machine.config files on my server, which one do I edit and how do I verify they are being used?

青春壹個敷衍的年華 提交于 2019-12-06 01:26:19
问题 I need to do some performance tuning and need to modify the following settings: processModel, httpRuntime, and connectionManagement. Simple enough I suppose, but I'm not sure which of the two machine.config files to edit, or do I edit both? \Windows\microsoft.net\ Framework \v2.0.50727\CONFIG\machine.config \Windows\microsoft.net\ Framework64 \v2.0.50727\CONFIG\machine.config As a follow up question, how do I verify that the settings have been applied? I should mention that the server is