Created
May 3, 2020 08:48
-
-
Save liyafe1997/763ef3fba700970ff9f88d0061b680e5 to your computer and use it in GitHub Desktop.
for detectiscsi.bat, run the autostart program manually
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
$key = Get-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run | |
$key.GetValueNames() | | |
ForEach-Object { | |
$ValueName = $_ | |
$rv = 1 | Select-Object -Property Name, Type, Value | |
$tostart = $key.GetValue($ValueName) | |
echo $tostart | |
Start-Process cmd "/c $tostart" -WindowStyle Hidden | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment