Giter VIP home page Giter VIP logo

winrice's Introduction

Files Logo

No. of downloads GitHub issues Platform support Platform support

FeaturesDocumentationFAQLicenseContribution

About

WinRice is a PowerShell script designed to automate setting up a new Windows device. It automates a few of the useful things that people generally do in a fresh Windows installation or a new Windows device.

Download Button

Feature Highlight

  • Batch installs apps and features automatically
  • Configures Windows UI
  • Configures Windows Update policies
  • Enhances privacy
  • Disables non-essential tasks
  • Disables silent installation of apps from Microsoft Store
  • Disables suggestions and tips
  • Exposes hidden power options
  • Hardens security
  • Removes non-essential apps
  • Removes non-essential features

Pre-requisites

  • You've read the documentation. If you're running WinRice for the first time, take a look at Main-brief.md. The directory that contains all documents is available here.
  • Your device must:

* If you've just installed Windows, please ensure that all updates from Microsoft Store and Windows Update are installed. This is because WinRice uses some components that are only available in the latest updates. This is to ensure that WinRice works seamlessly on your device.

winrice's People

Contributors

aeongdesu avatar christitustech avatar jsoref avatar kenhv avatar maitreya29 avatar pratyakshm avatar royalturd avatar sycnex avatar whyredfire avatar yaalex3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

winrice's Issues

Add all power options to advanced power settings menu

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

I want WinRice to add all Power options to the Advanced power options menu.
By default on OEM devices, most options are hidden / not controllable by the user.
I have developed https://github.com/pratyakshm/RestorePowerOptions that exposes all the power settings.

I want WinRice to expose all Power options without running extra software.

Does your feature request involve usage of third party software?

No

Don't remove "Steps Recorder" optional feature on PCs registered in WIP

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

Do not remove the optional feature "Steps recorder" on PCs registered in WIP (insider), since it is a necessary feature when filing feedback via the Feedback Hub.

Does your feature request involve usage of third party software?

No

Bug: Microsoft Store's account doesn't get detected

WinRice version

v0.5.04112021 November Release

Windows version

Windows 11 21H2

Write absolute OS build version

10.0.22494.1000

Which category is the issue related to?

Apps

When you run WinRice, does it fail to perform a job or does it break something on your device?

WinRice fails to perform a job

✔️ Expected Behavior

Should find automatically the MS account in the device and installs the requested app (ex. NanaZip)

❌ Actual Behavior

Can't find any MS account in the device and doesn't install the requested app.

image

Steps to reproduce

Just run WinRice and let it do its job.

PowerShell transcript output

...
-------------------------
     APPS & FEATURES
-------------------------

Updating Visual C++ libraries...
Updated Visual C++ libraries.

Installing NanaZip... (Ctrl + Click: https://github.com/M2Team/NanaZip)
No Microsoft Store account found, failed to acquire app.

Installing HEVC Video Extensions...
Installed HEVC Video Extensions.
...

Other software run

None.

Could you add the feature to enable night light at predefined hours?

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

Night light shows warmer colors which helps to fall asleep.

Does your feature request involve usage of third party software?

No

Tracker for currently known issues

Issues

Category Issue Status
Apps & Features Web browsing: Restore recommended suggestion does not turn off ⏸️
Apps & Features HEVC Video Extensions aren't installing

OS Issues

Windows OS Issue Reason why can't fix
Windows 10, 11 Input indicator can't be turned off The registry change is in string keyvalue
Windows 11 Cannot unpin apps from Start menu No official method to customize Start menu of online OS yet

Legend

Emoji Meaning
Not fixed
⏸️ On hold
Fixed

WinRice should check for installed software before installing

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

While in express mode, winrice installs nanazip but it does that everytime you run winrice instead of just checking if it was already installed on the system. So winrice would become much faster if it just checked and ignored for nanazip instead of installing everytime.

Also imo unpinning edge from taskbar is kinda weird...

Oh just noticed typo at the end there xd
image

Does your feature request involve usage of third party software?

No

Meet Now is not disabled

Select category

Windows Explorer

Windows version

Windows 10 21H2, Windows 10 21H1, Windows 10 20H2

Expected behavior

Meet Now is disabled

Actual behavior

Meet Now is left unconfigured

WinRice output

NA

Anything else I should know?

No response

WinRice.ps1 doesn't working properly

Windows version

Windows 10, version 21H2 (November 2021 Update)

Expected behavior

Normal operation of WinRice.ps1

Actual behavior

WinRice.ps1 did not work

WinRice output

None

Anything else I should know?

PS C:\Users\Mert Özkan\WinRice> .\WinRice.ps1
At C:\Users\Mert Özkan\WinRice\WinRice.ps1:1002 char:22

  • if (!(check($sure)) {
    
  •                     ~
    

Unexpected token '{' in expression or statement.
At C:\Users\Mert Özkan\WinRice\WinRice.ps1:1002 char:22

  • if (!(check($sure)) {
    
  •                     ~
    

Missing closing ')' after expression in 'if' statement.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken

Show app name instead of package name

Select category

Windows Explorer / User Interface

Windows version

Windows 11 21H2, Windows 10 21H2, Windows 10 21H1, Windows 10 20H2

Expected behavior

The UI for selecting apps to uninstall should display the app name, its icon, and its package name (greyed out) instead of just package name.

Actual behavior

The UI only shows package name

WinRice output

No

Alternative software run

  • I have run alternative software that offers functionality similar to WinRice

Link to alternative similar software

No response

OneDrive does not get uninstalled completely

Select category

Apps

Windows version

Windows 11 21H2

Expected behavior

OneDrive should get uninstalled wholly

Actual behavior

OneDrive does not get de-listed from installed apps list, taskbar icon still visible

WinRice output

PowerShell_transcript.LENOVO-G570.Nkg_PcmG.20220302212428.txt

Anything else I should know?

Although onedrive gets uninstalled, there exist remains of the app...
image
Screenshot 2022-03-03 151153

Control Panel -> Uninstall apps generously offers to remove it from apps listing.
image

Clicking "yes" removes the entry but doesn't remove taskbar icon
image

This is my first time reporting an issue here, sorry if it is too many pictures.

WinGet doesn't uninstall it completely, either...
image

Edit:- oh and I'm on W11 insider dev 22567

Machine-wide policies wording is confusing

Select category

Other

Windows version

Windows 11 22H2, Windows 11 21H2, Windows 10 21H2, Windows 10 21H1, Windows 10 20H2

Expected behavior

It is made clear to users that there are some settings that can only be applied if so is done machine-wide instead of only to the current user.

Actual behavior

There are some settings that leverage GPO, hence they apply machinewide (all users across one device instead of only current user). WinRice asks if you want to apply these policies that configure the setting machine-wide as well, but the current wording is not at all friendly or clear. In fact, some users have complained to me that they thought that the machine-wide policies question meant if WinRice would apply all settings machine-wide instead of just the current user, which clearly is not the case. This is only limited to some functions, not all functions.

WinRice output

N/A

Anything else I should know?

No response

The News&Interest-ception

Select category

Windows Explorer / User Interface

Windows version

Windows 10 21H2, Windows 10 21H1, Windows 10 20H2

Expected behavior

If NI is not going to be disabled, dont show it when performing changes

Actual behavior

In the initial selection screen, the script confirms that it will not disable NI.

While it is processing changes (uninstalling apps, features, etc.), there was the text "Disabling NI", "Disabled NI" (or something similar)

In the end, it did not disable NI

WinRice output

**********************
Windows PowerShell transcript start
Start time: 20220115001739
Username: DESKTOP-69BQ57G\Pro
RunAs User: DESKTOP-69BQ57G\Pro
Configuration Name: 
Machine: DESKTOP-69BQ57G (Microsoft Windows NT 6.2.9200.0)
Host Application: C:\Users\Pro\Downloads\WinRice-main.exe
Process ID: 10992
PSVersion: 5.1.19041.1320
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.1320
BuildVersion: 10.0.19041.1320
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
WinRice pre-execution environment

Copyright (c) Pratyaksh Mehrotra and contributors
https://github.com/pratyakshm/WinRice

Beginning checks...

  [\] [1/5] Windows version is supported

  [|] [1/5] Windows version is supported

  [/] [1/5] Windows version is supported

  [-] [1/5] Windows version is supported

  [\] [1/5] Windows version is supported

  [|] [1/5] Windows version is supported

  [/] [1/5] Windows version is supported

  [-] [1/5] Windows version is supported

  [\] [1/5] Windows version is supported

  [|] [1/5] Windows version is supported

  [/] [1/5] Windows version is supported

  [-] [1/5] Windows version is supported

  [\] [1/5] Windows version is supported

  [|] [1/5] Windows version is supported

  [/] [1/5] Windows version is supported

  [-] [1/5] Windows version is supported

  [+]
[1/5] Windows version is supported

  [\] [2/5] Session is elevated

  [|] [2/5] Session is elevated

  [/] [2/5] Session is elevated

  [-] [2/5] Session is elevated

  [\] [2/5] Session is elevated

  [|] [2/5] Session is elevated

  [/] [2/5] Session is elevated

  [-] [2/5] Session is elevated

  [\] [2/5] Session is elevated

  [|] [2/5] Session is elevated

  [/] [2/5] Session is elevated

  [-] [2/5] Session is elevated

  [\] [2/5] Session is elevated

  [|] [2/5] Session is elevated

  [/] [2/5] Session is elevated

  [-] [2/5] Session is elevated

  [+]
[2/5] Session is elevated

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [\] [3/5] Device is connnected to the Internet

  [|] [3/5] Device is connnected to the Internet

  [/] [3/5] Device is connnected to the Internet

  [-] [3/5] Device is connnected to the Internet

  [+]
[3/5] Device is connnected to the Internet
PS>TerminatingError(Get-WmiObject): "Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."
>> TerminatingError(Get-WmiObject): "Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."

  [\] [4/5] Setting up PowerShell

  [|] [4/5] Setting up PowerShell

  [/] [4/5] Setting up PowerShell

  [-] [4/5] Setting up PowerShell

  [\] [4/5] Setting up PowerShell

  [|] [4/5] Setting up PowerShell

  [/] [4/5] Setting up PowerShell

  [-] [4/5] Setting up PowerShell

  [\] [4/5] Setting up PowerShell

  [|] [4/5] Setting up PowerShell

  [/] [4/5] Setting up PowerShell

  [-] [4/5] Setting up PowerShell

  [\] [4/5] Setting up PowerShell

  [|] [4/5] Setting up PowerShell

  [/] [4/5] Setting up PowerShell

  [-] [4/5] Setting up PowerShell

  [+]
[4/5] Setting up PowerShell

  [\] [5/5] Session is fresh

  [|] [5/5] Session is fresh

  [/] [5/5] Session is fresh

  [-] [5/5] Session is fresh

  [\] [5/5] Session is fresh

  [|] [5/5] Session is fresh

  [/] [5/5] Session is fresh

  [-] [5/5] Session is fresh

  [\] [5/5] Session is fresh

  [|] [5/5] Session is fresh

  [/] [5/5] Session is fresh

  [-] [5/5] Session is fresh

  [\] [5/5] Session is fresh

  [|] [5/5] Session is fresh

  [/] [5/5] Session is fresh

  [-] [5/5] Session is fresh

  [+]
[5/5] Session is fresh
Completed checks.

Express Settings:
  A set of unessential apps WILL be uninstalled.
  A set of unessential features WILL be uninstalled.
  Apps will NOT be installed.
  NO optional features are installed.
  Windows automatic updates will be disabled.
  Windows quality updates will be delayed by 4 days and feature updates will be delayed by 20 days.

To learn more, visit https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md
Standard privacy, security, tasks, services and UI changes as listed in WinRice documentation will apply. These changes are not configurable.



Please take your time to answer the questions below in order to save user config.
Press Enter to proceed after answering a question.

APP DEPLOYMENT
  Unessential apps WILL be uninstalled.
  You will select which apps you want to uninstall.
  Microsoft OneDrive WILL be uninstalled.

FEATURE DEPLOYMENT
  NO changes will be made to .NET 3.5.
  NO changes will be made to Windows Subsystem for Linux.
  NO changes will be made to Windows Sandbox.
  Unessential features WILL be uninstalled.
  NO changes will be made to Widgets.

WINDOWS UPDATE
  Windows updates will be delayed.
  Windows automatic updates will be disabled.

 NO system restore point will be created.


To sum it up,
NO apps will be installed.
NO changes will be made to .NET 3.5.
NO changes will be made to Windows Subsystem for Linux.
NO changes will be made to Windows Sandbox.
Unessential features will be uninstalled.
NO changes will be made to Widgets.
Windows automatic updates will be disabled.
Windows quality updates will be delayed by 4 days and feature updates will be delayed by 20 days.
NO system restore point will be created.

If this configuration is correct,
press any key to go ahead.
If this configuration is not correct, restart WinRice and create a new one.
Starting WinRice...

pratyakshm's WinRice - main branch

Copyright (c) Pratyaksh Mehrotra and contributors
https://github.com/pratyakshm/WinRice

Windows 10 Pro 21H1
Build 10.0.19043.1466, vb_release branch



-------------------------
     APPS & FEATURES
-------------------------


Installing NanaZip... (https://github.com/M2Team/NanaZip)
Installed NanaZip.

Installing HEVC Video Extensions...
Installed HEVC Video Extensions.

App Uninstaller GUI
If app selection menu is not visible, use Alt + Tab to switch to that window.
Uninstalling selected apps...
Uninstalled.

Unpinning all tiles from Start Menu...
Unpinned all tiles from Start Menu.

Unpinning apps from taskbar...
Unpinned apps from taskbar.

Uninstalling Microsoft OneDrive...
Uninstalled Microsoft OneDrive.

Removing capabilites and features...
    - Uninstalled Math Recognizer
    - Uninstalled Steps Recorder
    - Uninstalled Snipping Tool
    - Uninstalled Windows Fax & Scan
    - Uninstalled Windows Media Player
    - Uninstalled Windows Hello Face
    - Uninstalled Windows PowerShell ISE
    - Uninstalled Windows XPS Features
    - Uninstalled WordPad
    - Disabled DirectPlay
    - Disabled PowerShell v2 (root)
    - Disabled SMB1 protocol
    - Disabled SMB Direct
    - Disabled Work Folders Client
    - Disabled XPS Document Writer
Removed capabilities and features.

---------------------------
     CHANGES PERFORMED
---------------------------


-------------------------
    PRIVACY & SECURITY
-------------------------


Disabling Activity History...
Disabled Activity History.

Disabling Advertising ID...
Disabled Advertising ID.

Disabling Windows Error Reporting...
Disabled Windows Error Reporting.

Disabling Feedback notifications...
Disabled Feedback notifications.

Disabling Inking & typing personalization...
Disabled Inking & typing personalization.

Disabling websites' ability to provide you with locally relevant content by accessing your language list...
Disabled websites' ability to provide you with locally relevant content by accessing your language list.

Disabling location tracking...
Disabled Location tracking.

Disabling automatic Maps updates...
Disabled automatic Maps updates.

Disabling Online Speech recognition...
Disabled Online Speech recognition.

Disabling silent installation of suggested apps...
Disabled silent installation of suggested apps.

Disabling suggested content in Settings app...
Disabled suggested content in Settings app.

Disabling suggested content in Start menu...
Disabled suggested content in Start menu.

Disabling Tailored experiences...
PS>TerminatingError(Test-Path): "Cannot bind argument to parameter 'Path' because it is null."
Disabled Tailored experiences.

Disabling telemetry...
Disabled telemetry.

Enabling Clipboard History...
Enabled Clipboard History.
You can now copy multiple items to your clipboard.
Access your clipboard now using Windows key + V.

Enabling automatic login post updates...
Enabled Automatic login applying updates.

Disabling Virtualization-based security...
  This processor does not natively support MBEC. Emulating it will result in bigger impact on performance on MBEC-unsupported CPUs.
  See https://docs.microsoft.com/en-us/windows/security/threat-protection/device-guard/enable-virtualization-based-protection-of-code-integrity.
Disabled Virtualization-based security.

  Note that virtualization features powered by Hyper-V such as WSL and WSA will not work until you re-enable Virtualization-based security.
  Read https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#virtualization-based-security for more.


Disabling Windows WDigest credential caching...
Disabled Windows WDigest credential caching.

Disabling LLMNR...
Disabled LLMNR.

PS>TerminatingError(Get-ItemPropertyValue): "Property DisableExceptionChainValidation does not exist at path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel."
Enabling Structured Exception Handling Overwrite Protection...
Enabled Structured Exception Handling Overwrite Protection.

Disabling Web Proxy Auto-Discovery...
Disabled Web Proxy Auto-Discovery.

Enabling LSA Protection/Auditing...
Enabled LSA Protection/Auditing.

Disabling Windows Script Host...
Disabled Windows Script Host.


---------------------------
     CHANGES PERFORMED
---------------------------


---------------------------
      TASKS & SERVICES
---------------------------


Enabling Storage Sense...
Enabled Storage Sense.

Disabling Reserved Storage...
Disabled Reserved Storage.

Disabling AutoPlay...
Disabled AutoPlay.

Disabling Autorun for all drives...
Disabled Autorun for all drives.

Disabling hibernation...
Disabled hibernation.

Setting BIOS time to UTC...
BIOS Time is set to UTC.

Setting Num lock to turn on autoamtically on Startup...
Num lock will turn on automatically on Startup.

Disabling unessential services...
    Stopped service: DiagTrack.
    Stopped service: SysMain.
Disabled unnecesarry services.

Disabling unessential tasks...
    Disabled task: Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser.
    Disabled task: Microsoft\Windows\Application Experience\ProgramDataUpdater.
    Disabled task: Microsoft\Windows\Application Experience\PcaPatchDbTask.
    Disabled task: Microsoft\Windows\Autochk\Proxy.
    Disabled task: Microsoft\Windows\Customer Experience Improvement Program\Consolidator.
    Disabled task: Microsoft\Windows\Customer Experience Improvement Program\UsbCeip.
    Disabled task: Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector.
    Disabled task: Microsoft\Windows\Windows Error Reporting\QueueReporting.
    Disabled task: Microsoft\Windows\Feedback\Siuf\DmClient.
    Disabled task: Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload.
Disabled unessential tasks.

Setting up Windows Update policies...
    - Disabled automatic updates
PS>TerminatingError(Set-ItemProperty): "Cannot bind argument to parameter 'Path' because it is null."
>> TerminatingError(Set-ItemProperty): "Cannot bind argument to parameter 'Path' because it is null."
>> TerminatingError(Set-ItemProperty): "Cannot bind argument to parameter 'Path' because it is null."
>> TerminatingError(Set-ItemProperty): "Cannot bind argument to parameter 'Path' because it is null."
    - Delayed quality updates by 4 days.
    - Delayed feature updates by 20 days.
    - Disabled Delivery optimization.
    - Device will no longer auto restart if users are signed in.
    - Disabled re-installation of apps after Windows Updates.
Set up Windows Update policies.

---------------------------
     CHANGES PERFORMED
---------------------------


----------------------------------
          WINDOWS EXPLORER
----------------------------------


Binding Print Screen key to launch Snip overlay...
Bound Print Screen key to launch Snip overlay.

Hiding recent files from Quick Access...
Hidden recent files from Quick Access.

Disabling Sticky keys...
Disabled Sticky keys.

Setting default File Explorer view to This PC...
Set default File Explorer view to This PC.

Hiding 3D Objects...
Hid 3D Objects.

Hiding Search button...
Hid Search button.

Hiding Task view button...
Hid Task view button.

Hiding Cortana button...
Hid Cortana button.

Hiding Meet now...
Hid Meet now.

Disabling News and interests...
Disabled News and interests.

---------------------------
     CHANGES PERFORMED
---------------------------

Thank you for using WinRice.
**********************
Windows PowerShell transcript end
End time: 20220115002443
**********************

Alternative software run

  • I have run alternative software that offers functionality similar to WinRice

Link to alternative similar software

No response

Bug: Stuck at installing 7-zip.

WinRice version

v0.4 August release

Windows version

Windows 11 21H2

Write absolute OS build version

10.0.22000.258

Which category is the issue related to?

Apps and Features

Does something on the OS break or does WinRice functionality not work?

WinRice not working as expected

✔️ Expected Behavior

Install 7-zip

❌ Actual Behavior

Stuck at "installing 7-zip..."

Steps to reproduce

Run WinRice-v0.4.exe

PowerShell transcript output

**********************
Windows PowerShell transcript start
Start time: 20211027154036
Username: Harshitha
RunAs User: Harshitha
Configuration Name: 
Machine: Lilac (Microsoft Windows NT 6.2.9200.0)
Host Application: C:\Users\Harshitha\Downloads\WinRice-v0.4.exe
Process ID: 3852
PSVersion: 5.1.22000.65
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22000.65
BuildVersion: 10.0.22000.65
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
WinRice pre-execution environment

Copyright (c) Pratyaksh Mehrotra and contributors
https://github.com/pratyakshm/WinRice


  [\] Supported Windows version

  [|] Supported Windows version

  [/] Supported Windows version

  [-] Supported Windows version

  [\] Supported Windows version

  [|] Supported Windows version

  [/] Supported Windows version

  [-] Supported Windows version

  [+]
Supported Windows version

  [\] Elevated PowerShell session

  [|] Elevated PowerShell session

  [/] Elevated PowerShell session

  [-] Elevated PowerShell session

  [\] Elevated PowerShell session

  [|] Elevated PowerShell session

  [/] Elevated PowerShell session

  [-] Elevated PowerShell session

  [+]
Elevated PowerShell session

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [+]
Device connection

  [\] No restarts needed

  [|] No restarts needed

  [/] No restarts needed

  [-] No restarts needed

  [\] No restarts needed

  [|] No restarts needed

  [/] No restarts needed

  [-] No restarts needed

  [+]
No restarts needed

  [\] Setting up PowerShell

  [|] Setting up PowerShell

  [/] Setting up PowerShell

  [-] Setting up PowerShell

  [\] Setting up PowerShell

  [|] Setting up PowerShell

  [/] Setting up PowerShell

  [-] Setting up PowerShell

  [+]
Setting up PowerShell

Please take your time to answer the questions below in order to save user config.
Press Enter to proceed after answering a question.


Starting WinRice...

pratyakshm's WinRice - version 0.4

Copyright (c) Pratyaksh Mehrotra (a.k.a. pratyakshm) and contributors
https://github.com/pratyakshm/WinRice

Windows 11 Enterprise 21H2
Build 22000.258, co_release branch



-------------------------
     APPS & FEATURES
-------------------------

Installing app frameworks...
PS>TerminatingError(Add-AppxPackage): "Cannot find path 'C:\Users\Harshitha\Downloads\WinRice\Microsoft.VCLibs.140.00.UWPDesktop_14.0.30035.0_x64__8wekyb3d8bbwe.Appx' because it does not exist."
>> TerminatingError(Add-AppxPackage): "Cannot find path 'C:\Users\Harshitha\Downloads\WinRice\Microsoft.VCLibs.140.00.UWPDesktop_14.0.30035.0_x86__8wekyb3d8bbwe.Appx' because it does not exist."
Installed app frameworks.

WinGet is already installed on this device.

Installing 7-zip...

Other software run

none.

Bug: Text bugging out in the app's cmd window

WinRice version

v0.5.04112021 November Release

Windows version

Windows 10 21H1

Write absolute OS build version

10.0.19043.1288

Which category is the issue related to?

Windows Explorer / User Interface

Does something on the OS break or does WinRice functionality not work?

WinRice not working as expected

✔️ Expected Behavior

All the text appearing in the cmd box should appear normal

❌ Actual Behavior

Text is bugging out and is showing raw commands.

image
image

Steps to reproduce

Run the script with custom settings

PowerShell transcript output

**********************
Windows PowerShell transcript start
Start time: 20211106202338
Username: DESKTOP-U899C1L\Pro
RunAs User: DESKTOP-U899C1L\Pro
Configuration Name: 
Machine: DESKTOP-U899C1L (Microsoft Windows NT 6.2.9200.0)
Host Application: C:\Users\Pro\Downloads\WinRice-v0.5.04112021.exe
Process ID: 8880
PSVersion: 5.1.19041.1237
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.1237
BuildVersion: 10.0.19041.1237
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
WinRice pre-execution environment

Copyright (c) Pratyaksh Mehrotra and contributors
https://github.com/pratyakshm/WinRice


  [\] Supported Windows version

  [|] Supported Windows version

  [/] Supported Windows version

  [-] Supported Windows version

  [\] Supported Windows version

  [|] Supported Windows version

  [/] Supported Windows version

  [-] Supported Windows version

  [+]
Supported Windows version

  [\] Elevated PowerShell session

  [|] Elevated PowerShell session

  [/] Elevated PowerShell session

  [-] Elevated PowerShell session

  [\] Elevated PowerShell session

  [|] Elevated PowerShell session

  [/] Elevated PowerShell session

  [-] Elevated PowerShell session

  [+]
Elevated PowerShell session

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [\] Device connection

  [|] Device connection

  [/] Device connection

  [-] Device connection

  [+]
Device connection

  [\] No restarts needed

  [|] No restarts needed

  [/] No restarts needed

  [-] No restarts needed

  [\] No restarts needed

  [|] No restarts needed

  [/] No restarts needed

  [-] No restarts needed

  [+]
No restarts needed

  [\] Setting up PowerShell

  [|] Setting up PowerShell

  [/] Setting up PowerShell

  [-] Setting up PowerShell

  [\] Setting up PowerShell

  [|] Setting up PowerShell

  [/] Setting up PowerShell

  [-] Setting up PowerShell

  [+]
Setting up PowerShell

Express Settings:
 A predefined set of unnecessary apps will be uninstalled.
 A predefined set of unnecessary features will be uninstalled.
 Apps will not be installed.
 .NET 3.5 will not be installed.
 Microsoft OneDrive will not be uninstalled.
 Widgets will not be uninstalled.
 Windows Subsystem for Linux will not be installed.
 Windows Sandbox will not be installed.


Please take your time to answer the questions below in order to save user config.
Press Enter to proceed after answering a question.


APP DEPLOYMENT

FEATURE DEPLOYMENT

WINDOWS UPDATE



To sum it up,
Apps will not be installed.
dotNET 3.5 will not be installed.
Windows Subsystem for Linux will not be installed.
Windows Sandbox will not be installed.
Non-essential optional features will be uninstalled.
Widgets will be not be uninstalled, and will be updated to the latest version instead.
Windows automatic updates will be turned off.
Windows updates will not be delayed.
System restore point will not be created.

If this configuration is correct,
press any key to go ahead.
If this configuration is not correct, restart WinRice and create a new one.
Starting WinRice...

pratyakshm's WinRice - v0.5.04112021

Copyright (c) Pratyaksh Mehrotra (a.k.a. pratyakshm) and contributors
https://github.com/pratyakshm/WinRice

Windows 10 Pro 21H1
Build 10.0.19043.1288, vb_release branch



-------------------------
     APPS & FEATURES
-------------------------

Updating Visual C++ libraries...
Updated Visual C++ libraries.

Updating Microsoft Store...
Could not update Microsoft Store.

Installing NanaZip... (Ctrl + Click: https://github.com/M2Team/NanaZip)
No Microsoft Store account found, failed to acquire app.

Installing HEVC Video Extensions...
Installed HEVC Video Extensions.

Checking if Widgets are updated...
Widgets are up to date.

Installing Cascadia Code...
Installed Cascadia Code.

Unpinning all tiles from Start Menu...
Unpinned all tiles from Start Menu.

Unpinning apps from taskbar...
Unpinned apps from taskbar.

Removing capabilites and features...
    - Uninstalled Math Recognizer
    - Uninstalled Steps Recorder
    - Uninstalled Snipping Tool
    - Uninstalled Windows Fax & Scan
    - Uninstalled Windows Media Player
    - Uninstalled Windows Hello Face
    - Uninstalled Windows PowerShell ISE
    - Uninstalled Windows XPS Features
    - Uninstalled WordPad
    - Disabled DirectPlay
    - Disabled PowerShell v2 (root)
    - Disabled SMB1 protocol
    - Disabled SMB Direct
    - Disabled Work Folders Client
    - Disabled XPS Document Writer
Removed capabilities and features.

---------------------------
     CHANGES PERFORMED
---------------------------


-------------------------
    PRIVACY & SECURITY
-------------------------


Turning off Activity History...
Turned off Activity History.

Turning off Advertising ID...
Turned off Advertising ID.

Turning off Background apps...
PS>TerminatingError(ForEach-Object): "Missing an argument for parameter 'Process'. Specify a parameter of type 'System.Management.Automation.ScriptBlock[]' and try again."
>> TerminatingError(ForEach-Object): "Missing an argument for parameter 'Process'. Specify a parameter of type 'System.Management.Automation.ScriptBlock[]' and try again."
Turned off Background apps.

Turning off Windows Error Reporting...
Turned off Windows Error Reporting.

Turning off Feedback notifications...
Turned off Feedback notifications.

Turning off Inking & typing personalization...
Turned off Inking & typing personalization.

Turning off websites' ability to provide you with locally relevant content by accessing your language list...
Turned off websites' ability to provide you with locally relevant content by accessing your language list.

Turning off location tracking...
Turned off Location tracking.

Turning off automatic Maps updates...
Turned off automatic Maps updates.

Turning off Online Speech recognition...
Turned off Online Speech recognition.

Turning off silent installation of suggested apps...
Turned off silent installation of suggested apps.

Turning off suggested content in Settings app...
Turned off suggested content in Settings app.

Turning off suggested content in Start menu...
Turned off suggested content in Start menu.

Turning off Tailored experiences...
PS>TerminatingError(Test-Path): "Cannot bind argument to parameter 'Path' because it is null."
>> TerminatingError(Set-ItemProperty): "Missing an argument for parameter 'Path'. Specify a parameter of type 'System.String[]' and try again."
Turned off Tailored experiences.

Turning off telemetry...
Turned off telemetry.

Turning on Clipboard History...
Turned on Clipboard History.
You can now copy multiple items to your clipboard.
Access your clipboard now using Windows key + V.

Turning on automatic login post updates...
Turned on Automatic login applying updates

---------------------------
     CHANGES PERFORMED
---------------------------


---------------------------
      TASKS & SERVICES
---------------------------


Turning on Storage Sense...
Turned on Storage Sense.

Turning off Reserved Storage...
Turned off Reserved Storage.

Turning off AutoPlay...
Turned off AutoPlay.

Turning off Autorun for all drives...
Turned off Autorun for all drives.

Turning off hibernation...
Turned off hibernation.

Setting BIOS time to UTC...
BIOS Time is set to UTC.

Setting Num lock to turn on autoamtically on Startup...
Num lock will turn on automatically on Startup.

Turning off unnecessary services...
    Stopped service: DiagTrack.
    Stopped service: SysMain.
Turned off unnecesarry services.

Turning off unnecessary tasks...
    Turned off task: Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser.
    Turned off task: Microsoft\Windows\Application Experience\ProgramDataUpdater.
    Turned off task: Microsoft\Windows\Application Experience\PcaPatchDbTask.
    Turned off task: Microsoft\Windows\Autochk\Proxy.
    Turned off task: Microsoft\Windows\Customer Experience Improvement Program\Consolidator.
    Turned off task: Microsoft\Windows\Customer Experience Improvement Program\UsbCeip.
    Turned off task: Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector.
    Turned off task: Microsoft\Windows\Windows Error Reporting\QueueReporting.
    Turned off task: Microsoft\Windows\Feedback\Siuf\DmClient.
    Turned off task: Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload.
Turned off unnecessary tasks.

Setting up Windows Update policies...
    - Turned off automatic updates
    - Turned off Delivery optimization.
    - Device will no longer auto restart if users are signed in.
    - Turned off re-installation of apps after Windows Updates.
Set up Windows Update policies.

---------------------------
     CHANGES PERFORMED
---------------------------


----------------------------------
          WINDOWS EXPLORER
----------------------------------


Binding Print Screen key to launch Snip overlay...
Bound Print Screen key to launch Snip overlay.

Showing extensions in file names...
Showed extensions in file names.

Hiding recent files from Quick Access...
Hidden recent files from Quick Access.

Turning off Sticky keys...
Turned off Sticky keys.

Setting default File Explorer view to This PC...
Set default File Explorer view to This PC.

Turning off 3D Objects...
Turned off 3D Objects.

Turning off Search bar...
Turned off Search bar.

Turning off Task view icon...
Turned off Task view icon.

Turning off Cortana icon...
Turned off Cortana icon.

Turning off Meet now...
Turned off Meet now.

Turning off News and interests...
Turned off News and interests.

---------------------------
     CHANGES PERFORMED
---------------------------

Thank you for using WinRice.
**********************
Windows PowerShell transcript end
End time: 20211106204523
**********************

Other software run

NA

Failed to install Chocolatey Package Manager

Windows version

Windows 11, version 22H2 (Fall 2022 Update), Windows 11, version 21H2 (Original Release), Windows 10, version 21H2 (November 2011 Update), Windows 10, version 21H1 (May 2021 Update)

Expected behavior

WinRice installs Chocolatey Package Manager

Actual behavior

WinRice fails to install Chocolatey Package Manager.

WinRice output

N.A.

Anything else I should know?

No response

Virustotal reports WinRice-main.exe as malware

Select category

Security

Windows version

Windows 11 21H2

Expected behavior

WinRice-main should be no virus or malware

Actual behavior

5 security vendors flagged WinRice-main.exe file as malicious
https://www.virustotal.com/gui/file/2dc063178d66f21aa23b7721c7f93e1792d0d9e265b55f1856c2d059b9b523f3/details

WinRice output

malware

Alternative software run

  • I have run alternative software that offers functionality similar to WinRice

Link to alternative similar software

No response

Telemetry breaks apps

When I turn off telemetry data collection option from cleanwin, it breaks my apps like teams that rely on data collection from user, and so those apps would not open at all. It must be a thing mainly with a few microsoft apps but yes it exists.

Add option to uninstall OneNote / OneNote for windows 10

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

Add option to uninstall OneNote / OneNote for windows 10 as many of the users don't use it and why should we even keep this bloatware on the machine.

Does your feature request involve usage of third party software?

No

[Request] A better UWP 'crapware' removal

Here's a screenshot from the Sophia script

Instead of hard-coding the package names of the UWP crapware to remove, let's provide users the ability to choose what to remove, as seen in the screenshot above (it's from the Sophia script, by @farag2).

Another upside of this method would be that we won't need to maintain a list of packages to remove, as it's always dynamically populated, which for me (and hopefully others) is a CleanWin-win (get it? 🤣 )

Feature Request: Only mark the "default" apps while editing the uninstallation list

Does your feature request involve usage of third party software?

No

Have you written the code which adds this feature?

No

Explain the feature

While using a different uninstallation preset, the "new" uninstallation editable-list shows up.
Instead of checking every app available in the system:
image
just mark only the apps already written in the app uninstallation list. In this way, the user can only mark/not mark the other/s unwanted apps/wanted apps.

Does this Feature Request follow the WinRice principles?

  • Yes

Feature Request: Add option to disable Win defender

Does your feature request involve usage of third party software?

No

Have you written the code for it?

No

Explain the feature

Some peeps don't like win defender so..

Does this Feature Request follow CleanWin principles?

  • Yes

Please add the ability to disable VBS while maintaining hyper-V functionality

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

bcdedit /set hypervisorlaunchtype off breaks WSL and WSA functionality

Does your feature request involve usage of third party software?

No

WinRice seems to be messing up the time

Select category

Windows Explorer / User Interface

Windows version

Windows 11 21H2

Expected behavior

I didnt expect it to randomly change the time in the express setup

Actual behavior

The time changed after I my pc restarted after the express setup was completed, this didnt happen the 2nd time when I manually selected the options.

image

WinRice output

PowerShell_transcript.KESHAVSPC.xxJ15+LD.20220122103040.txt
PowerShell_transcript.KESHAVSPC.NiPf_+bH.20220122161534.txt

Alternative software run

  • I have run alternative software that offers functionality similar to WinRice

Link to alternative similar software

No response

[Apps] Ask user if they want to create a Winstall list during customization

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

When the user chooses Custom settings, and they choose to install apps using Winstall, offer to open notepad.exe for them to create a Winstall.txt file.

MUST:

  • Be named Winstall.txt
  • Be saved in the same directory as WinRice
  • Have one app name per line

Does your feature request involve usage of third party software?

No

Hibernation is disabled in laptops

Select category

OS

Windows version

Windows 11 21H2

Expected behavior

Hibernation is not disabled when WinRice detects itself running on a laptop

Actual behavior

Hibernation is disabled anyway

WinRice output

N.A.

Anything else I should know?

Tested in Windows 11 release build only, but the issue may persist in more Windows 10 builds.

Insider detection needs to be improved

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

Suggestion

WinRice currently decides if the current OS build is an Insider build by checking hardcoded rs_prerelease and ni_release branch names. While these branch names apply to the latest and recent Windows Insider builds in the Dev channel, they do not serve all Windows Insiders from different channels (Beta and Release Preview).

This leads to a scenario where WinRice think that the device is running a retail build of Windows when the device is actually on Beta / RP, and apply settings and policies that I deem are not favorable to Windows Insiders - these settings include hardening Telemetry, disabling feedback notifications and deferring Windows Updates.

Does your feature request involve usage of third party software?

No

Make "setting BIOS time to UTC" optional

WinRice principles

  • I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense.

Explain the feature.

Currently, running WinRIce sets the BIOS to follow UTC. Many motherboards have the feature to sync the BIOS time with Windows. So, after running WinRice and rebooting, there happens to be some mix-up with the time being set, which, in the end, makes Windows display the incorrect and requires having to sync the time for settings manually.

I would like to request to make this feature configurable.

Related to #42

Does your feature request involve usage of third party software?

No

Have you written the code that adds this feature?

No

Your code for the feature

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.