Showing posts with label Windows 2003. Show all posts
Showing posts with label Windows 2003. Show all posts

Tuesday, August 17, 2010

Event ID: 6398, 6482, and 6641 for Share Point with error Access is denied

You may get this error after installing MOSS 2007 in windows 2008. For the similar error in window server 2003, a hot fix is available from Microsoft for iis6

The hot fix can be downloaded from http://support.microsoft.com/Default.aspx?id=946517

For 2008 change the set the default impersonation level to identify

To do this, go to

1 Start
2 Administrative Tools
3 Component Services
>>Component Services>> Computers >>My Computer
4 Right Click on My computer > Default Properties
5 Change the default impersonation level to identify

Wednesday, August 11, 2010

Moving the default Mail store location in POP3

Using the Windows interface

1.Open POP3 service.
2.In the console tree, right-click the computer_name node, and then click Properties.

POP3 Service/computer_name

3.In Root Mail Directory, type the path to the mail store; for example, C:\mailstore. The maximum value is 260 characters.
4.restart pop3 and iis

Note: After doing this I found the users are not able to login to the mailboxes hence I did it from the command line


Also move (don’t copy) the existing mailboxes from the default location (normally system_drive:\Inetpub\mailroot\Mailbox) to the new directory


Using the Commandline interface

1.Open Command Prompt.

2.Type:

winpop set mailroot path_to_mail_store

3.restart pop3 and iis

Thursday, August 5, 2010

403 error when you use an ASP request to upload a large (>200kb) file in IIS

Make sure the IIS web server is not restricting the size of ASP uploads. IIS 6 /IIS 7 have a limit of 200 KB for ASP requests in general and file uploads in particular.

Follow these steps in IIS 6

To remove this limitation in IIS 6 you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.

  1. Go to IIS and right click the server, select properties, and check the box "Allow changes to MetaBase configuration while IIS is running"

  1. if after this step the metabase file is still locked, try turning off IIS or even restarting the machine in safe mode; open the file in an editor; the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice

  1. Check whether the same variable shows up in other places in the file.
  2. do issreset

Or from the command prompt

  1. At a command prompt, type the following command, and then press ENTER:
  2. cd drive:\inetpub\adminscripts
  3. Note In this command to change folders, drive is a placeholder for the hard disk where IIS is installed.
  4. At a command prompt, type the following command, and then press ENTER:
  5. cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed size
  6. Note In this command, size is a placeholder for the largest file size upload that you want to allow. The maximum value is 1,073,741,824 bytes. At a command prompt, type the following command, and then press ENTER:
  7. iisreset

Follow these steps in IIS 7

  1. Open IIS Manager (inetmgr)
  2. Open "ASP"
  3. Go to Limit properties
  4. Edit maximum equesting Entity Body Limit - (say for eq 1073741824)
  5. do issreset

Or from the command prompt

C:\Windows\System32\inetsrv> appcmd set config /section:asp /maxRequestEntityAllowed:1073741824

Tuesday, July 27, 2010

How to Determine What Domain Controller Authenticated the User

How to Determine What Domain Controller Authenticated the User

Just type the following command in the command prompt , which will tell you the DC with which the machine has authenticated

> echo %logonserver%

Saturday, March 27, 2010

NET USE command

The NET USE command is used to associate a local drive letter or device name with a shared network drive or device. Most often, the NET USE command is used for network drive mapping.
The NET USE command can be used also to disconnect a computer from a shared resource, or to display information about computer network connections.

1.How do I display a list of network connections on my computer

Go to yoStart menu--> Run, type cmd and hit enter. Then, type NET USE and you will see
a list of connected network devices

2.How do I disconnect from a share using NET USE?

NET USE [driveletter: or share] /DELETE
Eg : net use z: /delete
net use \\share1\softwares /delete

In some case you want to map the share with another user credentials, and in such situations use the netuse / delete command as explained above to terminate the sessions properly

Managing Terminal Services Sessions Remotely

Normally windows has a limitation of maximum 2 user session in terminal service administration mode

Many times you might have faced problem in connecting to Terminal Services because both sessions are used up. I can use another server to check the status of the first one. As long as the logged in user has administrative rights on the non-accessible machine I would run this:

qwinsta /server:10.196.10.2

Where, 10.196.10.2 is the IP address or name of the non-accessible machine.

This will display something like this:

qwinsta /server:10.196.10.2

SESSIONNAME USERNAME ID STATE TYPE DEVICE

console 0 conn wdconn

rdp-tcp 65536 Listen rdpwd

rdp-tcp#470 Steve 1 Active rdpwd

rdp-tcp#471 Rajesh 3 Active rdpwd

Now I know that Steve and Rajesh are the two that are logged in. Since I know that Rajesh has left the office sometimes ago and might have forgotten to log off, I have decided to terminate his session.

To disconnect Rajesh's session I would type this:

rwinsta /server:10.196.10.2 3

Notice the 3 which is the session ID I found from using qwinsta above.

There is another command, “query “which can serve the same purpose , but i prefer using qwinsta (Query Windows Station) and rwinsta (Reset Windows Station) as they are fully compatible with W2K ,WinXP , W2K3 and win2k8

Thursday, October 8, 2009

Installing and Upgrading Perl module using PPM

This post describes how to install/upgrade perl modules using PPM on windows

1. To install a new package run ppm command from the command prompt


ppm install

eq: C:\PERL>ppm install Text::CSV_XS

2. To upgrade an existing package use the ppm upgrade command

ppm upgrade --install


In the following example we are trying to upgrade the Text::CSV_XS module

2.1 Check the current version

C:\PERL>perl -MText::CSV_XS -e "print $Text::CSV_XS::VERSION"
0.23

2.2 Update the current version

C:\PERL>ppm upgrade --install Text-CSV_XS
Text-CSV_XS 0.23: new version 0.65 available in Autonamed 3
Text-CSV_XS 0.23: new version 0.65 available in Autonamed 2
Text-CSV_XS 0.23: new version 0.35 available in ActiveState Package Repository
Text-CSV_XS 0.23: new version 0.35 available in ActiveState PPM2 Repository

Note: Text-CSV_XS version 0.23 is available from more than one place.
Which repository would you like to upgrade from?

1. Autonamed 3
2. Autonamed 2
3. ActiveState Package Repository
4. ActiveState PPM2 Repository

Repository? [ActiveState PPM2 Repository] 1
====================
Upgrade 'http://ppm.tcool.org/archives/Text-CSV_XS.ppd' version 0.65 in ActivePerl 5.8.2.808.
====================
Files found in blib\arch: installing files in blib\lib into architecture dependent library tree
Installing C:\Perl\site\lib\auto\Text\CSV_XS\CSV_XS.dll
Installing C:\Perl\site\lib\auto\Text\CSV_XS\CSV_XS.exp
Installing C:\Perl\site\lib\auto\Text\CSV_XS\CSV_XS.lib
Installing C:\Perl\site\lib\auto\Text\CSV_XS\CSV_XS.pdb
Installing C:\Perl\site\lib\Text\CSV_XS.pm
Writing C:\Perl\site\lib\auto\Text\CSV_XS\.packlist
Successfully upgraded Text-CSV_XS version 0.65 in ActivePerl 5.8.2.808.

2.3 Check the version again

C:\PERL>perl -MText::CSV_XS -e "print $Text::CSV_XS::VERSION"
0.65