Skip to content
August 22, 2012 / red1s

Running STSADM from within PowerShell


 

I’ve come to use and love PowerShell more and more over time, however still find my self remembering STSADM commands (and wanting to use it) pretty much- (backup/restore, etc.) …

A colleague of mine mentioned that this is possible and after some searching I found the following command which can be used to do trust this – it allows you to call stsadm command s from within PowerShell (for the old skool SP Admins out there)

Set-Alias -Name stsadm -Value $env:CommonProgramFiles”\Microsoft Shared\Web Server Extensions\12\BIN\STSADM.EXE”

clip_image001

Thanks to SharePoint Nomad for pointing this one out: http://sharepointnomad.wordpress.com/2009/12/30/calling-stsadm-from-within-a-powershell-script/

Happy ‘STSADMing’!

Advertisements

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: