This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-PnpDevice -PresentOnly | | |
Where-Object { $_.InstanceId -like 'PCI*' } | | |
Select-Object InstanceId, FriendlyName, Class, Manufacturer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$exePath = Read-Host "Provide path for EXE-File" | |
if (-Not (Test-Path $exePath)) { | |
Write-Error "File not found." | |
exit | |
} | |
$randomGUID = [guid]::NewGuid().ToString("B").ToUpper() | |
$tempPath = [System.IO.Path]::GetTempPath() | |
$destinationFolder = Join-Path $tempPath $randomGUID |