Skip to content

Initialize-Variables

Populates the $global:gs* variables (program paths, Windows directories, disk space status, OS version/build/edition, computer hardware info, job configuration — see PowerPack Global Variables) from the $cs object, and sets $global:AppLogFolder.

Initialize-Variables

None. Uses the script-scoped $cs, $DllPath and $LogFile variables.

Boolean. $true if the loaded ScriptingLibrary DLL version is 0.2.0.0 or higher (meaning the full variable set is supported), $false otherwise.

Terminal window
# From the MAIN section of the script template — shown for reference only:
$cs = Add-PSDll
Initialize-Variables

Add-PSDll PowerPack Global Variables