注册表路径
计算机\HKEY_CURRENT_USER\Software\Microsoft\Command Processor
反正我就是找不到
自己添加一个
把下面代码写到1.ps1
$regPath = 'HKCU:\Software\Microsoft\Command Processor'
if (! (test-path $regPath) ) {
write-output "$regPath does not exist, creating"
$eatMe = new-item -path $regPath
}
然后执行
然后加了一个autorun,在打开cmd的时候默认路径就是桌面