Answer File OptionsFirst Logon Scripts Property
Gets or sets a collection of PowerShell scripts to run during first log-on.
Definition
Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
A collection of scripts, with their path and arguments.
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
C#
public Collection<string> FirstLogonScripts { get; set; }VB
Public Property FirstLogonScripts As Collection(Of String)
Get
SetC++
public:
property Collection<String^>^ FirstLogonScripts {
Collection<String^>^ get ();
void set (Collection<String^>^ value);
}F#
member FirstLogonScripts : Collection<string> with get, setProperty Value
CollectionStringA collection of scripts, with their path and arguments.
Remarks
The scripts specified by this property will be executed by invoking Windows PowerShell using PowerShell.exe -ExecutionPolicy Bypass. This is provided for convenience, and there is no difference between this property and using the FirstLogonCommands property to explicitly invoke PowerShell.
The scripts will run after any commands specified by the FirstLogonCommands property.