@Craig-Lush ,
You could use the Get-Content
cmdlet to read from a text file. Is the file local or in a shared location?
Get-Content will read the entire file, and each line will be a member of an array. For example if you had the following in c:\test.txt:
Hello World
Serial Number
You could run the following $fileData = Get-Content "C:\test.txt"
$fileData[0]
would return "Hello World"
$fileData[1]
would return "Serial Number"
To run a script the first time a user logs on only, you will need to modify the default user profile that gets copied when a new user logs on. There is a good set of instructions here:
https://support.microsoft.com/en-us/help/325347/how-to-run-a-logon-script-one-time-when-a-new-user-logs-on-in-windows
Let me know if you need help creating the script or modifying the default profile.
Mike Rodrick
Edutainer, ITProTV
**if the post above has answered the question, please mark the topic as solved.