Powershell to create automatically logon and execute PS

Hey

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

Thanks in advance

Michael
LVL 1
mikeydkAsked:
Who is Participating?
 
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?
0
 
Praveen Kumar BonalaProgrammer AnalystCommented:
Hi,
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...
0
 
mikeydkAuthor Commented:
Hey

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

Thanks in advance
0
All Courses

From novice to tech pro — start learning today.