Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows 7 x64 - can't get "Startup" folder hidden from the Start menu for all users

Posted on 2016-08-25
8
Medium Priority
?
76 Views
Last Modified: 2016-09-24
I've tried deleting or changing attrib +h +s to hidden & system against "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" (cmd /c attrib +h +s "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup") but every time I login as a new user, the "Startup" folder continues to appear when I go to the Start > All Programs menu.
Anyone know how to hide this folder?
0
Comment
Question by:garryshape
  • 4
  • 2
8 Comments
 
LVL 71

Expert Comment

by:Qlemo
ID: 41771351
The user's startup folder is displayed and merged with the system's. I don't think you can hide the folder, but you can try to hide each user's one per attrib, too.
0
 

Author Comment

by:garryshape
ID: 41771653
Yeah so I guess that deleting or hiding that from c:\users\default doesn't delete it for new users logging in.
Would I have to have a user logon script to Group Policy Preference then to flag it has hidden?
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 41771760
I can't tell, I have to admit. I assume the folder is created by the process creating a new profile, and then content from the default profile copied over.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:garryshape
ID: 41771764
I'm looking into Group Policy Preferences to "Update" folder and mark as "Hidden".  
The built in variables %CommonStartUpDir% and %StartUpDir% don't appear to work or at least point to "C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"...
0
 

Accepted Solution

by:
garryshape earned 0 total points
ID: 41805172
Hello,

Just wanted to post the actual solution for anyone else looking:

In a batch script I load the default user profile then add this entry via a configuration script:

%windir%\System32\reg.exe ADD HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\RunOnce /v HideStartup /t REG_SZ /d "cmd.exe /C C:\LogonScripts\HideStartupFolder.cmd" /f

The contents of the HideStartupFolder.cmd is:

cmd /c attrib +h +s "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"

For good measure, in the main script I also run the following commands:

cmd /c attrib +h +s "c:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
cmd /c attrib +h "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"
0
 

Author Closing Comment

by:garryshape
ID: 41813571
Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

886 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