Skip to content

Detailed Setup

Important

Entrinsec Powershell prerequisites can be found here.

Review the Entrinsec MIT license

MIT License

Install Nuget

  • Download nuget.exe from the official Nuget.org
  • Place the single nuget.exe file in a folder in your PATH, i.e. C:\Program Files\Nuget
  • If required, add C:\Program Files\Nuget to your system wide PATH

Test Nuget

From Powershell type nuget source list to confirm that Nuget works and also to list sources where you can pull Nuget packages from.

You should see something like this...

1
2
3
Registered Sources:
    1.  nuget.org [Enabled]
        https://api.nuget.org/v3/index.json

Setup the Entrinsec Nuget Repository

Go here and run the Setup the Entrinsec nuget repository in Powershell.

Clear-Host

# Your user module path
$modulePath = "C:\Powershell\Entrinsec"
Set-Location -Path "$modulePath"

# Check if Entrinsec source exists and remove it if it does
$sourceName = "Entrinsec"
$existingSource = nuget sources list | Select-String -Pattern $sourceName

if ($existingSource) {
    nuget sources remove -name $sourceName
}

# Add Entrinsec as a nuget source
Clear-Host

nuget sources add -name $sourceName -source "https://nuget.entrinsec.com/api/packages/Entrinsec/nuget/index.json"

# List all nuget sources
nuget sources list

Installing and Testing Entrinsec Modules

As an administrator, test installing several core modules and then run the suggested Show-ToastNotification Powershell function.

1
2
3
4
5
6
7
Clear-Host
# As an administrator...
# This will install machine wide so that modules and functions are automatically visible to PowerShell
nuget.exe install Entrinsec.Powershell.Common -Source "Entrinsec" -OutputDirectory "C:\Program Files\PowerShell\Modules" -ExcludeVersion

# Run a test with...
Test-Admin

Entrinsec Code

Entrinsec code can be found here