MichaelRyom
Hot Shot
Hot Shot

Just to add the output from console around the point where Start-Transcript seems to fail:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\Administrator> $DebugPreference = "Continue"
PS C:\Users\Administrator> $VerbosePreference = "Continue"
PS C:\Users\Administrator> Start-Transcript
Transcript started, output file is C:\Users\Administrator\Documents\PowerShell_transcript.ARK.FGUYhsln.20230302123120.txt
PS C:\Users\Administrator> [Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.17763.0 Microsoft Windows NT 10.0.17763.0


PS C:\Users\Administrator> $PSVersiontable

Name                           Value
----                           -----
PSVersion                      5.1.17763.3770
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.3770
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1


PS C:\Users\Administrator> Import-Module VMware.PowerCli -Verbose -Debug
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.PowerCli\13.0.0.20829139\VMware.PowerCli.psd1'.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Sdk.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\VMware.VimAutomation.Sdk.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\VMware.VimAutomation.Sdk.psd1'.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Sdk.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\VMware.VimAutomation.Sdk.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\log4net.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\log4net.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Ceip.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Ceip.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.Security.CredentialStore.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.Security.CredentialStore.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Impl.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Impl.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Interop.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Interop.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Types.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Types.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Util10.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Util10.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Util10Ps.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Util10Ps.dll'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.ps1'.
VERBOSE: Dot-sourcing the script file 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.ps1'.
WARNING: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a better product. You can join using the following command:

Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true

VMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to improve its products and services, to fix problems, and to advise you on how best to deploy and use our products.  As part of the CEIP, VMware collects
technical information about your organization’s use of VMware products and services on a regular basis in association with your organization’s VMware license key(s).  This information does not personally identify any individual.

For more details: type "help about_ceip" to see the related help article.

To disable this warning and set your preference use the following command and restart PowerShell:
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true or $false.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\net472\VMware.VimAutomation.Sdk.Util10Ps.dll'.
VERBOSE: Exporting function 'EnableParameterCompleters'.
VERBOSE: Exporting function 'Get-PSVersion'.
VERBOSE: Exporting function 'Get-InstallPath'.
VERBOSE: Exporting cmdlet 'Get-ErrorReport'.
VERBOSE: Exporting variable 'CustomInitScriptName'.
VERBOSE: Exporting variable 'currentDir'.
VERBOSE: Exporting variable 'CustomInitScript'.
VERBOSE: Exporting variable 'productShortName'.
VERBOSE: Exporting variable 'existsCustomInitScript'.
VERBOSE: Exporting variable 'message'.
VERBOSE: Importing cmdlet 'Get-ErrorReport'.
VERBOSE: Importing function 'EnableParameterCompleters'.
VERBOSE: Importing function 'Get-InstallPath'.
VERBOSE: Importing function 'Get-PSVersion'.
VERBOSE: Importing variable 'currentDir'.
VERBOSE: Importing variable 'CustomInitScript'.
VERBOSE: Importing variable 'CustomInitScriptName'.
VERBOSE: Importing variable 'existsCustomInitScript'.
VERBOSE: Importing variable 'message'.
VERBOSE: Importing variable 'productShortName'.
VERBOSE: Exporting function 'EnableParameterCompleters'.
VERBOSE: Exporting function 'Get-InstallPath'.
VERBOSE: Exporting function 'Get-PSVersion'.
VERBOSE: Exporting cmdlet 'Get-ErrorReport'.
VERBOSE: Importing cmdlet 'Get-ErrorReport'.
VERBOSE: Importing function 'EnableParameterCompleters'.
VERBOSE: Importing function 'Get-InstallPath'.
VERBOSE: Importing function 'Get-PSVersion'.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Common.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\VMware.VimAutomation.Common.psm1'.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Sdk.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\VMware.VimAutomation.Sdk.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\VMware.VimAutomation.Common.psd1'.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Common.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\VMware.VimAutomation.Common.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\ICSharpCode.SharpZipLib.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\ICSharpCode.SharpZipLib.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\Newtonsoft.Json.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\Newtonsoft.Json.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.Ls2.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.Ls2.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.Sts.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.Sts.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.WsTrust.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.WsTrust.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Util.Sspi.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Util.Sspi.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Http.Handlers.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Http.Handlers.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.SsoAuthentication.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.SsoAuthentication.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Commands.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Commands.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Interop.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Interop.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Types.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Types.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Impl.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Impl.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Util10.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Util10.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Util10Ps.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Util10Ps.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Util.OAuth2.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Util.OAuth2.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.Wcf.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.Wcf.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\JsonSubTypes.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\JsonSubTypes.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.OpenApi.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Binding.OpenApi.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Sdk.OpenApi.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.Sdk.OpenApi.dll'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.Format.ps1xml'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.ps1'.
VERBOSE: Dot-sourcing the script file 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.ps1'.
PS C:\Users\Administrator> Stop-Transcript^C
PS C:\Users\Administrator> ^C
PS C:\Users\Administrator> ^C
PS C:\Users\Administrator> Stop-Transcript
Stop-Transcript : An error occurred stopping transcription: The host is not currently transcribing.
At line:1 char:1
+ Stop-Transcript
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Stop-Transcript], PSInvalidOperationException
    + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.StopTranscriptCommand

PS C:\Users\Administrator>

 

In the other transcripts "Importing function 'Get-Version'." Is the last output before transcripting fails - Running the commandlet Get-PSVersion does not seem to break anything, so whatever the next line means seems likely to be a clue.

VERBOSE: Importing function 'Get-PSVersion'.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Common.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\VMware.VimAutomation.Common.psm1'.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Sdk.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\13.0.0.20791442\VMware.VimAutomation.Sdk.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\VMware.VimAutomation.Common.psd1'.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Common.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\VMware.VimAutomation.Common.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Common\13.0.0.20797081\net472\VMware.VimAutomation.Common.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions.

 

Blogging at https://MichaelRyom.dk
Reply
0 Kudos