Scripting Integrator 2016 PHP Edition
Scripting Integrator 2016 PHP Edition
Questions / Feedback?

LoadProfiles Property

Whether to load profiles.

Object Oriented Interface

public function getLoadProfiles();
public function setLoadProfiles($value);

Procedural Interface

inscript_powershell_get($res, 1 );
inscript_powershell_set($res, 1, $value );

Default Value

false

Remarks

This setting controls whether profiles are loaded when the PowerShell runspace is created by calling Eval or EvalFile. If set to True profiles are loaded just as they would be when running PowerShell directly. The default value is False.

The class will look for profiles in the following locations:

  • %windir%\system32\WindowsPowerShell\v1.0\profile.ps1
  • %windir%\system32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
  • %UserProfile%\My Documents\WindowsPowerShell\profile.ps1
  • %UserProfile%\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
To load profiles with a prefix other than "Microsoft.Powershell" set ProfileId.

This property is not available at design time.

Data Type

Boolean

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
Scripting Integrator 2016 PHP Edition - Version 16.0 [Build 7240]