Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

NEW Script run at login

  • Thread starter Thread starter mels_101
  • Start date Start date
  • Replies Replies 7
  • Views Views 3K

mels_101

Well-Known Member
Messages
51
Solutions
3
Reaction score
1
Points
8
H all

To make an app work, I need to run a cmd script when each user logs into a pc for the first time.

Any ideas how to do this?
 
Hi mels_101,

Create a package in "Application Management, Packages" and specify the options as you wish:
There is two run modes, run as a user or as an administrator.
You deploy after the package on the target users.

upload_2017-9-24_8-18-47.png
 
Thanks Yousseff will give this a try, it take it you could use an application deploy to using the above and have it run a batch file with a user detection check in the user registry.
 
No, you can deploy directly a package with a batch file if you want and you specify a detection for checking a registry key if it already existed or no.
 
deploy your batch file to there C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp and like Youssef mentioned use IF NOT EXIST reg key then run the command
 
Back
Top