SharePoint By Yagya Shree

MOSS 2007: When trying to run “stsadm” command in windows server 2008, getting error message “Access Denied”

leave a comment »

Problem Description:
——————————
–When users are trying to run “stsadm” command in the command prompt after going to the path
c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Bin

–They are getting error message “Access Denied”

SYMPTOMS:
—————–
–“psconfig” command run the setup but “stsadm -help” or any other command with “stsadm” will not run and will give you error message

ERROR MESSAGE:
————————–
“Access Denied”
CAUSE:
———–
–Windows Server 2008 have a new security feature called User Account Control (UAC) which does not any user to run the command or execute and file with proper authentication

RESOLUTION:
——————–
–Click on “start” button of the windows server 2008 and open “control panel” window
–Now in the “control panel” window, on the top left hand side we will see “classic view”, click on that
–Now we have icon, open “user accounts”
–Just under “make changes to your user account”, you will see “turn user account control on or off”. Click on that
–You will get a window asking you to click “continue”, click “continue” on that prompt
–Now you will see a check box saying “use user account control (UAC) to help protect your computer”
–Uncheck the option and click “Ok”
–After that you will be prompted to “Restart Now” you server. Save you work and restarted you server.
–After Restarting try to run the “stsadm” command and you will see it will run normally.
STEPS TO REPRO:
————————–
–Go to command prompt and change the directory path to
c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Bin
–type “stsadm -help” [without quotes]
–you will get an error “Access Denied”

ADDITIONAL INFORMATION:
—————————————–
–[WORKAROUND] If we open the command prompt by Right Click and from drop down menu select “Run as Administrator”, the “stsadm” command will run fine also without any error. This is a workaround where user does not want to turn off user account control (UAC)
–Same behavior was exhibited by windows VISTA

ENVIRONMENT:
———————–
Office SharePoint Server 2007 with SP1 (32-bit)
Windows Server 2008 Enterprise (32-bit)
SQL Server 2005 with SP2 (32-bit)

KEYWORDS:
———————
MOSS access denied permission windows server 2008

Advertisements

Written by Yagyashree

May 1, 2009 at 6:39 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: