Results 1 to 4 of 4
  1. #1
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,592
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Insider Preview build 10.0.14366.0 released to FAST ring

    See Announcing Windows 10 Insider Preview Build 14366 & Mobile Build 14364 for features, fixes, and known problems.
    Joe

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Joe,

    Thanks for the heads up.

    This gave me a chance to test a new PowerShell program I'd been working on specifically for the Insider Releases.

    It was bugging me that each time a new release came out I had to redo all my normal customizations for the way that I like to work. So I thought why not automate the process via PS?

    Well here's the code to do the following:
    • Turn off Hibernate (to disable Fast Boot - SSD is fast enough!)
    • Turn off Home Group Services (I use standard networking)
    • Add CopyTo/MoveTo folder to the FE context menu.
    • Apply the fix to prevent duplicate drive listings in FE.
    • Restore standard SendTo context menu in FE.
    • Enable NumLock on Boot (on my laptop it wasn't honoring the BIOS setting)
    • Disable AutoRun (Just making sure as I think this is now the default on Windows)


    Code:
    Function Update-Registry {
    
    Param (
         [Parameter(Mandatory=$True)]
           [String] $RegPath,
         [Parameter(Mandatory=$False)]
           [String] $KeyName = "",
         [Parameter(Mandatory=$False)]
           [String] $KeyValue,
         [Parameter(Mandatory=$False)]
           [String] $KeyType
    )
    
       If (-not(Test-Path $RegPath)) {
         Write-Host "$RegPath does NOT Exist!"
         #Create it here!
          New-Item -Path $RegPath -Force | Out-Null
       }
       
       #Set the key Value
       If ($KeyName -ne '') {
         $NIPArgs = @{Path         = $RegPath 
                      Name         = $KeyName
                      Value        = $KeyValue
                      PropertyType = $KeyType
                      Force        = $True}
         New-ItemProperty @NIPArgs | Out-Null
       }
    
       
    } #END Function Update-Registry
    
    Function Delete-RegestryItem {
    
    Param (
         [Parameter(Mandatory=$True)]
           [String] $RegPath,
         [Parameter(Mandatory=$False)]
           [String] $KeyName = ""
    )
    
       If ((Test-Path $RegPath)) {    
        
         If ($KeyName -ne '') { #Delete the key Value
           $RIArgs = @{Path         = $RegPath 
                       Name         = $KeyName
                       Force        = $True}
           Remove-ItemProperty @RIArgs | Out-Null
         }
         Else {                 #Remove the Registry Path
           $RIArgs = @{Path         = $RegPath 
                       Force        = $True}
           Remove-Item @RIArgs
         }
    
       } #End If ((Test-Path...
    
    } #End Function Delete-RegistryItem
    
    #------------------  Main Program -----------------------
    
    #Disable Hibernate
    $URArgs = 
      @{RegPath  = 
        'Registry::HKLM\SYSTEM\CurrentControlSet\Control\Power'
        KeyName  = 'HibernateEnabled'
        KeyValue = 0
        KeyType  = 'DWORD'
       }
    Update-Registry @URArgs     
    
    #Add CopyTo Folder to File Explorer Context Menu
    $URArgs =
      @{RegPath  = 
        'Registry::HKCR\AllFilesystemObjects\shellex\' +
        'ContextMenuHandlers'
       }
    Update-Registry @URArgs
    
    $URArgs = 
      @{RegPath  = 
        'Registry::HKCR\AllFilesystemObjects\shellex' +
        '\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13}'
       }
    Update-Registry @URArgs
    
    #Add MoveTo Folder to FileExplorer
    #$URArgs = $Null
    $URArgs = 
      @{RegPath  = 
        'Registry::HKCR\AllFilesystemObjects\shellex' +
        '\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13}'
       }
    Update-Registry @URArgs
    
    #Restore SendTo Folder to FileExplorer
    #$URArgs = $Null
    $URArgs = 
      @{RegPath  = 
        'Registry::HKCR\AllFilesystemObjects\shellex\' +
        'ContextMenuHandlers\Send To'
        KeyName  = '(default)'
        KeyValue = '{7BA4C740-9E81-11CF-99D3-00AA004AE837}'
        KeyType  = 'ExpandString'
      }
    Update-Registry @URArgs
    
    #Enable Num-Lock on Boot
    $URArgs = 
      @{RegPath  = 
        'Registry::HKU\.DEFAULT\Control Panel\Keyboard'
        KeyName  = 'InitialKeyboardIndicators'
        KeyValue = 2
        KeyType  = 'ExpandString'
       }
    Update-Registry @URArgs
    
    #Disable Auto-Run
    #Runs but does not show up in Regedit? Test-Path returns True!
    $URArgs = 
      @{RegPath  = 
        'Registry::HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\' +
        'IniFileMapping\Autorun.inf'
        KeyName  = '(default)'
        KeyValue = "@SYS:DoesNotExist"
        KeyType  = 'String'
       }
    Update-Registry @URArgs
    
    #Fix File Explorer displaying DUPLICATE entries for drives
    $DRIArgs = 
         @{RegPath = 'Registry::HKLM\SOFTWARE\Microsoft\Windows\' +
                     'CurrentVersion\Explorer\Desktop\NameSpace\' +
                     'DelegateFolders\' +
                     '{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}'
          }
    Delete-RegestryItem @DRIArgs
    
    #Disable HomeGroup
    get-service -Name "HomeGroup*" | 
       Set-Service -StartupType Disabled
    This worked like a charm on 14366.

    Note: for the Home Group changes to take effect you need to reboot, sorry no message to that effect yet!

    I'm sure I'll be adding some more things to this but you can easily modify it your self just by calling the two functions with the proper arguments as shown in the existing calls. Of course, you can also remove any of my prefered customizations by just eliminating the section of the code from the comment to just before the next comment.

    Maybe this will make life a little easier for you "Insiders" out there...

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. #3
    3 Star Lounger djohnson's Avatar
    Join Date
    Dec 2009
    Location
    Delaware City, Delaware
    Posts
    323
    Thanks
    13
    Thanked 32 Times in 30 Posts
    Very nice. I also have something when I do a clean install, and when I do an upgrade (run short version since I do not need to install programs) except I do all with registry, and taking ownership of files, registry keys when needed. I have a folder with all of my programs in it, and all of my customizations. I set it up to be completely portable, to run independently of which drive it is located on. I simply run the command file as administrator, and I have message boxes pop up at various times for me to click ok, and to let me know what is going on. At the end it runs WindowsPowerShell setting a few extra things that need PowerShell like ability to create restore points, and installs the Microsoft OneDrive app I downloaded from some Italian website. Then it restarts, sets my theme, and applies a couple extra registry edits, and I am off and running. The only thing I need to do is enter some serial keys for bought programs, and I am done! Life is good.

  4. #4
    Silver Lounger
    Join Date
    Mar 2014
    Location
    Forever West
    Posts
    2,078
    Thanks
    0
    Thanked 259 Times in 248 Posts
    Finally got some time to check and it's installing now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •