LoadProfiles Property
Whether to load profiles.
Syntax
property LoadProfiles: Boolean;
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 component 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
This property is not available at design time.
Data Type
Boolean