Is it possible to get currently signed in user in a batch script? We have power-shell execution disabled besides for calling bat scripts. Currently I am working on a project that I require getting the current user logged in ex: pirateesports01, pirateesport02, ... I tried using %username% during testing and it worked fine but then when I pushed it through filewave, it was a no go. I looked at the log and it was using Administrator, which I should have guess but since I was logged in as esports01 i hopped it would use that. I also tried using %userprofile%, still no luck. %userprofile% returns C:\windows\system32\config\systemprofile as the user profile so that wont work for my script either.
install_script.bat