I need a powershell script that will query the printers for a user, get the name of that printer, and then replace it in a text file on there desktop. The name will always be static for the printer except for a number.
RECIEPT (from WYSE) in session 10,winspool,Client:10:RECIEPT
RECIEPT (from WYSE) in session 7,winspool,Client:7:RECIEPT
on next logon. I need to get this name and replace a string in a txt file with the new string if diffrent.