Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
xp_cmdshell Enable
xp_cmdshell Enable
Rate Topic
Display Mode
Topic Options
Author
Message
Ezhilan
Ezhilan
Posted Thursday, November 15, 2007 4:40 AM
Valued Member
Group: General Forum Members
Last Login: Tuesday, December 08, 2009 10:24 AM
Points: 63,
Visits: 61
Hi,
Could you please help me out this issue
I am facing an issue with xp_cmdshell
folowing are error message,how do i enable xp_cmdshell
"The xp_cmdshell proxy account information cannot be retrieved or is invalid. Verify that the '##xp_cmdshell_proxy_account##' credential exists and contains valid information. "
Post #422547
Balmukund Lakhani-269523
Balmukund Lakhani-269523
Posted Thursday, November 15, 2007 4:45 AM
Old Hand
Group: General Forum Members
Last Login: Monday, April 01, 2013 3:41 AM
Points: 339,
Visits: 240
What is the account by which you have logged in?
Most likely you account is not a member of sysadmin role, then the SQL Server 2005 will use the proxy account to run the OS command which command called by xp_cmdshell. You omer must to create a credential first and mapping a window account using this command:
EXEC sp_xp_cmdshell_proxy_account ‘proxy account’ ,’password’
Post #422550
Brandie Tarvin
Brandie Tarvin
Posted Thursday, November 15, 2007 4:52 AM
SSCertifiable
Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 6,657,
Visits: 5,680
And to enable xp_cmdshell (if you haven't already), go to SQL Server Surface Area Configuration -> Features. This is where you can enable it. It'll be listed under the Database Engine as xp_cmdshell. There's a check box that you need to click on and that's all you need to get started.
Just remember that xp_cmdshell is disabled by default because of security issues. And just because you enable it doesn't mean you've got the proxy account stuff working.
Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA
Webpage
:
http://www.BrandieTarvin.net
LiveJournal Blog
:
http://brandietarvin.livejournal.com/
On
LinkedIn!
,
Google+
, and
Twitter
.
Freelance Writer:
Shadowrun
Latchkeys: Nevermore
,
Latchkeys: The Bootleg War
, and
Latchkeys: Roscoes in the Night
are now available on Nook and Kindle.
Post #422552
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.