In my last blog I talk about adding the STSADM command path as the first line of your scripts. However, you can just create a Variable Path that points to STSADM, and never worry about typing out it's location ever again from a command prompt. Here is how to add a path variable in Server 2008.
- Start menu --> right-click Computer --> Properties.
- From the Properties window, click Advanced system settings.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVrmcjAkTdmoMxDkWhEpRf_QJeCv_2oaVnR-xPbv5f0yWLAvpZApncDZPd81Z735EhdVj7TaPzQfvnszt4v7ZLB5Jht_cRjzuF8dXiFnG3INX152XSi8HEfWaRmybXk0GlKezyO4kTxOfy/s320/Computer+Properties.jpg)
- Click Environment Variables.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRaXdRn7OV_8GXU4heZSnIfudU3JC5v7K3lAordng8ENJuaT895z-SmrxITEfOIAsBo-A9qizbvCDLlTOmrfgYUddXSRq-xYJX2-zGBIlAz6Ys3cUy3VCEcaRNqt2vFuu58pmMDG_yIgOX/s320/System+Properties.jpg)
- Under System variables, scroll down and select the Path Variable --> Edit.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIP_0C80PkqOAXogNbs16W_nztIrwkuuCOw8PiegyeAq6iRP3gI_9GkFUqV99-DmGDOp5aCNymA2iDH-bJexiALdGT-dQ2g2kPT9rqeCLbII6Ixi5qaWwWHwjogcPX6b2LyVY4-TIsfUeM/s320/Environment+Variables.jpg)
- Add a semi-colon (;) at the end of the last Variable value and paste in the path to STSADM:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
No comments:
Post a Comment