Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
67 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 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Suggested Courses

719 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