On the Actions tab, select “Start a program” as the action and enter the network share of your logon script. On the Triggers tab, specify to being the task “At log on.” Make sure that you enter a user account that has administrator rights on your client computers and that you select “Run whether user is logged on or not.” ![]() You can find Scheduled Tasks in Computer and User Group Policy Preferences under Control Panel Settings. This option makes senses if you have other commands in your logon script that need administrator rights. ![]() However, you can work with scheduled tasks. Therefore, I don’t recommend this option. The second problem of this option is that UAC will get in your way this usually means that you have to store an administrator password in clear text in your script. This problem can be solved if you don’t work with the logon script under “Windows Settings” but rather with the Group Policy “Run these programs at user logon” under Administrative Templates > System > Logon. One is that the logon script will usually run before the desktop (Explorer) is available, and you don’t have access to the user’s Start Menu folder at this time. However, you will then face two problems. For instance, if you have to check whether the user has already installed Modern apps before you deprive him or her of the Store app, you’ll need a logon script. You can also use a logon script to remove the file if you need more intelligence in your procedure. If you want to, you can also select the “Suppress error” box. Make sure that you set “Delete” as the action. Notice that, in Windows Explorer, the link appears as “Store.” However, the file name of the shortcut is “Windows Store.lnk.” Hence, you have to enter this line in the “Delete file(s)” field in the Group Policy Preferences: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Store.lnk. You can do this either in Computer Configuration or User Configuration depending on how you organized your Active Directory structure.ĭelete Windows Store app icon with Group Policy Preferences The easiest way is to delete the Windows Store link file with Group Policy Preferences. ![]() Thus, if you have UAC enabled in your network (which you should), things can get tricky if you want to remove the Store icon with a logon script. Not only do you need administrator rights to delete the link, but UAC will also inform you that you are about to do something dangerous-that is, deprive your users of all the fantastic games in the Windows Store. If you delete the Store icon manually, Windows will ask you a couple of times if you are really sure that you want to remove this wonderful icon.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |