SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%     Register today for your FREE 'To The Point' SharePoint eNewsletter
     
     
Skip Navigation Links.
Collapse Office and SharePointOffice and SharePoint
Collapse Newsletter ArchivesNewsletter Archives
Making Document Libraries More Accessible: Scripting Network Places and Network Locations
An Overview of SharePoint Pro Online Live!
Expand SharePoint Backup Strategies SharePoint Backup Strategies
October 16, 2007
Introducing Office and SharePoint Pro
Windows SharePoint Services and Windows Server File for Divorce
What Do You Think? New Products and Addons Forums
Use Kerberos to Secure MOSS 2007
The SharePoint Capacity Planning Tool
Service Packalooza
SharePoint News for the New Year
SharePoint Migration Secrets
SharePoint Replication
Windows Server 2008 and Windows Vista SP1: What They Mean to SharePoint
SharePoint and Forms-based Authentication
The SharePoint Permissions Model
Microsoft Online Services Offers SharePoint to Businesses of All Sizes
SharePoint: What Do YOU Think?
STSADM at Your Service
Adding Templates for Top-Level Sites
Taking the Pulse of the SharePoint Community
Big News on the Collaboration Front from Telligent
SharePoint Report Card: Search
Report from the Microsoft MVP Summit 2008
Summary of SharePoint Scenario Report Cards
Got Yahoo!? I’m so sorry.
Implementing Folder Content Types
License to Fill: Licensing Windows SharePoint Services for the Extranet
Licensing Windows SharePoint Services
News from Tech Ed, Installing WSS on Vista—a Rave and Rant, and More
Tech Ed 2008 Wrap-Up
Great Stuff
MOSS 2007 Applications in the Business World
Microsoft Online Makes a Big Splash in the Services Pool
Comparing InfoPath and SharePoint Designer Forms
Comparing InfoPath and SharePoint Designer Forms, Part 2
Migrating Microsoft Office SharePoint Server 2007 to a Different Server
Microsoft Office SharePoint Server and Excel Services
SharePoint Sharing from Beijing
Olympics Diary
SharePoint’s Role in Bringing the Games to the Web
Email-Enabling SharePoint Document Libraries and Lists
Back to Reality
SharePoint's "Big" Problems
If You Build It Right, They Will Come
Deploying Shortcuts and Favorites to SharePoint Sites
SharePointers
Easy Answers about Document Libraries (Part I): Overriding Check Out
Spiral Development, the 80/20 Rule and SharePoint
SharePoint Calendar Tips
Sharepoint Futures
Excel Services and Excel Integration with SharePoint
My Migration to Microsoft Online
SharePoint Online's Debut
A Microsoft Online Report Card
Links, Links Everywhere...
Creating a Custom Advanced Search by Building Strings with JavaScript
If Steve Ballmer Were Santa, and I Were on His Lap
MVP Predictions for 2009
Expand Office 2007Office 2007
Expand Office 2003Office 2003
Expand SharePointSharePoint
Announcements
     

     

     
     

STSADM at Your Service
Source Format Font Size Personalization Tags
ToTheSharePoint Newsletter
March 17, 2008


By Dan Holme
Office & SharePoint Pro
Community Manager

SharePoint Pro Live! Hits the Road
This week I send you greetings from beautiful San Diego, California, where we're launching the SharePoint Pro Live! tour. For the next six weeks, we’ll be hitting ten cities across the country with a fantastic set of technical workshops for IT professionals. Come join us for an independent, expert view into SharePoint Products and Technologies!

STSADM at Your Service
Anyone who does anything with SharePoint knows that the Stsadm.exe command is indispensible. It’s used for so many administrative, troubleshooting, and maintenance tasks. Problem is, it’s buried way deep down inside the Program Files directory, and you need to dig down to that location before you can start using the command. Here’s a great tip for making Stsadm easier to get to and easier to use.

1. Open Notepad and enter the following commands. Each bullet represents one line in the text file:

• @echo off
• set path=%path%;c:\program files\common files\microsoft shared\web server extensions\12\bin
• d c:\
• @echo on

2. Save the file as “STSADM Command Prompt.bat” in a location accessible to both your normal user account and your administrative user account (if they are different). The batch file can be hidden away somewhere--but it's important that you have permission to read the file as both your normal user account and your administrative account.

3. Create a shortcut to the batch file. Put the shortcut somewhere very accessible, like on your desktop or in your Start menu.

4. Open the properties of the shortcut. On the TARGET line, add to the beginning of the line: cmd.exe /k

5. Click the Apply button. Windows will change cmd.exe /k to c:\windows\system32\cmd.exe /k.

• The Target line will now read:
C:\WINDOWS\system32\cmd.exe /k "path\STSADM Command Prompt.bat"

6. Click the Advanced button.

7. On Windows Vista or Windows Server 2008, select Run As Administrator. On Windows XP or Windows Server 2003, choose Run With Different Credentials (assuming you use a separate, administrative account to run Stsadm).

Double-click the shortcut. You’ll be prompted to run the shortcut with appropriate administrative credentials. Then a command prompt will open, set to the root of the C:\ drive (based on the third line in the batch file). Type path and press Enter. You’ll see that the system path now includes the folder in which Stsadm is found. That folder was added to the system path by the second line in the batch file.

Test the command prompt by typing STSADM /? and pressing Enter. You’ll see the usage information for Stsadm.exe displayed. Now you can use Stsadm commands to administer the server without having to dig into the deepest crevices of the Program Files folder.

Enjoy the easy access to Stsadm! Until next time, stick to the SharePoint!

Until next week, all the best!

Dan Holme

danh at intelliem dot (top level commercial domain)

 

You are subscribed as #email#.

You are receiving this email message because you subscribed to this newsletter on our Web site. Click here to unsubscribe.

Office & SharePoint Pro | Penton Media | 249 W. 17th Street | New York, NY 10011 | Privacy Policy