Solved

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

Posted on 2016-08-25
8
52 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 69

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 69

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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
In-place Upgrading Dirsync to Azure AD Connect
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

838 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