The STSADM.exe is command-line tool for administration of Office SharePoint Server (SharePoint 2007, SharePoint 2010). It is installed on the same location as SharePoint Products and Technologies location: %COMMONPROGRAMFILES%\Microsoft Shared\Web Server Extensions\12\bin (for SharePoint 2007) or %COMMONPROGRAMFILES%\Microsoft Shared\Web Server Extensions\14\bin (for SharePoint 2010). You must be Farm Administrator to be able to run the tool.
By default, the STSADM.exe must be executed locally since it will access SharePoint Object Model. It is also necessary for the tools to connect to the SQL Database using credential of the user who executes it. Therefore, normally the Administrator must remote-login to the SharePoint server before he/she can run the tools.
Remote execution of STSADM.exe using PowerShell Invoke-Command cmdlet faces double-hop challenges. This occurs when SQL Database for the farms is installed on different machine than the SharePoint server. The credential in the Invoke-Command session can not pass through to the SQL Database without configuring delegation in the WinRM services. This module solve double-hop problem without configuring CredSSP.
Install-Package RemoteStsAdm -Version 1.0.2
dotnet add package RemoteStsAdm --version 1.0.2
<PackageReference Include="RemoteStsAdm" Version="1.0.2" />
paket add RemoteStsAdm --version 1.0.2
#r "nuget: RemoteStsAdm, 1.0.2"
// Install RemoteStsAdm as a Cake Addin #addin nuget:?package=RemoteStsAdm&version=1.0.2 // Install RemoteStsAdm as a Cake Tool #tool nuget:?package=RemoteStsAdm&version=1.0.2
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.