Shortcut in startup folder wont run

Hello experts,

I created a shortcut in %programdata%\Microsoft\Windows\Start Menu\Programs to run a registry file which is placed in c:\windows.
But when I log in with different user it wont run.
I created that shortcut on virtual machine and captured the image.
I works fine in VM. If i create a new user on VM, It runs good.
After the deployment, The shortcut is there but it wont run.
LVL 12
aravind ancheWindows/Vmware Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

n2fcCommented:
Having a *.reg file run when a user logs on can be a useful way of ensuring that users get the latest settings that you want them to have without having to go to each user and manually update their system. However, just adding the *.reg file to the users startup folder won't make the file load it's settings into the registry. You need to create a shortcut to REGEDIT with a set of parameters (which include the *.reg file) to run.

To create the shortcut, right click on your desktop or an empty space in Windows explorer and select New > Shortcut. In the "Type the location of the item" field, add the full command to run your registry file.

regedit /s "C:\My Reg Files\MyRegFile.reg"

Open in new window


Note that the path to the *.reg file is surrounded by quotes to allow the use of spaces, and that I have used the /s switch to run the file without prompting the user.

Click next and type a nice name for you shortcut. You can now move the shortcut into your "All Users" startup folder and the reg file will run silently whenver a user logs on.
0
aravind ancheWindows/Vmware Author Commented:
Yes
I created a shortcut with regedit /s "C:\windows\File.reg" and copied that shortcut to startup folder
0
aravind ancheWindows/Vmware Author Commented:
It run good on Image, but after deployment it wont run
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

n2fcCommented:
If it requires account elevation, it will need to be run as a scheduled task under the system acvount, and triggered by logon... If you need help doing this, lemme know and I'll post a link to a "how to"
0
aravind ancheWindows/Vmware Author Commented:
Thanks
yes I need please
i will try that too
0
n2fcCommented:
The article is here:
https://www.howtogeek.com/howto/windows-vista/create-administrator-mode-shortcuts-without-uac-prompts-in-windows-vista/

Although it references Vista, I have used this to schedule tasks in WIN 7 and Win 10...

It is a clever trick and works well!  Just read carefully... It sounds more complex than it is!
0
aravind ancheWindows/Vmware Author Commented:
that did not work
0
n2fcCommented:
Another article... might be easier to follow...
https://www.sevenforums.com/tutorials/67503-task-create-run-program-startup-log.html

When you say it didn't work... Are you getting any failure indications?  Is it just not running? Or is it running and not doing what it's supposed to?
0
aravind ancheWindows/Vmware Author Commented:
Thanks
This post show that I need to log into that account where I want to create a task.
I want to create a task in local account and once deployed it should run for all domain users
0
n2fcCommented:
Check out steps 12 & 13...

If scheduling from an admin acct, you should be able to select "at logon" and "any user"

However, this will only be applicable to the machine in question...

If you want it to work in s domain, you will need to use Group Policy...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.