Skip to content

Add PowerShell debug script to gather Windows 11 info#64

Open
pcgeek86 wants to merge 1 commit intoNVIDIA:mainfrom
pcgeek86:debug-pwsh-script
Open

Add PowerShell debug script to gather Windows 11 info#64
pcgeek86 wants to merge 1 commit intoNVIDIA:mainfrom
pcgeek86:debug-pwsh-script

Conversation

@pcgeek86
Copy link

Description

  • Adds a PowerShell script to gather environment details on Windows 11
  • Updates the issue template text to mention the PowerShell script

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Copy link
Collaborator

@haijieg haijieg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution. Please signoff on your commit using git commit --amend --signoff.


# CPU Information
"***CPU***" | Add-Content -Path $outputFile
$cpuInfo = Get-WmiObject Win32_Processor
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use Get-CimInstance instead? Get-WmiObject is no longer supported since PowerShell 3.0

}
"" | Add-Content -Path $outputFile

Write-Host "Environment information has been written to $outputFile" No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a new line to the end of file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants