Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log output is broken (and there is no screen output) #30

Open
bezik46 opened this issue Jan 22, 2022 · 5 comments
Open

Log output is broken (and there is no screen output) #30

bezik46 opened this issue Jan 22, 2022 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@bezik46
Copy link

bezik46 commented Jan 22, 2022

Previous version had the nice function Write-W2VInfo to output to screen (as well as log).

Current version has loging broken
It writes:

Windows PowerShell transcript start
Start time: 20220122091030
Username: SP-P-MEDIA\Administrator
RunAs User: SP-P-MEDIA\Administrator
Machine: SP-P-MEDIA (Microsoft Windows NT 6.3.9600.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 136
PSVersion: 5.0.10586.117
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0.10586.117
BuildVersion: 10.0.10586.117
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
**********************
Windows PowerShell transcript end
End time: 20220122092255
**********************

While previous version would give nicely all info: (in log and also on screen)

**********************
Windows PowerShell transcript start
Start time: 20220122084853
Username: SP-P-MEDIA\Administrator
RunAs User: SP-P-MEDIA\Administrator
Machine: SP-P-MEDIA (Microsoft Windows NT 6.3.9600.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 8208
PSVersion: 5.0.10586.117
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0.10586.117
BuildVersion: 10.0.10586.117
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
INFO   : Looking for the requested Windows image in the WIM file
INFO   : Image 2 selected (ServerStandard)...
INFO   : Creating VHD disk...
INFO   : Attaching VHDX...
INFO   : Initializing disk...
INFO   : Creating EFI system partition (ESP)...
INFO   : Formatting ESP...
INFO   : Creating MSR partition...
INFO   : Creating windows partition...
INFO   : Formatting windows volume...
INFO   : Windows path (H:) has been assigned.
INFO   : Windows path (H:) took 1 attempts to be assigned.
INFO   : System volume location: G:
INFO   : Applying image to VHDX. This could take a while...
INFO   : Image was applied successfully.
INFO   : Making image bootable...
INFO   : Drive is bootable.  Cleaning up...
INFO   : Closing VHDX...
INFO   : Closing Windows image...
INFO   : Done.
**********************
Windows PowerShell transcript end
End time: 20220122090123
**********************
@x0nn
Copy link
Owner

x0nn commented Jan 26, 2022

did you use verbose?

@x0nn x0nn self-assigned this Jan 26, 2022
@x0nn x0nn added the question Further information is requested label Jan 26, 2022
@bezik46
Copy link
Author

bezik46 commented Jan 29, 2022

NO, because there is no verbose parameter available (or mentioned at all)

@x0nn
Copy link
Owner

x0nn commented Jan 31, 2022

its in the readme.md - Please try -Verbose if you wish to output more Information.

@bezik46
Copy link
Author

bezik46 commented Feb 2, 2022

Tried it and got error that such parameter is not valid (unless it matters that order it is in?)
Maybe you can add it to the actual code?

@NielsS79
Copy link

NielsS79 commented Jun 8, 2022

I used -Verbose and got the transcript as expected:

VERBOSE: 2022-06-08T08:03:20 [HOSTNAME] Looking for the requested Windows image in the WIM/ESD file...
VERBOSE: 2022-06-08T08:03:24 [HOSTNAME] Image 6 selected "Windows 11 Pro"
VERBOSE: 2022-06-08T08:03:24 [HOSTNAME] Creating sparse disk...

[...]

VERBOSE: 2022-06-08T08:08:13 [HOSTNAME] Dismounting VHDX...
VERBOSE: 2022-06-08T08:08:14 [HOSTNAME] Closing ISO...
VERBOSE: 2022-06-08T08:08:16 [HOSTNAME] Done.

Am I reproducing this wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants