LoadProfiles Property
Whether to load profiles.
Syntax
[VB.NET] Public Property LoadProfiles As Boolean
[C#] public bool LoadProfiles {get; set;}
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.
Default Value
False