We help IT Professionals succeed at work.

Using Powershell to autostart a program, in minimised mode and autologin

159 Views
Last Modified: 2017-12-25
Hello,
Are there any Powershell experts out there?
I would like to create a Powershell script do to the three functions below. Please provide clear steps for doing this as I am a novice with Powershell

1. Start a program when Windows starts
2. The powershell script must start the programs by autologon using the programs stored usernames and passwords in the Powershell script (see attached files)
3. The programs must be started in minimised mode (in the taskbar)

My reason for doing this
* I don't want the programs to start in full mode or be launched manually for people to see the usernames or click SHOW to see the password. I also do not want to give out the usernames/passwords for these programs.

Both programs have the option of saving the passwords but after a few Windows reboots, the passwords are no longer remembered and require manual entry. I want to avoid this by not using the save passwords option but using Powershell instead.

If you're aware of any other scripting language that can do this, please let me know but I ask that you're clear with your instructions. I have ZERO knowledge of scripting.
steam.PNG
Origin.PNG
Comment
Watch Question

Consultant
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thanks Alan! I was not aware of that option. I'll test it in a few minutes and let you know the result

Author

Commented:
Hi Alan,
The programs require their own separate usernames/passwords to actually login. The accounts to login are not Windows accounts. I need a way to specify the usernames and passwords for the programs to login.
AlanConsultant
CERTIFIED EXPERT

Commented:
Hi Don,

Depending on other GPOs, you might need to enable 'loopback processing' on the GPO you create for this.

Try it without, and if it doesn't work, try enabling that option.

Alan.
AlanConsultant
CERTIFIED EXPERT

Commented:
Hi Don,

The programs require their own separate usernames/passwords to actually login. The accounts to login are not Windows accounts. I need a way to specify the usernames and passwords for the programs to login.

The Group Policy option won't work for that, except perhaps to kick off a script.

I don't know that I am up to the PowerShell approach - I'll have a think, but no promises!


Alan.

Author

Commented:
Hi All,
Thanks for your input. Apologies for the delay. I have been trying lots of ideas. I tried several password managers like Keepass, One Password, Lastpass, Sticky Password but none could store and input the password into the application. In the end, I have published the password but restricted what users can do. That seems to be working for now.
AlanConsultant
CERTIFIED EXPERT

Commented:
Hi DonKwizote,

I guess if those credentials can't do anything other than the minimum required to get it to work, then the risk is probably quite low, so should be fine.  You might want to contact the software vendor, and ask how other businesses have set this up - maybe you could replicate one of their solutions?

However, if you are okay now, please can you close the question.

Thanks,

Alan.
AlanConsultant
CERTIFIED EXPERT

Commented:
Hi DonKwizote,

How are you gong on this?  Is there anything else we can help with?

If all done, please can you close the question.

Thanks,

Alan.
PberSolutions Architect
CERTIFIED EXPERT

Commented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Alan (https:#a42346930)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions