Jump to content
  • Advertisement
  • entries
  • comments
  • views

Unifying Windows 10 Terminal Settings Again

Sign in to follow this  


To fix the shortcuts disappearing form the start menu, I recommend removing and recreating the default shortcuts to Command Prompt and Windows PowerShell in your start menu before changing the permissions.  There is now a publicly available gist at:  https://gist.github.com/fastcall22/8f046b0e8e58284404427c413329a41c


Oh boy, it’s that time of year again where all of my terminal settings get reset!  Thanks, Windows 10 Fall Creators Update!



But this time, I’m prepared !!

I’ve made some adjustments to my previous attempt to Unify Windows 10 Terminal Settings.  Namely, I’ve fixed the ACL not working as expected.  Apparently `set-acl` attempts to reset the owner, which is denied when also removing the write permission.  Additionally, the ACL needs to be reloaded in order to get the correct converted ACLs from the item’s parents.  The workaround is as follows:

# deny current user write permissions
$item = get-item $path;
$acl = $item.GetAccessControl('access');     # https://stackoverflow.com/a/6646551
$acl.SetAccessRuleProtection($true, $true);  # Disable inheritance, assume inherited

$acl = $item.GetAccessControl('access');     # Reload ACL to obtain inherited permissions
$acl.RemoveAccessRuleAll($rule);             # Remove existing rules for the user


I’ve also added back in the registry fix:

$console = (get-item HKCU:\).OpenSubKey("Console", $true)
$console.GetSubKeyNames() |% {
if ( $pscmdlet.ShouldProcess($_, "Remove Subkey") ) {

And after running:

remove-consoleprops -StartMenu -AdjustPermissions -Registry -ErrorAction Continue

… I was pleased to see that it worked as expected!


I will be working toward publishing these scripts as a GitHub gist, so these files are versioned and others can contribute.

That’s all for now.  Thanks for reading; see you around!


Sign in to follow this  


Recommended Comments

And once again, I’ve discovered more undefined behavior with Windows Search.  The permissions fix will remove the shortcut from appearing from the start menu.  Working on a fix.

Share this comment

Link to comment

The issue appears to be within the default shortcuts themselves; the shortcuts to Windows Command Prompt, and Windows PowerShell copied from the default user’s start menu.  Removing these and replacing them with hand created shortcuts, setting “Start in” to `%HOMEDRIVE%%HOMEPATH%`, and proceeding with the permissions adjustments above will fix the shortcuts disappearing form the start menu.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!