Monthly: July 2017
PowerShell: 批量导入Hyper-V虚拟机
前提条件
本文所介绍的方法要求以下目录保持原有的相对关系、目录结构及所在盘符不能改变。
Virtual Machines
Snapshots
VHD文件夹(可以是多个)
导入方法
$path = 'D:\Hyper-V\Virtual Machines'
# Get the VM configuration files
Get-ChildItem $path -Recurse -Filter *.vmcx
# Check VM import / register
Get-ChildItem $path -Rec... [阅读全文]
How to restart a SCCM OSD Task Sequence within WinPE
Introduction
本文介绍如何在不重启的情况下,重新加载SCCM OSD任务序列(Task Sequence)
This article describes how to restart SCCM OSD task sequence within PE without restarting the computer.
Steps:
del X:\SMS\data\variables.dat
TsmBootstrap.exe /env:WinPE /configpath:x:\sms\data
Notes:
如果之前由于任务序列出错导致任务终止,需... [阅读全文]
Powershell: 用New-SelfSignedCertificate命令创建自签名证书
lesca | Powershell | 2017-07-06
1.创建根证书
$cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature `
-Subject "CN=P2SRootCert" -KeyExportPolicy Exportable `
-HashAlgorithm sha256-KeyLength2048 `
-CertStoreLocation "Cert:\CurrentUser\My" `
-KeyUsageProperty Sign -KeyUsage CertSign
2.获取证书引用(可选步骤)
将下面的THUMBPRINT替换成所需证... [阅读全文]
近期评论 Recent Comments