Solved

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

Posted on 2016-08-25
8
65 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
8 Comments
 
LVL 70

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 70

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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
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…
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

623 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