Solved

Powershell to create automatically logon and execute PS

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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