Tuesday, August 17, 2010
Event ID: 6398, 6482, and 6641 for Share Point with error Access is denied
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
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.
- Go to IIS and right click the server, select properties, and check the box "Allow changes to MetaBase configuration while IIS is running"
- 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
- Check whether the same variable shows up in other places in the file.
- do issreset
- At a command prompt, type the following command, and then press ENTER:
- cd drive:\inetpub\adminscripts
- Note In this command to change folders, drive is a placeholder for the hard disk where IIS is installed.
- At a command prompt, type the following command, and then press ENTER:
- cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed size
- 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:
- iisreset
Follow these steps in IIS 7
- Open IIS Manager (inetmgr)
- Open "ASP"
- Go to Limit properties
- Edit maximum equesting Entity Body Limit - (say for eq 1073741824)
- do issreset
Or from the command prompt
Tuesday, July 27, 2010
How to Determine What Domain Controller Authenticated the User
Saturday, March 27, 2010
NET USE command
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
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.
Thursday, October 8, 2009
Installing and Upgrading Perl module using PPM
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