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”


Thanks to SharePoint Nomad for pointing this one out:

Happy ‘STSADMing’!

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: