FIX : stsadm is not recognized as an internal command

If you try to run SharePoint STSADM.exe in powerShell and getting this error


To resolve the error message you need to edit the profile.ps1 file
Its located in C:WINDOWS\SYSTEM 32\WindowsPowerShellL\v1.0\


if the profile.ps1 file dose not exists, just create a new file and add the following code


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


Happy Coding  !!!



Comments