首页 » Page 2
screenrc configuration example
This is an example of .screenrc configuration file. Just for your reference.
.screenrc
# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window
bindkey -k F1 prev
bindkey -k F2 next
startup_message off
# Screens
screen -t Init
screen -t Work
screen -t OpenWRT ssh -i /root/key 192.168.1.1
select 0
... [阅读全文]
AD RMS – Office client could not connect to the Internet to check permission
Situation
Your AD RMS client is a workgroup client, you installed Office 2013 or 2016, and setup the discovery service by registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSIPC\ServiceLocation\EnterpriseCertification
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSIPC\ServiceLocation\EnterprisePublishing
However, you encountered ... [阅读全文]
PowerShell: 批量导入Hyper-V虚拟机
前提条件
本文所介绍的方法要求以下目录保持原有的相对关系、目录结构及所在盘符不能改变。
Virtual Machines
Snapshots
VHD文件夹(可以是多个)
导入方法
path = 'D:\Hyper-V\Virtual Machines'
# Get the VM configuration files
Get-ChildItempath -Recurse -Filter *.vmcx
# Check VM import / register
Get-ChildItem path -Recurse... [阅读全文]
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替换成所需证... [阅读全文]
Manually setup Azure Point-to-Site (P2S) VPN on client computer
Introduction
Azure point to site VPN uses SSTP (Secure Socket Tunneling Protocol) to establish VPN connection. The default port is on 443.
So the prerequisite is that you have finished setup a P2S VPN on Azure:
Configure a Point-to-Site connection to a VNet using the Azure portal
Today, I am going to show you how to manually ... [阅读全文]
Mount VHD at Windows startup with PowerShell
Create a scheduled task
Command:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
Parameter:
-ExecutionPolicy ByPass -file "C:\VHD\mountVHD.ps1"
Powershell Script to mount VHD
Method1: Mount-DiskImage (Recommended)
This is the recommended command to mound VHD as it does not rely on the Hyper-V role.
Mount-DiskIma... [阅读全文]
The trust relationship between this workstation and the primary domain failed
lesca | Windows | 2017-05-23
Introduction
You might have encountered this error message many times: “The trust relationship between this workstation and the primary domain failed”.
The general solution is dis-joining and re-joining the domain. Any other ways without doing so? The answer is yes.
Error message
The trust relationship between thi... [阅读全文]
WDS PXE issue: PXE-E16: No offer received
lesca | Windows | 2016-12-25
Issue Description:
The problem server installed the follwing roles:
WDS
DHCP
WSUS
RRAS (Route and Remote Access Service)
The WDS service is configured with Active Directory integrated, everything seems configured correctly. But a Hyper-V Gen2 VM client is not possible to boot with PXE. Message is "DHCP failed".
If you redir... [阅读全文]
Debian or Raspbian: nfs-kernel-server not starting portmapper is not running
lesca | Tutorials | 2016-05-04
Error Message
Debian or Raspbian: nfs-kernel-server not starting portmapper is not running … (warning) rpcbind.target
Fix Steps
Here is my first try, but it doesn’t work for me. It just reset the configs. So if you messed it up, try this first.
apt-get purge rpcbind nfs-kernel-server nfs-common
apt-get install ... [阅读全文]
近期评论 Recent Comments