Some Useful Power Shell Commands


  • Reset farm account credentials:

stsadm.exe -o updatefarmcredentials -userlogin domainusername -password password

  • Creating Classic Authentication Web Application in Sharepoint 2013:

New-SPWebApplication -Name “name” -ApplicationPool “AppPoolName” -AuthenticationMethod “NTLM” -ApplicationPoolAccount (Get-SPManagedAccount “domainusername“) -Port portnumber -URL “http://url/”

  • For Adding and deploying solution
    run this command on command prompt
    “%CommonProgramFiles%Microsoft Sharedweb server extensions14BINstsadm.exe” -o addsolution -filename “G:EasyTabParts.wsp””%CommonProgramFiles%Microsoft Sharedweb server extensions14BINstsadm.exe” -o deploysolution -name EasyTabParts.wsp -immediate -force -allowgac -url http://machinename:portno

View original post

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.