Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to launches a user-defined process using a temporary user profile created/removed every time its launch in C#.Net.

Required output format:
ProcessPath ProcessUserName

Example output:
c:\windows\notepad.exe TestUser
c:\windows\system32\cmd.exe AnotherUser
c:\windows\system32\mspaint.exe YetAnotherUser
Posted
Updated 7-Sep-14 19:27pm
v2

This is the same question as Design and develop a PowerShell script that launches a user-defined process using a temporary user profile created/removed every time[^]. Please do not repost the same question multiple times; edit your original.
 
Share this answer
 
Not sure if I understood your question correctly, but if you want to start a process and run it using a different username, you can use for example Process.Start Method (String, String, SecureString, String)[^] method.
 
Share this answer
 
Comments
Jhony_Bravo 8-Sep-14 2:34am    
Thanks allot
Wendelius 8-Sep-14 3:23am    
You're welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900