Initialize-Variables
Description
Section titled “Description”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.
Syntax
Section titled “Syntax”Initialize-Variables
Parameters
Section titled “Parameters”None. Uses the script-scoped $cs, $DllPath and $LogFile variables.
Return value
Section titled “Return value”Boolean. $true if the loaded ScriptingLibrary DLL version is 0.2.0.0 or higher (meaning the full variable set is supported), $false otherwise.
Example
Section titled “Example”# From the MAIN section of the script template — shown for reference only:$cs = Add-PSDllInitialize-Variables