Scripting Integrator - Online Help
Scripting Integrator
Questions / Feedback?

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
To load profiles with a prefix other than "Microsoft.Powershell" set ProfileId.

This property is not available at design time.

Default Value

False

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 1.0.6240.0