I'm working on trying to find a way to get our windows machines to report to a webpage with information about it's MAC address, computer name, currently logged in user, and ip address. I wrote a powershell script and set it up as a scheduled task. It works great but there is a window that appears every time the script runs. Is there a way to not show the window. I've tried running with "-noninteractive", "-nologo", "-windowstyle hidden", "-noprofile", all to no avail. This is what I use to run it.
"powershell.exe -noninteractive -nologo -windowstyle hidden -command "C:\Users\%LogonUser%\Scripts\CallHome.ps1"