microsoft / microsoft/Validation-OS
Get rid of PowerShell dependancy in `winvos-iso/GenImage/GenImage.cmd` of the WinVOS iso image
Open
Beginner friendly
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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