Solved

Powershell to create automatically logon and execute PS

Posted on 2015-02-08
4
69 Views
Last Modified: 2015-02-26
Hey

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

Thanks in advance

Michael
0
Comment
Question by:mikeydk
4 Comments
 
LVL 4

Expert Comment

by:Praveen Kumar Bonala
ID: 40596852
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
 

Author Comment

by:mikeydk
ID: 40596881
Hey

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

Thanks in advance
0
 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 total points
ID: 40614149
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question