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

Popular posts from this blog

[SOLVED] The SharePoint Timer Service service terminated unexpectedly. Event ID : 7031

FIX : The password supplied with the username Domain\Username was not correct. Verify that it was entered correctly and try again.