This file contains 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
# Konvertiert Linux-SCSI Devicenamen nach Windows PhysicalDrive Namen und zurück | |
Function Convert-LinuxDeviceAndWinPhysicalDrive { | |
Param( | |
[string]$deviceOrDisk | |
) | |
If ($deviceOrDisk.ToLower().IndexOf("physicaldisk") -eq 0) { | |
$number = [int]$deviceOrDisk.Substring(12) | |
If ($number -gt 25) { | |
Write-Error ">25 unsupported!" |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace UEFIFirmwareVariablenAbfragen | |
{ | |
class Program |
This file contains 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
# peeked from C:\WINDOWS\Microsoft.Net\assembly\GAC_64\Microsoft.SecureBoot.Commands\v4.0_10.0.0.0__31bf3856ad364e35\Microsoft.SecureBoot.Commands.dll | |
$UEFIInterop = Add-Type @" | |
using System; | |
using System.Reflection; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
namespace UEFIInterop | |
{ |
This file contains 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
$MethodDefinitions = @' | |
using System; | |
using System.Runtime.InteropServices; | |
public class ConsoleCursor { | |
[StructLayout(LayoutKind.Sequential)] | |
internal struct CONSOLE_CURSOR_INFO | |
{ | |
internal uint Size; |
This file contains 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
Function ConvertFrom-YtTranscript { | |
[CmdletBinding()] | |
Param( | |
#[Parameter(ValueFromPipeline,ValueFromPipelineByPropertyName)] | |
[Parameter(ValueFromPipeline)] | |
$Transcript, | |
[switch] | |
[bool]$PreserveTime | |
) |
OlderNewer