Hello @BAU . I kinda knew that maybe could be a reaction from you. Mate your code is incredibly 90% the same as the new code. You are using the same powershell objects and components. I don't know for the c# code, as i have absolutely no c# knowledge so can't speak about that, but maybe that is also the same. Actually i took the ".psobject.BaseObject" solution from your code. Otherwise implementing the boot options array would have never worked. Personally speaking i do not care about coding style . So for me is not at all relevant that. Despite that i make an effort to do styled code as well. I just prefer to stick closer to the main project code as this is just a fork. But absolutely your coding skills are not questioned here . In fact i will give you credit in the repo as well, coz you have your contribution in the code. For any kind of suggestion just let me know and i will insert it. I am not biased at all. I am just workaholic dev that just loves to make things done and learn new technologies.
I wanted to brag a bit that I've inspired the gods (pun intended). my moment of gratification has passed, so please don't. follow the main project and the original style, it's good practice no matter what I or any one else ramble about it just don't call other style not "clean", powershell event log says otherwise - also, I wash my code twice a.. year
I get your reference! But you were too late! We have forever at least some of your "brag" trapped in the reply! My 2 cents on your original now xinso-ed statement. I actually learned a ton of powershell studying the original single page all-in-one optimize-offline script of many years ago. If I was stepping into this project right-now, I'd have to stare at the code a lot longer to figure anything out. Having said that, your super-compact style forces me to stare pretty hard at your scripts to see what you're up to as well!
Since you are following W11 tinkering - what is the current status of achieving Optimize-Offline on W11 image? I guess since I dont really use anything except removal of packages and features it is already doable for me to do manually, I guess. The only question is what can be safely removed this time
Hey @gdeliana . I know you're interested in--and it's important for maintaining the OO project--what's changing in SecHealthUI with the builds beyond 19043. There are a couple of fresh statements about SecHealthUI on this other thread I'm following. I might just keep adding further developments I stumble across into this post: https://forums.mydigitallife.net/th...struction-project.80939/page-248#post-1692690
I'm having issues with Optimize-Offline-4.0.1.9-gdeliana-1, specifically FeaturesToDisable (thankfully, I still have beta 5 and that works well). It's giving me the red text error ([ERROR]: Failed to Disable Optional Features) as it tries to runs through FeaturesToDisable. Configuration.json: Code: { "_Info": [], "SourcePath": "Z:\\Projects\\OS\\Windows\\Client\\10\\17763.2183.iso", "FeaturesToDisable": "List", "DaRT": [], "Registry": true, "Additional": { "RegistryTemplates": true }, "ISO": "Prompt", "CompressionType": "Maximum", "SelectiveRegistry": { "DisableWindowsUpdate": false, "DisableDriverUpdate": false, "DormantOneDrive": true } } OptimizeErrors.log: Code: Index : 0 Exception : The specified module could not be found. Category : NotSpecified: (:) [Disable-WindowsOptionalFeature], COMException ErrorID : Microsoft.Dism.Commands.DisableWindowsOptionalFeatureCommand Target : Command : [Void](Disable-WindowsOptionalFeature @DisableFeatureParams) Script : Z:\Projects\OS\Windows\Client\10\tools\Optimize-Offline-4.0.1.9-gdeliana-1\Optimize-Offline.psm1 Line : 1201 Column : 14 FeaturesToDisable.json Code: { "FeatureName" : [ "FaxServicesClientPackage" ] }
is the removal done blindly, without querying if the feature is available first? querying should be possible, but I guess just "blacklists" with packages not present in LTS* sources would do could also silence the errors since the script continues anyway without issues (or so it should, still haven't run it myself, but will do at some point) @strotee, I suppose you can just ignore the "red text" for now - in this case is just informational, and should help you learn what is present, what is not, what can be removed
Unfortunately, it kills the entire run. My "template" lists are always ran with populatelists beforehand so it "should" be there, right?
Really only been monitoring @gdeliana's commits and haven't had a chance to test out latest changes - mostly because my daily driver 21390 was due to expire have opted to upgrade to 22468 only to find that it operates a little differently than it does in a VM... go figure... Will try and get around to having a look at your query and hopefully come up with an answer (maybe even before someone else)
I've been using this script for a long time - but on the last builds 19043 and 19044 I have a problem - according to my lists - 19043 everything works fine after installation. The same scrypt - WITH THE SAME LISTS - on 19044 - has an error after installation - right mouse button / personalize / Display settings - closes the window. The same - Settings / System - closes the window. Anyone know why? How do they differ in this? I include my whitelists - I don't use any other lists. Spoiler: Capabilites { "Name": [ "Browser.InternetExplorer~~~~0.0.11.0", "DirectX.Configuration.Database~~~~0.0.1.0", "Language.Handwriting~~~pl-PL~0.0.1.0", "Language.OCR~~~pl-PL~0.0.1.0", "Language.Speech~~~pl-PL~0.0.1.0", "Microsoft.Windows.MSPaint~~~~0.0.1.0", "Media.WindowsMediaPlayer~~~~0.0.12.0", "Language.Speech~~~pl-PL~0.0.1.0", "Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0", "NetFX3~~~~", "Print.Fax.Scan~~~~0.0.1.0", "Print.Management.Console~~~~0.0.1.0", "Windows.Client.ShellComponents~~~~0.0.1.0", "Microsoft.Windows.Notepad~~~~0.0.1.0", "Windows.Kernel.LA57~~~~0.0.1.0" ] } - Spoiler: FeaturesToDisable { "FeatureName": [ "MicrosoftWindowsPowerShellV2", "Internet-Explorer-Optional-amd64", "MicrosoftWindowsPowerShellV2Root", "MSRDC-Infrastructure", "Printing-XPSServices-Features", "Windows-Defender-Default-Definitions", "SmbDirect", "WindowsMediaPlayer", "WorkFolders-Client" ] } - Spoiler: SystemApps { "FeatureName": [ "MicrosoftWindowsPowerShellV2", "Internet-Explorer-Optional-amd64", "MicrosoftWindowsPowerShellV2Root", "MSRDC-Infrastructure", "Printing-XPSServices-Features", "Windows-Defender-Default-Definitions", "SmbDirect", "WindowsMediaPlayer", "WorkFolders-Client" ] } - Spoiler: WindowsApss { "DisplayName": [ "Microsoft.VCLibs.140.00", "CortanaApp.View.App", "Microsoft.UI.Xaml.2.4", "Microsoft.BingNews", "Microsoft.BingWeather", "Microsoft.HEIFImageExtension", "Microsoft.DesktopAppInstaller", "CortanaApp.View.App", "Microsoft.VP9VideoExtensions", "Microsoft.WebMediaExtensions", "Microsoft.windowscommunicationsapps", "MicrosoftWindows.Client.WebExperience", "Microsoft.WindowsStore", "Microsoft.WebpImageExtension", "Microsoft.StorePurchaseApp", "Microsoft.WindowsTerminal" ] }