microsoft / microsoft/Validation-OS

Get rid of PowerShell dependancy in `winvos-iso/GenImage/GenImage.cmd` of the WinVOS iso image

Open Beginner friendly
#19 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Batchfile
Stars
31
Forks
5
PR merge metrics
No merged PRs in 30d

Description

$ grep powershell ./winvos-iso/GenImage/GenImage.cmd 
for /F "usebackq" %%a in (`powershell -c "Get-Date -Format 'yyyyMMddHHmmssff'" 2^>nul`) do set ts_LocalDateTime=%%a

I guess this GenImage script for cmd.exe should work even on systems without PowerShell, e.g. from a booted minimalistic image of WinVOS itself. There must be a reason you decided to write this script in .cmd, not PowerShell.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with winvos-iso/GenImage/GenImage.cmd and inspect the timestamp command shown in the issue. Replace the PowerShell dependency with an approach available from cmd.exe, then verify the script contains no PowerShell invocation and can run in the minimal WinVOS environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, shell
Domain
build-system
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.