Powershell to create automatically logon and execute PS


I'm looking for a powershell script to create a automatically logon and after login executes a powershell script.

Thanks in advance

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Neil RussellConnect With a Mentor Technical Development LeadCommented:
If the script needs a GUI that would imply it needs user intervention.  If it needs user intervention then get the user to logon and have the script in the startup folder.

If it does NOT need user intervention then why does it need a gui to run?
Praveen Kumar BonalaProgrammer AnalystCommented:
following is my finding.
1. you are already holding a power shell script will assume it as test1.ps.
2. you need to another ps, which using to login into system and execute test1.ps
correct me if I am wrong.

instead of creating new ps, you can schedule test1.ps, it will executed automatically at required time with out login into system.

Please let me know if you are expecting other things to do...
mikeydkAuthor Commented:

Correct, but I have to logon because the script (I have) needs a GUI to work.

Thanks in advance
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.