createvm

New-VM -Name “new 5” -Generation 2 -BootDevice CD -NoVHD
Set-VMDvdDrive -VMName TestVM -Path .\WinBuild.iso
Set-VMFirmware “Test VM” -EnableSecureBoot Off
Start-VM -Name TestVM

debug-vm testuefiisov2 -InjectNonMaskableInterrupt -Force

Write-Host $MyInvocation.MyCommand.Definition

Self-elevate the script if required

if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] ‘Administrator’)) {

    $Command = "-NoProfile -ExecutionPolicy Bypass -File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments
    Start-Process -FilePath PowerShell.exe -Verb RunAs -ArgumentList $Command
    Exit

}

Write-Host “Running As Administrator”

$input = Read-Host “请输入内容”
Write-Output $input

bootable->load boot file

相关推荐

  1. createvm

    2024-02-05 15:08:01       48 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-05 15:08:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-05 15:08:01       101 阅读
  3. 在Django里面运行非项目文件

    2024-02-05 15:08:01       82 阅读
  4. Python语言-面向对象

    2024-02-05 15:08:01       91 阅读

热门阅读

  1. rust ethers-rs 签名与solidity验证签名例子

    2024-02-05 15:08:01       44 阅读
  2. 力扣刷题-27.移除元素

    2024-02-05 15:08:01       52 阅读
  3. Ubuntu文件系统结构

    2024-02-05 15:08:01       54 阅读
  4. Rust个人学习之Rust国内镜像源

    2024-02-05 15:08:01       42 阅读
  5. 【MySQL】-10 MySQL 存储过程

    2024-02-05 15:08:01       39 阅读
  6. MySQL的存储过程

    2024-02-05 15:08:01       41 阅读
  7. mysql 删除分区表数据

    2024-02-05 15:08:01       50 阅读
  8. MVVM下的窗口关闭

    2024-02-05 15:08:01       51 阅读
  9. ChatGPT高效提问—基础知识(NLP)

    2024-02-05 15:08:01       50 阅读
  10. QT 的 blockSignals(true) 的作用范围

    2024-02-05 15:08:01       44 阅读