Solved

Powershell to create automatically logon and execute PS

Posted on 2015-02-08
4
63 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Hi all.   The other day I had to change the passwords for a bunch of users on the fly. Because they were so many, I decided to do it in an automated way and I would like to share it with you all.   If you are not doing it directly in a Domain Co…
Set OWA language and time zone in Exchange for individuals, all users or per database.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now