Page 51 of 94 FirstFirst ... 41495051525361 ... LastLast
Results 501 to 510 of 935

Thread: Windows 10 and Office Excel

  1. #501
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    This post: Page 51, Post #501
    https://excelfox.com/forum/showthrea...ge51#post12776
    https://excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page51#post12776
    ( link to last post on page #50 https://excelfox.com/forum/showthrea...ge50#post12775 )


    #501 From about here is…. Clearing up some other minor issues, making up a few extra bits, along the way to and before doing my own complete rewrite from scratch

    Examining Services
    Following on, and in support of, this Forum Post: http://www.eileenslounge.com/viewtop...292266#p292266
    In that Post we figured out how to get a text file 3 column list of the Service´s Name , DisplayName and StartType, using a single PowerShell script commandlet.
    Get-Service|Select-Object name,displayname,starttype|Format-Table -AutoSize|Out-File -FilePath\ 'C:\Users\acer\Desktop\test.txt' -Width 1000

    Here I want to automate that a bit, and get the result somewhere convenient, such as an excel spreadsheet.

    I took a look at the text file produced, and based on that did a typical bit of coding to get all text column stuff into a convenient 3 “column” VBA array. It was all standard stuff.
    https://excelfox.com/forum/showthrea...ll=1#post15357 https://excelfox.com/forum/showthrea...5356#post15356

    Then I got some info for doing that PowerShell commandLet in VBA from Daniel Pineault here https://www.devhut.net/vba-run-powershell-command/

    Here is a final macro
    https://excelfox.com/forum/showthrea...ll=1#post16368

    Example, on a Windows 10 Pro ( Version 20h2 19042.1466 )
    Share ‘PowerShell.xls’ https://app.box.com/s/t65uuhic69g64yo4se2xuwopo9ezefa6
    Share ‘test.txt’ https://app.box.com/s/lhln63eqcsn8d8zi0gd4yhrn09b3r79c
    Share ‘Polak Services.JPG’ https://app.box.com/s/1ydaab5e5518flphg05i36xrp9n34r2q https://i.postimg.cc/65Rdrbvm/Polak-Services.jpg



    

    Edit Some issues…
    I messed up with a few things.
    _ the display name could be long and go up to the startuptype in the text file, which messed up the manipulation of a line of data from the text file a bit. For now I fiddled that by adding some spaces before the words used for the startuptype. A better solution will probably wait until I fully understand the PowerShell code line
    _ There seems to be some strange effects with something somewhere working too slow, too fast or not giving accurate information about if a text file is present. For now that is fiddled with some Waits , Dirs and a Kill. That will do for now, but that need to be looked at again when I understand better wots going on


    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    https://www.youtube.com/watch?v=SIDLFRkUEIo&lc=UgzTF5vvB67Zbfs9qvx4AaABAg
    https://www.youtube.com/watch?v=v_1iqtOnUMg&lc=UgxLtKj969oiIu7zNb94AaABAg
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugxq4JHRza_zx3sz0fx4AaABAg
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugxq4JHRza_zx3sz0fx4AaABAg
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=UgzMCQUIQgrbec400jl4AaABAg
    https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugz0Uy2bCSCTb1W-0_14AaABAg
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG
    https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw
    https://www.youtube.com/watch?v=tPRv-ATUBe4&lc=UgzFkoI0n_BxwnwVMcZ4AaABAg
    https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugz0Uy2bCSCTb1W-0_14AaABAg.9htChVuaX9W9htG01cKBzX
    https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugw6UrV69zpeKvLOeOV4AaABAg.9ht16tzryC49htJ6TpIO XR
    https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=UgwMKwGZpDjv7vi7pCx4AaABAg
    https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugw6UrV69zpeKvLOeOV4AaABAg.9ht16tzryC49htOKs4jh 3M
    https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=UgxVW-am20rQ5GFuJ9F4AaABAg
    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Last edited by DocAElstein; 10-24-2023 at 02:56 PM.

  2. #502
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    Post #502 URL link
    https://excelfox.com/forum/showthrea...ge51#post12777
    https://excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page51#post12777




    #501b
    Power Shell Services list via Power Shell COM Object

    I have been watching a series of videos from Ashish Raj, and here he does something similar with Services in PowerShell via COM Object Excel.Application
    https://www.youtube.com/watch?v=xc8A7Z0JLB0&t=995s

    His example is not exactly like my requirement, so I make some notes here of an attempt for a direct comparison.

    To refresh what I did before, from Excel
    I came up with a single PowerShell script code line to give me all the info I wanted in a text string, that is to say a text file. https://eileenslounge.com/viewtopic....292453#p292453
    I did some initial work to check out the exact format of the final text file, which turned out to be a good idea, as there were some “invisible” characters that were best off got rid of.
    https://excelfox.com/forum/showthrea...ll=1#post15357
    https://excelfox.com/forum/showthrea...age3#post15357

    , and here is a final Excel VBA solution that I ended up with
    https://excelfox.com/forum/showthrea...l=1#post163689
    https://excelfox.com/forum/showthrea...ge52#post16369

    Summary of that final macro
    There are a few fiddles to do with Waits and related coding in the macro. I don’t yet understand the problems there, so for now, no further comments on those. I concentrate on the main thing the macro is doing. Briefly: It:-
    _ Does the PowerShell CmdLet to make a text file with all the info in it
    _ Brings the text file into the Excel VBA coding
    _ manipulates and pastes the data out in three columns

    The final macro in more detail:-
    The macro itself performs the PowerShell command
    __ Get-Service|Select-Object name,displayname,starttype|Format-Table -AutoSize|Out-File -FilePath 'C:\Users\acer\Desktop\test.txt' -Width 1000
    The macro then brings ( imports ) that text file into VBA as a single string stream, and manipulates the string in standard ways , to organise it into a 2 dimensional VBA array convenient to paste into a worksheet such that it comes out in 3 simple columns of info, as shown in the last post above
    https://excelfox.com/forum/showthrea...ge51#post12776

    _.________
    Script similar to Ashish Raj’s
    I am interested in the headings of name,displayname,starttype
    Ashish had display name and status. He also collared a cell green or red to indicate running status or stopped status.
    I will use my headings, but do a similar colouring.
    This is the basic simple coding. ( Note the strange requirement to have an extra () in some places )
    Share ‘AshishRajFeedbackCOMObjectExcel.ps1
    https://app.box.com/s/mnvyiln2xqs7elizhjassl1m74trmuve
    Share ‘AshishRajFeedbackCOMObjectExcelAlanPreferredFor mat.ps1’
    https://app.box.com/s/gjve7vriwgp4vu3q0l0vec0cvobccx9e

    Code:
    Remove-Variable * -ErrorAction SilentlyContinue      #   This is very helpful when developing and debuging skript in the ISE, because the ISE has a habit of maintaining variables values between script executions, so this is needed, or else a removed variable may still be there - when fucking about with variables, this can get you in a very frustrating mess.    In technical terms: By default variables are persistant.   https://pscustomobject.github.io/powershell/howto/PowerShell-ISE-Clear-Variables/                                                                                                                                                                                                       https://eileenslounge.com/viewtopic.php?t=33011&sid=726de7ffbd0c03680b62280fd86753e0
    #    Path I have used for my text file output 'C:\Users\Admin\Desktop\test.txt'    here full line      Get-Service|Select-Object name,displayname,starttype|Format-Table -AutoSize|Out-File -FilePath 'C:\Users\Admin\Desktop\test.txt' -Width 2000
    #              and for Excel example file      C:\Users\Admin\Desktop\PowerShellAshishRajFeedback.xls
    try # Most of the main coding is in a  try  section  ==============================================================================
    {[object]$excel = New-Object -ComObject Excel.Application     #    https://www.youtube.com/watch?v=xc8A7Z0JLB0&t=995s
    $excel.Visible = $true
    [string]$excelPath = "C:\Users\Admin\Desktop\PowerShellAshishRajFeedback.xls"
    $excelWB = $excel.workbooks.Open($excelPath)
    # Worksheets info
    $excelWS=$excelWB.WorkSheets.item("AshishRajCOM")
    $excelWS.Activate() #  It seems that in PowerShell script an extra  ()  is needed
    $excelWS.Cells.Item(1, 1).Value = "name" ; $excelWS.Cells.Item(1, 2).Value = "displayname"  ; $excelWS.Cells.Item(1, 3).Value = "starttype"
    # write in service
    [int]$rowWS = 2
        ForEach($Service in Get-Service) { $excelWS.Cells.Item($rowWS, 1).Value = $Service.Name.ToString()  ;  $excelWS.Cells.Item($rowWS, 2).Value = $Service.DisplayName.ToString()   ;   $excelWS.Cells.Item($rowWS, 3).Value = $Service.StartType.ToString()
            If($Service.Status -eq "Running") { $excelWS.Cells.Item($rowWS, 1).Range(”A1:C1").Font.ColorIndex = 10 }
            elseif($Service.Status -eq "Stopped")  { $excelWS.Cells.Item($rowWS, 1).Range("A1:C1").Font.ColorIndex = 3 }
        $rowWS++      }  
    $excelWS.Cells.Columns("A:C").EntireColumn.AutoFit() #  Tidy up column widths
    # $excelWB.SaveAs($excelPath)
     $excelWB.Save()     #  It seems that in PowerShell script an extra  ()  is needed
     $excel.Quit()       } # =============================================================================================================
    catch   {  Write-Host  "some error occurred"  }  
    finally {  $excel.Quit() }    #  this section will be done if an error occurs
    Last edited by DocAElstein; 03-08-2022 at 04:43 PM.

  3. #503
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    #502a
    Power Shell 7

    Hans and Joe have put me on to this open source non Windows thing. (I think its still from Microsoft, and also its somehow involved with GitHub… https://eileenslounge.com/viewtopic....292238#p292238 https://eileenslounge.com/viewtopic....292008#p292008 https://eileenslounge.com/viewtopic....292018#p292018
    There are a lot of useful links they gave which I will need to look through thoroughly when I have the time
    Getting it, downloading, up and running etc. Intro.
    Its fairly new, (at least compared with my most old stuff!) . Maybe for that reason the internet stuff on it is spares and some of seems a bit contradicting, in particular how and where it is downloaded. So I started playing around…

    Download
    There seems to be a lot of stuff, sometime contradictory about this.
    For no particular reason I started doing it from a new button on me current in development Debloat [color=lightgrey ]/ Tool / Utility [/color]GUI thing. That is taking things perhaps a few step further than I might normally, but I am ( was) not sure where it goes, and I was a bit worried of only having one chance, that is to say not being able to get rid of it cleanly to start again, so I tried to hit a compromise a bit nearer to my current end goal, ince I want it possibly as an install option on the Debloat / Tool / Utility thing.
    I put on a button, taking the syntax from a combination of internet searching and what was on some existing buttons
    Code:
     $PS.Add_Click({
        Write-Host "Installing PowerShell 7"
        $ResultText.text = "`r`n" +"`r`n" + "Installing PowerShell 7... Please Wait" 
        winget install --id Microsoft.PowerShell --source winget| Out-Host
        if($?) { Write-Host "Installed PowerShell 7" }
        $ResultText.text = "`r`n" + "Finished Installing PowerShell 7" + "`r`n" + "`r`n" + "Ready for Next Task"
    })
    I clicked and it seemed that the first attempt hanged, ( that was evening 9 Feb )
    https://i.postimg.cc/5ys1x1tj/Power-...instal-1-8.jpg
    https://i.postimg.cc/T1dfMhfZ/Power-Shell-instal-2.jpg
    https://i.postimg.cc/FRgNB05y/Power-...nstal-hung.jpg


    I had to restart the computer, ( or stop the ISE through task-Manager ) to clear the hanged situation in the ISE and the GUI

    Next Day:
    On the second attempt at clicking the button ( morning 10 Feb ) it seemed to get a lot further
    https://i.postimg.cc/J4SvjtSM/Power-Shell-instal-5.jpg
    https://i.postimg.cc/6QXP1g9P/Power-Shell-instal-6.jpg
    https://i.postimg.cc/q7xFfwqv/Power-Shell-instal-7.jpg
    https://i.postimg.cc/6pRSctNR/Power-Shell-instal-9.jpg
    https://i.postimg.cc/yYD2J0QL/Power-...y-finished.jpg


    When I finally found where some of the stuff was, it seemed to suggest it was put there on the 9 Feb.
    https://i.postimg.cc/9FjRNY6k/seemed...-yesterday.jpg
    ( Note also that WindowsPowerShell is also there, (and that is possibly related to what I find at a place that some internet research suggested I should find not the existing 5.1 and the new 7.2. In fact I only see after the install the existing 5.1 https://i.postimg.cc/52rfDxHt/Window...-2-install.jpg Note also that nothing related to 5.1 ( WindowsPowerShell) seems to be in the normal program list )

    As I found where it was, and it appeared as a normal installed program,
    https://i.postimg.cc/TYjN5Qjq/de-install-1-2.jpg
    https://i.postimg.cc/kXPh5LSg/de-install-3.jpg

    , I de installed it just for fun, so as to be able to install it again

    Second attempt at instal:
    I hit the button again and it seemed to install
    https://i.postimg.cc/k5q4KLMc/Install-1.jpg
    https://i.postimg.cc/9QG04c20/Install-2.jpg
    https://i.postimg.cc/13x45fLb/Install-3.jpg
    https://i.postimg.cc/sDGvrp0p/Install-4.jpg
    https://i.postimg.cc/JnhzdJkH/Install-5.jpg
    https://i.postimg.cc/8k0j9ywp/Install-6.jpg
    https://i.postimg.cc/1zr8ds72/Install-7.jpg

    Once again it seemed to hang, , but this time I looked at this stage at the place it was in, and it would appear to be there. https://i.postimg.cc/Fz8zSR1d/Seemed...-its-there.jpg


    So I made a copy of the 7 Folder, https://i.postimg.cc/cH1vy2VH/Kopie-7.jpg , then used task manager to stop the hanged stuff, https://i.postimg.cc/nh7jvv4H/Right-...sk-Manager.jpg , https://i.postimg.cc/j58Lsvbh/Task-M...SE-process.jpg , then re started the script and re clicked the button.
    On this second, second attempt the download went as before, but did not hang.
    So this was the same as by the first second attempt.
    A quick look suggests that nothing has changed, https://i.postimg.cc/L6GgYyZC/Kopie-...nd-attempt.jpg , and so an initial conclusion is that the first attempts, that is to say the first clicks which appeared to end in a hang, did actually in fact produce a successful download





    #502b
    Checking a few things now I have PowerShell 7

    #502b issue with service "dmwappushservice"
    http://www.eileenslounge.com/viewtop...292235#p292235
    http://www.eileenslounge.com/viewtop...292005#p292005
    https://excelfox.com/forum/showthrea...ge50#post12768


    If we take a look now, using PowerShell 7.2 to do this, on a non tweaked machine ( Win 10 20H2 (Build 19042.1466) ) ,
    Get-Service|Select-Object name,displayname, starttype |Format-Table -AutoSize|Out-File -FilePath 'C:\Users\acer\Desktop\teststarttype.txt' -Width 1000
    Get-Service|Select-Object name,displayname,startuptype|Format-Table -AutoSize|Out-File -FilePath 'C:\Users\acer\Desktop\teststartuptype.txt' -Width 1000

    , then we can see that, for example by "dmwappushservice" , then now we can also get the option of Automatic (Delayed Start)
    https://i.postimg.cc/VLHKgShb/Got-Au...ayed-Start.jpg https://i.postimg.cc/HkqBGqdY/Got-Au...ayed-Start.jpg


    Share ‘teststarttype.txt’ https://app.box.com/s/u4xxiefbgh2b13e3vn10ho2l497lbzn5
    Share ‘teststartuptype.txt’ https://app.box.com/s/q7lxmr1ffz9slf24cpgk7c1db3mourd4



    Set-Service "dmwappushservice"
    On the same computer I confirmed that I can set the option of Automatic (Delayed Start) provided I use something like this in PS7
    Set-Service "dmwappushservice" –StartupType AutomaticDelayedStart
    https://i.postimg.cc/BQDjYkYc/Set-Se...rter-Start.jpg
    https://i.postimg.cc/BnBXsDGj/Set-Se...ice-Manual.jpg





    But note that I will need to open as Administrator , https://i.postimg.cc/vm8DmBQ3/Right-Click-PS7-Admin.jpg
    , or else it will error, https://i.postimg.cc/13QfLBbx/Oops-P...t-as-Admin.jpg
    Last edited by DocAElstein; 03-06-2022 at 03:36 PM.

  4. #504
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    slkhflskhfslkhf

  5. #505
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    This is post #505
    https://excelfox.com/forum/showthrea...ge51#post12780
    https://excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page51#post12780



    At last old scripts!! !

    This is a year or so out of place, here, in my own personal notes. But no one anywhere answered my pleas for help in getting copies of the older scripts, which I had wanted to get so as to…
    _ aid me getting back up to date ,
    , and to,
    _ aid me in my learning of this Debloat stuff as well as the related learning of PowerShell script

    Specifically, I want to get scripts, where each script relates to the script at the time of, and relevant to, each of Chris’s Debloat related YouTube Videos

    I came across a related issue by coincidence here, https://github.com/ChrisTitusTech/wi...ipt/issues/229
    , where then brandonkal showed me how to do it https://github.com/ChrisTitusTech/wi...ent-1042610457
    https://github.com/ChrisTitusTech/wi...ent-1042788256

    ( Edit. I solved this issue and quite a few others in a lot of posts at GitHub around February March, but my account was deleted and all posts removed. No big deal, I was never so keen on the place, it seems to slow down and mess up projects, at least any I helped in. Maybe that did not go down too well. Possibly the real reason of GitHub is to mess some peoples projects up? )
    Solution to get old scripts
    Here we go, just to remind me for future reference:

    This solution seems very tolerant of even older Browsers and operating systems and there is no need to be logged in or have an account at GitHub.
    It’s not at all obvious, as with most things at GitHub, but once you do know, it’s a piece of piss, no problem at all and quick:
    Working example, for example Chris’s win10debloat stuff scripts..
    _1) Go to Chris’s GitHub Windows 10 Debloat page, https://github.com/ChrisTitusTech/win10script . By default you should be at the Code page, but to be sure hit the code button top left https://i.postimg.cc/fbRJrHN8/Code-B...10-Git-Hub.jpg
    https://i.postimg.cc/P5hLmXFs/Code-B...10-Git-Hub.jpg

    _ 2) Hit the History Clock icon https://i.postimg.cc/HxjdQRgC/Histor...10-Git-Hub.jpg
    https://i.postimg.cc/qRY0QwJ6/Histor...10-Git-Hub.jpg

    What you should now see is a page with a track / progress like vertical line along the left margin with junction points on it. Going down is like going back in the History https://i.postimg.cc/NfR999Dk/Histor...at-Git-Hub.jpg
    _2b) Furthermore, towards the bottom is an older button,
    https://i.postimg.cc/Y2Gm7ymV/Older-...ds-in-time.jpg
    , which takes you to the next page allowing you to go even further back in time.
    As far as I can tell, you can go right back to the beginning.
    _3) Where what when to look for
    Under the various dated junction points are things listed as “commits”. I don’t fully understand yet all the workings and what things that are being referred to, but I think I am only interested in changes to the main script, which are those referred to by something like Update win10debloat.ps1 https://i.postimg.cc/s1CzC2ZV/Click-...ebloat-ps1.jpg
    A clue to what was done at that time to the script may be obtained by other things around the same date, and/ or you may get a hint from clicking on that word, Update win10debloat.ps1 , https://i.postimg.cc/FzKjjjr6/Click-...ebloat-ps1.jpg , which then will give some indication in a red / green before after type pictorial view
    https://i.postimg.cc/13H8BkLg/Click-...-type-view.jpg


    As example, that last screen shot is looking around the February 15 2022 time. Clearly there is something going on with “Virtualisation” things
    Relating a script to a Chris YouTube Debloat Video
    Chris does not typically give a direct reference to the script relevant to his Debloat related Videos. But it’s a fairly good guess that an Update around the time of a video, possibly shortly before, will be the one.
    Taking that last example, the from Feb 15, 2022, : If we look at Chris’s videos from about that time we find a couple of videos related to the theme of “Virtualisation” things:
    9.31a Live - Improving Virtualization in Windows-fYhBE4B77S8_18 02 2022
    https://www.youtube.com/watch?v=fYhBE4B77S8
    https://drive.google.com/file/d/19SH...?usp=drive_web

    9.31b How to Setup Hyper V on Windows-FCIA4YQHx9U_19 02 2022
    https://www.youtube.com/watch?v=FCIA4YQHx9U
    https://drive.google.com/file/d/1Gfo...?usp=drive_web

    We can conclude fairly safely here that this script change mainly involved adding a button to enable some in built Windows “Virtual-V” feature. ( The script changes will be the changes I talked about in the second half of this post of mine,
    https://excelfox.com/forum/showthrea...ge50#post12774
    , which took my script, (which is approximately following Chris’s script), from my version Temp4.ps1 to Temp5.ps1 )

    It is not always obvious that a video gives some indication of, or is related to a change.
    Sometimes the change may not be related specifically to some new addition referred to in a video.
    We might be able to relate it to something else, for examples…
    _ We might sometimes be able to refer it to some issue if you take a look down the list ( https://github.com/ChrisTitusTech/win10script/issues https://i.postimg.cc/kGhWwBDg/Chris-...Hub-Issues.jpg )
    _ Chris may refer to it either in passing or as it may be slightly related to a video. For example, the things that took my script from my version Temp5.ps1 to Temp6.ps1 ( https://excelfox.com/forum/showthrea...ge50#post12775 ) where some power related things which he mentioned briefly in these videos:
    9.32 Live - Optimizing Windows for Gaming-z3DNobuvkL8_11 03 2022
    https://www.youtube.com/watch?v=z3DNobuvkL8
    https://drive.google.com/file/d/1WcT...?usp=drive_web
    Optimize Windows for Gaming-KjHfCDPfLdI_12 03 2022
    https://www.youtube.com/watch?v=KjHfCDPfLdI
    https://drive.google.com/file/d/1O7h...?usp=drive_web

    ( See also some of my notes in this excelfox Thread post https://excelfox.com/forum/showthrea...ge43#post12702 )

    Get the actual script code
    So at this point we have identified the win10debloat.ps1 that we are interested in. Now to get the actual code….
    Its generally regarded as best taking what is referred to as the Raw code. I think this is intended to be a very clean text, rather than one that my have some things like “invisible” characters or something to do with formatting that might get accidentally copied in any simple copying attempt
    Get the Raw
    _(i) If we are looking at the Red green before after…
    First look for a View File option, https://i.postimg.cc/3JqkwF7b/View-F...fore-after.jpg . Click that, and you see a color formatted code. Look for the Raw option and click that, https://i.postimg.cc/15XgPjxq/Raw-option.jpg
    This should get the raw code view, https://i.postimg.cc/RhsNKcth/Raw-code.jpg
    _(ii) If we are looking at the History page.
    Look for a _ < >_ button at the right, https://i.postimg.cc/9QqrwwQX/Pointy...ode-button.jpg and click that.
    This should take us to what looks like the main code page where we started with.
    https://i.postimg.cc/gjWrQQn6/Achaiv...previously.jpg
    But actually it is something close to an archived copy of the main page at the previous chosen commit date. That page can be used in the same way you would use the current main page.
    So for example,
    _ click on the win10debloat.ps1 , https://i.postimg.cc/4d1KNCNz/Click-...ebloat-ps1.jpg
    _ we can now click on the Raw option, https://i.postimg.cc/VsDSxchw/Raw-option.jpg , and once again we see the Raw code, https://i.postimg.cc/W4LtGpdG/Raw-code.jpg

    Copy Raw _ Ctrl+a , Ctrl+c
    The simplest way to copy the raw code is to click anywhere in it , then use the key combination of Ctrl+a , which should select/ highlight the entire code, followed by Ctrl+c
    That should give you a clean text copy in the clipboard.


    So that’s it. Do now with that code what you want, such as
    _ paste it in a text editor such as Notepad or Notepad++ if , as me, you just want to look at it,
    or
    _ probably the most useful, paste it in an as Administrator launched ISE development window, and then you can do all - look at it, edit it, and run it conveniently as and when you choose

    _._____________

    The quick link
    One last thing, just for completeness, but which I am not so keen on using, persinally.
    Brandonkal also showed me how to get the quick link to run the script. But very important to note here is what brandonkal went on to say about …….. check the code for unversioned dependency links….. - He is warning of bad programming practice. For example, the code downloads "raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg" which always points to the latest version. If you wish to have that file match what it was in an earlier version, you will have to update that reference in a fork.

    The short link, or “one liner”, I am talking about is that often given by Chris at his site and in videos ,
    iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JJ8R4'))
    , which he often describes as something like, the “one commend to run ‘em all”. That is basically a single code line to paste in PowerShell that somehow goes off via the internet and gets the script and does anything else necessary to get the script up an running for you somehow and run it live somehow on your computer. I am less keen on using that as it has the disadvantage that you don’t actually get the script to look at and edit. But it can be a convenient way to run the coding.
    Chris always gives the line for the current version, ( which can upset some people, example, https://github.com/ChrisTitusTech/wi...ent-1043477046 ) , but we can actually get the same one liner for the older script that we are interested in.

    Example:
    Take once again the example of, February 15, 2022 , and look at some numbers and URLs that have been seen in the screenshots
    _ Example: The Raw URL: https://raw.githubusercontent.com/ChrisTitusTech/win10script/c349966ed313d5d7979aeb58e2c3a7ae3f494c6f/win10debloat.ps1 https://i.postimg.cc/DzLJHJ9p/Raw-URL.jpg
    _ Example: A commit number that may have shown up in a few places, fc37c7d

    We may replace the download string in Chris’s one liner, with a either of these based on those numbers
    Code:
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/win10script/c349966ed313d5d7979aeb58e2c3a7ae3f494c6f/win10debloat.ps1'))
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/win10script/fc37c7d/win10debloat.ps1'))
    ( I am not too sure yet of the validity always of the last one, so perhaps best to use the first).

    Here just again for final clarity, first the typical one liner used currently to get the new GUI up and running,
    and after the second one is for the script from 15 Feb 2022
    Code:
    iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JJ8R4'))
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/win10script/c349966ed313d5d7979aeb58e2c3a7ae3f494c6f/win10debloat.ps1'))
    _.______

    So that’s it all.





    In the next post I apply this knowledge to get specific Chris scripts, concentrating mostly on those most asked for, which usually are those talked about on his normal size videos specifically on the script and script updates.
    I may also take the opportunity for some extra notes a second time around, as well as look at some script versions that introduced things ( problems more often, lol, ) but which were not particularly discussed in any video.
    Last edited by DocAElstein; 03-28-2022 at 01:46 AM.

  6. #506
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    In this and the next posts, is the list from what appears to be the relevant script from the shown video. Each section refers to a Debloat video from Chris.
    I have a few extra notes a second time around, mostly specific to the script.
    Further general notes to the videos, that I did before I had the scripts, start from about here: https://excelfox.com/forum/showthrea...e-Excel/page42
    https://excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page42

    For anyone coming here to just get the script, you can see them in the code window in each video section. Typically I give the share link to the .ps1 file in the first line and in the second line is the single PowerShell command to start the thing off.
    Code:
    This is the share link to the ps1 file, which , for example you could paste in the ISE window and run it from there.
    This second line is that one command to run thing that you paste in PowerShell
    I checked that the thing initially seems to work, that is to say the .ps1 file runs in the ISE window, ( or in some case in the PowerShell Window !!!), and the single PowerShell command seems to start the thing off.
    But because I am only interested in looking at the coding, I have not tested thoroughly. I expect its very likely that some things from the older scripts may not work anymore, since various things in Microsoft Windows may have changed.



    _________________

    10.10.2018 Debloat Windows 10
    https://www.youtube.com/watch?v=q4ziE5Am0pM
    Share ‘5.02 Debloat Windows 10-q4ziE5Am0pM_10 10 2018.wmv’ https://app.box.com/s/5vkm9g797jgc4sttmvpbl2yu5pj8me60

    Chris just missed the first GUI version from Richard with this video.

    Richard has a very thorough READMe, worth a look sometimes. Nice general intro on how to run……..…Download the Windows10Debloater.ps1 file. Next, open PowerShell ISE/VSCode as an Administrator, copy the source code from Windows10Debloater.ps1 and throw it into PowerShell ISE/VSCode/etc and run it.

    Here is the actual main code page from 10 10 2018 https://github.com/Sycnex/Windows10D...eb3805fc11935f
    Maybe his “prep” coding needs a further look, looks like some refinement I and Chris may have skipped over.
    This was the first Chris explanation of the fundamental running in PowerShell window..
    Set-ExecutionPolicy Unrestricted
    cd 'D:\Temp Opt\GitHub\win10script-master'
    dir ( using dir is not necessary, but is helpful to check that you are where your file is, since dir will cause it and anything else there to be listed )
    .\win10debloat.ps1


    Code:
     Share ‘Richard10102018.ps1’          https://app.box.com/s/luzvsf3vrhc5d3schxpmmg9yxvlv7ahk
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/Sycnex/Windows10Debloater/88d4d1ed7b6d26b184bd5b71cbeb3805fc11935f/Windows10Debloater.ps1'))



    06.04.2019 Setting up the perfect Windows 10 Installation | faster, Lighter, and Functional
    https://www.youtube.com/watch?v=nVy4GAtkh7Q
    Share ‘5.26 Setting up the perfect Windows 10 Installation _ Faster, Lighter, and Functional-nVy4GAtkh7Q_06 04 2019.wmv’ https://app.box.com/s/ftp5hc3j9w4on6yfm7md25cgsjhgweyn

    The script is 1 of 5-6 things talked about.
    I will take a guess that Chris may have been using the version from about a month from his video, based on this screenshot from the vid, https://i.postimg.cc/zvF3r7g2/Chris-...06-04-2019.jpg . That is at about minute 2 , 50 seconds
    Here is the actual main code page from March 6 2019 https://github.com/Sycnex/Windows10D...b86ba24e9bef74
    Once again Richard is doing a nice README, here is just a short extract, of one of 3 run methods that he explains
    First Method:

    Download the .zip file on the main page of the github and extract the .zip file to your desired location
    Once extracted, open PowerShell (or PowerShell ISE) as an Administrator
    Enable PowerShell execution
    Set-ExecutionPolicy Unrestricted
    Ubnlock all powershell script ls -Recurse *.ps1 | Unblock-File
    On the propmt, change to the directory where you extracted the files: e.g. - cd c:\temp
    Next, to run either script, enter in the following: e.g. - .\Windows10DebloaterGUI.ps1


    I expect he is suggesting we can run either .\Windows10DebloaterGUI.ps1 or .\Windows10Debloater.ps1
    It’s an interesting point to note in passing that Richard had the GUI here. Chris may have overlooked it as in the next of his Debloat Videos he seems to imply Richard has just introduced the GUI.
    So just out of interest I will include the GUI also here, even though it was not discussed in the Chris video
    Non GUI version
    Code:
      Share ‘Richard6March2019.ps1’      https://app.box.com/s/6hxsf7846nqds9gz4q65s3jdr489yjxx
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/Sycnex/Windows10Debloater/f269dbbee37afc2398cc0780e9b86ba24e9bef74/Windows10Debloater.ps1'))
    GUI Version
    Code:
       Share ‘Richard6March2019GUI.ps1’     https://app.box.com/s/9jb475u0zfxub44hw0sd7212kft6moi7
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/Sycnex/Windows10Debloater/f269dbbee37afc2398cc0780e9b86ba24e9bef74/Windows10DebloaterGUI.ps1'))
    Here is a pick of how the GUI comes up by the one command to do it all: https://i.postimg.cc/k5DJxpmm/Richards-First-GUI.jpg https://i.postimg.cc/t4BRnH8k/Richar...n-1366x768.jpg

    The GUI is resizable, no scroll bars.
    Note that if you run it from in the ISE, the code gets printed in the PowerShell window, https://i.postimg.cc/SsgK0YpW/First-...ower-Shell.jpg
    Misc Notes:
    $InstallNet35.Add_Click( {

    Write-Host "Initializing the installation of .NET 3.5..."
    DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
    Write-Host ".NET 3.5 has been successfully installed!"
    } )


    ( .NET https://eileenslounge.com/viewtopic....286686#p286686 )


    _________________________

    16.10.2019 Clean Up Windows 10 _ 3 Steps For A Faster computer
    https://www.youtube.com/watch?v=nVy4GAtkh7Q
    Share ‘https www christitus com clean-up-windows-10 16 10 2019.docx’ https://app.box.com/s/q859xwlu6c358s3e3jrmn04zmhgpsovl

    This is Chris’s first use of a GUI by Chris, but its not his, it’s Richard’s
    I suspect that possibly when Chris did this video he may have forgot the last one. This will be his third Debloat video. He seems to refer to his first video in this video, and he seems to refer to the GUI as a recent development by Richard, so he may have forgot his second Debloat video, where Richard did actually have the GUI, but in that second video discussed in my last section, it looks liker Chris missed that. In the second video he looks at the non GUI script.
    https://i.postimg.cc/K8G8gxWX/Chris-...-2019-STEP.jpg "Originally did crap a year ago on LapTop – talking about his first Video , Debloat Windows 10
    _ Step 1 of 3 is Richard Newton script but Richard made it user friendly by https://www.youtube.com/watch?v=mWHiP9K8fQ0&t=215s Minute 3 , 35 seconds
    _a) launch GUI graphic debloat section
    and
    b) a single line: ***, that will run it across the web – you don’t need to download the win10script-master stuff, ( but you can if you like, for example so as to modify the script before running).
    *** iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat'))
    Richard calls it … Quick download link , which is a bit misleading
    Actually Chris missed the fact that Richard had already got his GUI script in Chris’s video, 06 04 2019 Setting up the perfect Windows 10 Installation | faster, Lighter, and Functional

    As Chris is using the one liner PowerShell command It’s a good guess that the script used will be that from sometime between shortly before to up until the upload date, and certainly not after. I took the one from 13 October 2019
    Code:
     Share ‘Richard13Oct2019GUI.ps1’     https://app.box.com/s/1eodub2b5le8hehgp0jwh8ovdqtrupew
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/Sycnex/Windows10Debloater/d6387e7275ab2a78ba89dcc69330c5d84083a649/Windows10DebloaterGUI.ps1'))
    GUI is resizable, no scroll bars, as with the previous one, ( but this time no code is pasted out in PowerShell window ) https://i.postimg.cc/cJ7GW3Yv/Richar...n-1366x768.jpg



    ______________________________


    20.06.2020 How to speed up Windows 10 in 2020
    Speed up Windows 10 in 2020

    https://www.youtube.com/watch?v=8E6OT_QcHaU
    8.45 Speed Up Windows 10 in 2020-8E6OT_QcHaU_20 06 2020 https://drive.google.com/file/d/1b_a...?usp=drive_web

    Chris is mostly talking about 2 scripts, Richards once again and another, farag2, he says Richard’s is a bit out of date, and farag2 keeps it better up to date, for from May 2020 , Chris is on 2004.
    Richard Newton script
    Chris says Richards at the time would be OK for version 1903 to 1909
    From the video, it looks like the Richard script he uses is that from 2 months before the video, so I have the one from 20 April 2020
    Code:
     Share ‘Richard20April2020GUI.ps1’        https://app.box.com/s/p61qsbczl7gjj1pqv1ki75laa7spt3zq
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/Sycnex/Windows10Debloater/c573efd240add6cd108b667a8d7f5749ea25d52e/Windows10DebloaterGUI.ps1'))
    _._________________________
    Farag2 (
    For the first time use by Chris of the farag2 script, it appears he took a script from 17th June which Chris describes as that from a couple of days ago, and he selected the Win 10 2004.4.5 zip
    https://i.postimg.cc/BbxxdbrB/farag2...04-4-5-zip.jpg
    ( It’s a ridiculous number of pages to go back through !! )
    I am not sure if I have the correct one here,
    https://i.postimg.cc/4yC6LVS3/farag2-19-June-2020.jpg , https://i.postimg.cc/MZRbc3nf/farag2-19-June-2020.jpg
    , as I don’t quite understand the different formats
    ( At minute 8 25 seconds Chris takes a quick look in the ISE at the file https://www.youtube.com/watch?v=8E6OT_QcHaU&t=505s )

    Code:
     Share ‘farag2 19June 2020.ps1’       https://app.box.com/s/l2oixig8ynqyl7nwcwa10xeahofjrj16
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/4b5c37cad6d61e13c6b1fd3bc033668b6eb6bb2f/Win%2010%202004.ps1'))
    Note !!! The code would not run in the ISE, https://i.postimg.cc/vBx7t3Xj/farag2...run-in-ISE.jpg . Also the one line command would not run from the PowerShell window attached to the ISE
    But the one line command did run from the one line command in a normal PowerShell window, ( opened as Administrator ) .


    ______________________________
    Continued in next post
    Last edited by DocAElstein; 04-09-2022 at 06:58 PM.

  7. #507
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    Continued from last post
    From this point, Chris has begun developing his own stuff a lot more

    ______________________________



    28.07.2020 The Fastest Windows 10 Setup ( used on Version 2004 )
    https://www.youtube.com/watch?v=Tfd7BXCo9Xk
    Share ‘8.50 The Fastest Windows 10 Setup-Tfd7BXCo9Xk_28 07 2020.wmv’ https://app.box.com/s/4na7yp2rphq6hwzb9w4ov3h6lz2zil5s


    Chris first attempt at a script, and start of his GitHub stuff. His first uploads were 23July.
    The last upload before a long gap was July 27, so I take that one
    Code:
         Share ‘ChrisFirstScript27July2020.ps1’                  https://app.box.com/s/atcfp24bua063oi2mui4cf9hs5yada39
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/win10script/dc055e1456c75d0011b285cecc88d173fbd2d100/win10debloat.ps1'))
    It’s a very popular video so Chris probably leaves it up. But he does not seem to keep the notes up to date.
    The default installing did not go down too well with most people.

    I see now from the script, that it was actually mostly from this chap here
    https://gist.github.com/alirobe/7f3b34ad89a159e6daa1
    who in turn seems to have got it somehow from someone who left in dismay a couple of years back, and archived all his stuff to read only
    https://github.com/Disassembler0/Win...l-Setup-Script
    Its a lot of single functions. I am not too clear at this stage how bloke 1 got it from the other chaps stuff. Chris mainly seems to have added the small bit to install a few things and do O&O
    a few extra notes a second time around,
    The script was part of the video, and came in a bit unpublicised as a script. He may have been a bit reckless, looking at the home game user, and deciding to force downloads of stuff of his choice.
    It just runs, and no interaction.
    He talks a lot about it being a single command , which is actually close to the title of the next Debloat video. Once again I get the impression he later forgot all about this video.
    The script has a lot of enable parallel Enable functions as all the previous ones did the point being that you could tweak things, the start of his customisation idea.
    He thinks the script reduces Processes by about 25-30

    ______________________________


    There was a period when for a short time some other scripts were available as developed and discussed in a live stream,
    14.08.2020 Creating New Windows 10 Debloat Scripts for you ( Live stream) https://www.youtube.com/watch?v=ER27pGt5wH0
    8.57 Creating New Windows 10 Debloat Scripts for You-ER27pGt5wH0_14 08 2020
    https://drive.google.com/file/d/1O63...?usp=drive_web

    There may have been some bad publicity as some hard scripts were taken by people and used somewhat recklessly, and there seems to have been a bit of a break in development of his script stuff.
    Some copies and shortened videos appeared sometime a bit erratically and out of sequence.
    The live stream which I suspect may have had bad reviews due to the hard script he did, was re released under a new name some time later ( 8.83 Windows Debloat Scripts Live Stream Education-2R28u7o9mls _13 06 2021
    https://drive.google.com/file/d/1xyq...?usp=drive_web
    )


    ______________________________

    24.10.2020 Speed up Windows10 with one commend ( using version 20H2 )
    https://www.youtube.com/watch?v=dO30OnTsJhk
    Share ‘8.60 Speed up Windows 10 with One Command-dO30OnTsJhk_24 10 2020.wmv’ https://app.box.com/s/jkebz6xxoi7gy9wulwunvhwiyy6487hk

    Chris:……This is different from my previous scripts, this does not remove any functionality… I will remake and update regularly This is version 1.0 ???………………
    Still Not got the GUI yet

    Chris seems to regard this as the start of his script work, he seems to strangely ignore/ forget the earlier ones. Perhaps things did not go as well as he hoped, but the videos previously get a lot of views so he leaves them. He seems to keep the notes under the video better up to date from now on than any previous ones.
    He regards this as “version 1”, hence pretty well ignoring previous stuff.
    I will take the script available on 29 October as I notice Chris sometimes makes a few mistakes and/ or makes small changes after suggestions, correction suggestions, shortly after an update video.
    Code:
     Share ‘ChrisSecond(Version1)Script29Oct2020.ps1’                     https://app.box.com/s/s7zwspwft02klem81c747wpoycarkjac
    iex(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/win10script/08799baf44141c154b6293f96cd979af45976c8e/win10debloat.ps1')
    a few extra notes a second time around,
    He is leaving functionality this time, which might be a polite way of saying, oops I fucked up a bit recklessly last time.
    He adds a restore point at the start.
    There is a bit of difference in the tweaking of if functions are done or not. I have not compared in great detail, but it would not surprised me if he got in a muddle and did not change as much as he thought.
    Security things: Enable Defender, opposed to disable in the last one seems to be one change. This scrip also Enables Firewall, the last one did nothing to it.
    Chris has introduced TitusRegistryTweaks function that appears to do the updates similar to what you could do manually

    ______________________________
    ( .NET https://eileenslounge.com/viewtopic....286686#p286686 )

    ______________________________

    07.11.2020 How to Restore Action Center and More
    https://www.youtube.com/watch?v=dO30OnTsJhk
    How to Restore Action Center and More-H2ydDcqRZyM_07 11 2020.wmv https://app.box.com/s/5nib1qrfhm2kx75ll6vh0ue7bbgvxxwh

    Chris next responded to comments to restore the small square action centre thing at the bottom right what the previous scripts removed. ( While he was at it he made further options to restore Cortana and to hide tray icons )
    At the start he was very vocal about how he responds positively to comments, which further suggests he may be trying to gloss over the problems caused to people by his scripts

    I will go here for the Commit named “Full GUI implementation” on 4 November as there is a break after for a week or two, at which it looks like he has been getting into GUIs big time.
    We have a restore-ac-tray.ps1 ___ Full GUI implementation
    Code:
     Share ‘Chris4Vov2020restore-ac-tray.ps1’        https://app.box.com/s/87vinr0nejgxn77x1flldx504vy29kaz
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/win10script/2f33ed830fa58f79057bfe3454083586a37f4e56/restore-ac-tray.ps1'))
    ( Note on running from the ISE, the code is printed out in the PowerShell window of the ISE )




    ______________________________
    From here is the main start from Chris’s GUI work. At the time of writing this there are 3 main normal videos, although there were some live streams which discussed the scripts. I put the titles and some notes to them just to help orientation


    04.12.2020 The Best Windows 10 Toolbox
    https://www.youtube.com/watch?v=V27McA7ch6w
    Share ‘8.65 The Best Windows 10 Toolbox -V27McA7ch6w_04 12 2020.wmv’ https://app.box.com/s/mex9xn9h4uibif596it2v2u9tfe44vr9

    more square like Richards initially : - https://i.postimg.cc/9FBSv3Y1/Chris-...llox-Win10.jpg - "The DB Tool Box first GUI but/ and is Dec 2020 update
    install choc for download
    December 2020 Update

    There are a lot of “test new gui” at 2 December, 2020, and one last NewWin10 GUI released, so I take that
    Code:
     Share ‘Chris2December2020FirstGUI.ps1’       https://app.box.com/s/2btpz9fefsc57eqagy5iz9janq7622zg
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/win10script/d797628cadc09070b0b585edb5e708ea11858345/win10debloat.ps1'))
    The GUI is almost too big on 1366x768 https://i.postimg.cc/Y0jR251C/Chris-...I-1366x768.jpg
    Note the size of 1050, 700 in the script, and no other rogue bloat script lines, suggest Chris originally had it OK, then fucked it up as he went along https://i.postimg.cc/tTsnspmw/Chris-...xtra-bloat.jpg
    https://i.postimg.cc/053WW2pX/Chris-First-GUI-1366x768-no-size-bloat-fuck-up.jpg https://i.postimg.cc/053WW2pX/Chris-...at-fuck-up.jpg

    a few extra notes a second time around,
    This is where things go from a function to a button click.
    The Update has gone to a more complicated coding that lingers up to current one.
    He thinks the script kills about 30-35 Processes

    ______________________________

    09.04.2021 8.77 Quick Update and PowerShell Updates on Win 10 Scripts
    https://www.youtube.com/watch?v=lowutlqGaio
    https://drive.google.com/file/d/1gzV...?usp=drive_web

    Took the Windows defender out due to anti virus software complaining about it.

    26.04.2021 Windows 10 Toolbox Revamp
    Live stream I can’t get at.

    8.83 Windows Debloat Scripts Live Stream Education-2R28u7o9mls_13 06 2021
    Strangely 8 months after the live stream this comes out a month before the next utility. This came out in Titus Tech Tips
    https://www.youtube.com/watch?v=2R28u7o9mls https://drive.google.com/file/d/1xyq...?usp=drive_web

    https://www.youtube.com/watch?v=rPfzFT7Kq5A


    ______________________________

    06.07.2021 The Best Windows Utility
    https://www.youtube.com/watch?v=rPfzFT7Kq5A
    Share ‘8.85 The Best Windows Utility-rPfzFT7Kq5A_06 07 2021.wmv’ https://app.box.com/s/vobd0u7ecq33j6kvdzqgcln6ewvv09zs

    winget is here, Chris says its there, easier than going through installers like chocolatey??
    I am not sure what’s going on here, with lots of things done on 6 and 7 July, so I will take the newest on 7 July
    This is where some crap came into the GUI size. But I am not sure how https://i.postimg.cc/dtykZpbX/Crap-b...o-GUI-size.jpg , https://i.postimg.cc/QMs0ypg8/Chris-...1-1366x768.jpg

    Code:
           Share ‘Chris7July2021.ps1’                             https://app.box.com/s/2btpz9fefsc57eqagy5iz9janq7622zg 
    iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/win10script/97d46a6bf3c8023dfe72b52bcabec59cc1a5c791/win10debloat.ps1'))
    a few extra notes a second time around,
    Based on User feedback Microsoft Store and Windows Defender is no longer touched.
    VS Code is there to install, but he says it has telemetry, so you have VS Coduim as alternative
    He does not like to disable Background Apps, so its an option is VS Codium
    Media Player Classic is from a good up to date fork
    He says he combined the searches. – we see later he didn’t
    Something like “Un Hide Tray Icons” is included in the Essential Tweaks , but based on feedback he has a Hide Tray icons in Undo to “put back to stock settings


    I would like to do a digression to check what is going on in searches, due to , and with , the benefit now of having the actual coding used at the time – next post
    Last edited by DocAElstein; 03-28-2022 at 03:24 PM.

  8. #508
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    I would like to check what is going on in searches
    (The buttons for Cortana ( Search ) – only do Cortana )
    04.12.2020 The Best Windows 10 Toolbox
    Windows Search button under System Tweaks
    All the windows search, web search through .. to disable indexer.
    Code:
    $windowssearch.Add_Click({ 
        Write-Host "Disabling Bing Search in Start Menu..."
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value 0
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -Type DWord -Value 0
    	If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) {
    		New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null
    	}
    	Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "DisableWebSearch" -Type DWord -Value 1
        Write-Host "Stopping and disabling Windows Search indexing service..."
    	Stop-Service "WSearch" -WarningAction SilentlyContinue
    	Set-Service "WSearch" -StartupType Disabled
        Write-Host "Hiding Taskbar Search icon / box..."
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 0
    	$wshell.Popup("Operation Completed",0,"Done",0x0)
    })
    In the next video, Cortana is mentioned in connection with searching, so just for reference, this is behind the : Cortana button under System Tweaks
    Code:
     $cortana.Add_Click({ 
        Write-Host "Disabling Cortana..."
    	If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings")) {
    		New-Item -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Force | Out-Null
    	}
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0
    	If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization")) {
    		New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Force | Out-Null
    	}
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1
    	If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore")) {
    		New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null
    	}
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0
    	If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) {
    		New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null
    	}
    	Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0
    	$wshell.Popup("Operation Completed",0,"Done",0x0)
    })  



    06.07.2021 The Best Windows Utility
    Chris says, Cortana and Windows search grouped together, as they are related and just doing one tends to mess up the other.
    But take a look at those two buttons….
    $Cortana is Disable Cortana (Search) button and $ECortana is Enable Cortana (Search) button
    Code:
     $cortana.Add_Click({
        Write-Host "Disabling Cortana..."
        If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings")) {
            New-Item -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Force | Out-Null
        }
        Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0
        If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization")) {
            New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Force | Out-Null
        }
        Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1
        Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1
        If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore")) {
            New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null
        }
        Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0
        If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) {
            New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null
        }
        Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0
        Write-Host "Disabled Cortana"
    }) 
    Code:
    $ECortana.Add_Click({
        Write-Host "Enabling Cortana..."
    	Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -ErrorAction SilentlyContinue
    	If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore")) {
    		New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null
    	}
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 0
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 0
    	Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -ErrorAction SilentlyContinue
    	Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -ErrorAction SilentlyContinue 
    	Write-Host "Restoring Windows Search..."
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value "1"
    	Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -ErrorAction SilentlyContinue
    	Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "DisableWebSearch" -ErrorAction SilentlyContinue
    	Write-Host "Restore and Starting Windows Search Service..."
        Set-Service "WSearch" -StartupType Automatic
        Start-Service "WSearch" -WarningAction SilentlyContinue
        Write-Host "Restore Windows Search Icon..."
    	Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 1 
    	Write-Host "Done - Reverted to Stock Settings"
    })
    So it would appear that the windows search disable got forgotten about/ missed out, since the disable in this script is identical to the Cortana disable script from the previous
    Some YouTube notes https://www.youtube.com/watch?v=rPfz...BUU9la94AaABAg Thursday 24 March, 2022
    I just compared your script from this time with that from your first GUI discussed in video
    The Best Windows 10 Toolbox
    In the previous video you had two separate buttons for tweaks to disable
    Windows search
    and
    Cortana
    In this video you say you combined them, but..
    …but in fact the script behind Disable Cortana (Search) in this video looks identical to the script behind Cortana button in the previous video.
    At first glanced it looks like you forgot
    This might explain why some time later a Pull request ( which you accepted, but incidentally also messed up ) was to add some script to disable some aspects of windows search
    You seem to have messed up the windows search script in later videos as well, which I will now go and check again.
    I love you Chris, learnt tons from you, but you continue to be like Einstein, a bit of a messy chaotic genius, Lol.







    Just as quick comparisom chech. This is from a mid March 2022 script, and is the $Cortana coding called by a the button “Disable Cortana (Search)
    It suggests that nothing changed in the meantime
    Code:
    $cortana.Add_Click({
        Write-Host "Disabling Cortana..."
        If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings")) {
            New-Item -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Force | Out-Null
        }
        Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0
        If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization")) {
            New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Force | Out-Null
        }
        Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1
        Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1
        If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore")) {
            New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null
        }
        Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0
        If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) {
            New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null
        }
        Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0
        Write-Host "Disabled Cortana"
        $ResultText.text = "`r`n" +"`r`n" + "Disabled Cortana"
    })  


    I will carry on the general progression in the next post, from about the point I left ( https://excelfox.com/forum/showthrea...ge51#post12782 ) around July 2021
    Last edited by DocAElstein; 04-01-2022 at 11:03 PM.

  9. #509
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    This is post https://excelfox.com/forum/showthrea...l/page51#12784
    https://excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page51#12784





    Further here I am looking from approx now ( the July 2021 time ), I will try to look carefully at what happened after this point
    On 12 July a large $WindowsSearch.Add_Click( appeared , as did the corresponding button “Search Tweaks”, but the ps1 errors at that new .Add_Click
    If I comment out that section the GUI looks like this
    Sure enough we see the same Guy responsible for the 12 July doing a correction on 18-19 July 2021, which included the missing curly bracket.
    Here is the 19July ps1
    Code:
     Share ‘ChrisSearchTweaks18-19July.ps1     https://app.box.com/s/cbs7go8i2tdxw4wguthgxcviecaxjn6b
    iex ((New-Object System.Net.WebClient).DownloadString(' https://raw.githubusercontent.com/ChrisTitusTech/win10script/71609526b132f5cd7e3b9167779af60051a80912/win10debloat.ps1'))
    And here is the $WindowsSearch.Add_Click(
    https://excelfox.com/forum/showthrea...ll=1#post16473
    https://excelfox.com/forum/showthrea...ll=1#post15748
    https://excelfox.com/forum/showthrea...ge51#post15748

    The two Cortana script bits look to have not changed at this stage.

    $WindowsSearch button gone, script still there
    As far as I can tell the $WindowsSearch.Add_Click( scripting is still there and always wassince it was first introdunced mid July, 2021. However, the Button for $WindowsSearch, “Search Tweaks” seems to have vanished for no apparent reason on 4 August. There were two commits, and somehow the button vanished between the first and the second. Here is the two scripts running side by side:
    https://i.postimg.cc/0NHht9k8/1st-an...n-vanishes.jpg
    As you can see, the change which I expect was wanted is that the remove and reistall App bloat pair has moved down. The Search tweak button vanished, probably by mistake I expect.
    https://i.postimg.cc/HLLf4rCZ/1st-an...n-vanishes.jpg
    I will take a geuss that a copy and paste went wrong. It certainly wouldn’t be the first time, Lol!
    Or, … I note also that Chris never discussed this new search tweaks button anywhere, so another explanation might be he wanted to remove it silently for some reason.



    Some big changes were done around the 23 September which included the windows update fix, many of the things for the new look bigger GUI, including the bloating out into it being too big
    Its close to just starting again, and a lot of that was discussed in the next normal size video, which at the time that I write this was the last normal size video specifically on the tool

    The Ultimate Windows Utility Upgrade 29 09 2021
    https://www.youtube.com/watch?v=dKM8ZScbic8
    Share ‘9.00 The Ultimate Windows Utility Upgrade-dKM8ZScbic8_29 09 2021.wmv’ https://app.box.com/s/9io0pbsjqmmkzfzep8fjqu09jr6lpmtd

    I started looking at scripts in detail at the time they were available from about November. Since the major change reflectes in this video from the end of September, the changes have been fairly well detailed either by Chris’s live stream videos or and my notes starting from the previous page about here: https://excelfox.com/forum/showthrea...e-Excel/page50

    a few extra notes a second time around,
    Chris seems keen to tell people to google debloat windows 10, to get his site at the top, and click there to get to his site.
    winget installs differently..( just to compare https://excelfox.com/forum/showthrea...ll=1#post16508
    https://github.com/ChrisTitusTech/wi...770ae56d3b6e85
    https://github.com/ChrisTitusTech/wi...b236f3ecf290db
    ) It installs through Microsoft Store, ( does not install the store)
    For full restore if something goes wrong with Essential tweaks , he says Undo first then system restore from the made restore point at start of essential tweaks
    He thinks a “local time” thing still in use since introduced as a temporary fix in the y2k time, is a bad idea, for example it might mess things up by Dual booting
    He is still not keen on disabling background apps
    Enable Hibernation button is there as Essentials tweaks disables it, - Chris thinks its better just to just restart your computer once a week.




    At the end of October a live stream added service tweaks and some old control panel type stuff
    9.05 Live - Redesigning the Windows Toolbox 29 10 2021
    https://www.youtube.com/watch?v=srvz8-5qReo
    https://drive.google.com/file/d/1zC3...?usp=drive_web






    The scripts and GUI from late September, are basically as in the above last screenshot form where I started looking at everything in detail, as it was happening or shortly after.

    So that’s about it,
    In the meantime I have just had my accounts at GitHub suspended.
    As ever, almost no one is interested in comments at YouTube.

    So it’s probably time to move on and do it all myself…



    A few miscellaneous things and notes

    A quick comparison of the GUIs. There a three main sorts
    First GUI, 04.12.2020 The Best Windows 10 Toolbox was the simplest 4 code lines, no colour code line so its at default
    Second GUI 06.07.2021 The Best Windows Utility came in all the crap that fucks it up later. But the color was a nice shade of grey, this code line does that
    $Form.BackColor = [System.Drawing.ColorTranslator]::FromHtml("#b8b8b8") # Nice grey shade
    The third and current GUI , from The Ultimate Windows Utility Upgrade 29 09 2021 is the one with over sized and fucked up sizing. There is a color code line but the color is close to default
    $Form.BackColor = [System.Drawing.ColorTranslator]::FromHtml("#e9e9e9")
    Here is all three together (on a 1920x1080 Screen Resolution )


    A way to fix that Admin warning: some settings are managed by your organization
    https://www.youtube.com/watch?v=dO30...zou9_7-HEna_4J
    Last edited by DocAElstein; 04-01-2022 at 11:26 PM.

  10. #510
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,446
    Rep Power
    10
    slkhflskhfslkhf

Similar Threads

  1. Tests and Notes on Range Referrencing
    By DocAElstein in forum Test Area
    Replies: 70
    Last Post: 02-20-2024, 01:54 AM
  2. Tests and Notes for EMail Threads
    By DocAElstein in forum Test Area
    Replies: 29
    Last Post: 11-15-2022, 04:39 PM
  3. Replies: 49
    Last Post: 03-20-2018, 04:09 PM
  4. Notes tests. Excel VBA Folder File Search
    By DocAElstein in forum Test Area
    Replies: 39
    Last Post: 03-20-2018, 04:09 PM
  5. Replies: 2
    Last Post: 12-04-2012, 02:05 PM

Posting Permissions

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