-
Notifications
You must be signed in to change notification settings - Fork 0
Manual Installation
Luke Skrzypek edited this page Dec 3, 2024
·
1 revision
Manual installation of PowerShell SDK:
The following steps can be taken to manually install the ShareFile PowerShell modules:
- Build the
ShareFileModuleproject; it multi-targets both Net Framework 4.8 and Net 8.- Publish the
net8.0-windowstarget of theShareFileModuleproject.- For the
ShareFilemodule used for PowerShell 5.X, copy the contents of ...\ShareFileModule\bin\Release\net48 to a folder namedShareFileat your chosen destination. (ex.%userprofile%\Documents\Modules)- For the
ShareFile-Coremodule used for PowerShell 7+, copy the contents of ...\ShareFileModule\bin\Release\net8.0-windows\publish to a folder namedShareFile-Coreat your chosen destination.- Add the path of your chosen destination (ex.
%userprofile%\Documents\Modules) to the PSModulePath environment variable.
To uninstall, simply remove the added paths from the PSModulePath environment variable, and delete the copied files.
Note: The PowerShell SDK is not signed, so you may need to modify the execution policy in PowerShell. The easiest way is to run Set-ExecutionPolicy RemoteSigned, but check the documentation on script signing to understand what the security impact of your choices are. http://technet.microsoft.com/en-us/library/hh849812.aspx