Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Design and develop a PowerShell script that launches a user-defined process using a temporary user profile created/removed every time its launch.

Required output format:
ProcessPath ProcessUserName

Example output:
c:\windows\notepad.exe TestUser
c:\windows\system32\cmd.exe AnotherUser
c:\windows\system32\mspaint.exe YetAnotherUser

Please help me out .... Please please please.
I have no much idea about power shell.
Required both in c# and powershell.
Posted

If you have no idea how to do this then you have the following choices:

  • Give up on this course, and choose one that you are interested in.
  • Tell your teacher that you do not understand the assignment prerequisites and need extra coaching.
  • Pay someone else to do your work for you, and fail the course.
  • Make an effort to learn Powershell and/or C# and use your own efforts to succeed in your life goals.

Good luck.
 
Share this answer
 
Comments
Jhony_Bravo 7-Sep-14 8:27am    
Well em learning c# , but em not getting any idea how to start with. N my teacher wants this answer either in c# or in powershell tom. Plz help.
Found this Solution for Power Shell:

Switch ($env:username) {
'User1' { notepad ; break}
'User2' { calc ; break}
Default {}
}


can anyone help me in C#.
 
Share this answer
 

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