Greeting, I have this code that will run when windows startup. The code simply will kill explorer.exe and start remote desktop connection program even a user exit the program it will be restart again.
I have no problem with code but I want to hide powershell.exe from the desktop or minimize it with disabling close button either one will work for me. I want to do that with powershell program not with remote desktop connection.
Please advice me how to do it.
Regards,
Here is my code:
$i =0
While ($i -le 1)
{
# get a handle for the Notepad process to wait for
$rdp = [System.Diagnostics.Process]::Start( "rdp.rdp" )
# wait indefinitely...
$rdp.WaitForExit()
Start rdp.rdp
}