One Line Setups
This is the fastest way to install, configure and start using Entrinsec Powershell Modules.
Copy a block of your preference into a Powershell (pwsh) 7.x session, that is running as a local administrator, and execute it.
This method of installing Entrinsec Powershell modules is very useful for both simplicity, enterprise and business deployment.
Note that running any of these One Line Powershell blocks will install, re-install, update and allow you to keep the latest Entrinsec Powershell modules installed.
Important
Entrinsec Powershell prerequisites can be found here.
Nuget
EVERYTHING
Install all Entrinsec Powershell Modules
| If (-not ([Security.Principal.WindowsPrincipal] `
[Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
) {
Throw "This script requires administrator privileges."
} else {
Clear-Host;
nuget install Entrinsec.Powershell.SETUP;
Import-Module Entrinsec.Powershell.SETUP;
Initialize-EntrinsecNuget -EVERYTHING;
pause;
exit
}
|
CORE
Install just the core Entrinsec Powershell Modules
| If (-not ([Security.Principal.WindowsPrincipal] `
[Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
) {
Throw "This script requires administrator privileges."
} else {
Clear-Host;
nuget install Entrinsec.Powershell.SETUP;
Import-Module Entrinsec.Powershell.SETUP;
Initialize-EntrinsecNuget -CORE;
pause;
exit
}
|
ENTERPRISE
Install Entrinsec Powershell Modules that would be considered enterprise and business friendly, i.e. no gaming specific modules.
| If (-not ([Security.Principal.WindowsPrincipal] `
[Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
) {
Throw "This script requires administrator privileges."
} else {
Clear-Host;
nuget install Entrinsec.Powershell.SETUP;
Import-Module Entrinsec.Powershell.SETUP;
Initialize-EntrinsecNuget -ENTERPRISE;
pause;
exit
}
|
Powershell Gallery
EVERYTHING
Install all Entrinsec Powershell Modules
| If (-not ([Security.Principal.WindowsPrincipal] `
[Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
) {
Throw "This script requires administrator privileges."
} else {
Clear-Host;
Install-Module -Name Entrinsec.Powershell.SETUP `
-Repository "PSGallery" `
-Force `
-Scope AllUsers;
Import-Module Entrinsec.Powershell.SETUP;
Initialize-EntrinsecNuget -EVERYTHING;
pause;
exit
}
|
CORE
Install just the core Entrinsec Powershell Modules
| If (-not ([Security.Principal.WindowsPrincipal] `
[Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
) {
Throw "This script requires administrator privileges."
} else {
Clear-Host;
Install-Module -Name Entrinsec.Powershell.SETUP `
-Repository "PSGallery" `
-Force `
-Scope AllUsers;
Import-Module Entrinsec.Powershell.SETUP;
Initialize-EntrinsecNuget -CORE;
pause;
exit
}
|
ENTERPRISE
Install Entrinsec Powershell Modules that would be considered enterprise and business friendly, i.e. no gaming specific modules.
| If (-not ([Security.Principal.WindowsPrincipal] `
[Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
) {
Throw "This script requires administrator privileges."
} else {
Clear-Host;
Install-Module -Name Entrinsec.Powershell.SETUP `
-Repository "PSGallery" `
-Force `
-Scope AllUsers;
Import-Module Entrinsec.Powershell.SETUP;
Initialize-EntrinsecNuget -ENTERPRISE;
pause;
exit
}
|