0
I log in as domain user and i want in powershell (or in simple console, no matter) to run a program. the program clean user appdata unnecessary files so it has to operate within user profile. I can do runas but i got profile of admin user. How can i reach domain user profile? in silly words something like Start-Process -Verb runas -Credential adminuser -LoadUserProfile domainuser -FilePath c:\Programm Files... . Is it possible at all?
Why not just run it as the user whose profile is being cleaned? – Patrick Seymour – 2018-08-12T01:22:15.800