Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-Autorunsc output issues #178

Open
Ade10 opened this issue Jan 5, 2018 · 5 comments
Open

Get-Autorunsc output issues #178

Ade10 opened this issue Jan 5, 2018 · 5 comments

Comments

@Ade10
Copy link

Ade10 commented Jan 5, 2018

Hello,

I just downloaded kansa today and used the ASEP\Get-Autorunsc.ps1.

The output does not contain the autorun output i expect. See the output below.

Kindly advise.

PSComputerName,"RunspaceId","PSShowComputerName","Length"
Machine_name,"56d62496-1558-41e8-b9e8-05682612a8bd","True","0"

@davehull
Copy link
Owner

davehull commented Jan 7, 2018

What was the command you ran?

@Ade10
Copy link
Author

Ade10 commented Jan 8, 2018

Hi,

Thanks for responding.

  1. I edited the modules.conf file to un-comment the line below
    ASEP\Get-Autorunsc.ps1

  2. I edited the Get-Autorunsc.ps1 script to include the path of the autorunsc.exe as below. This was inserted after the notes, outside the <# #> section

#BINDEP .\Modules\bin\Autorunsc.exe

if (Test-Path "$env:SystemRoot\Autorunsc.exe") {
& $env:SystemRoot\Autorunsc.exe -accepteula -a * -c -s -h '*' 2> $null | ForEach-Object {
$_
}
} else {
Write-Error "Autorunsc.exe not found in $env:SystemRoot."
}

  1. I ran the kansa.ps1 script with the command line: .\kansa.ps1 -Targetlist .hostlist.txt -Pushbin

Note that all other scripts I have tested are working fine.

Thanks

@Ade10
Copy link
Author

Ade10 commented Jan 16, 2018

Please any update with my issue above? Thanks

@hugoideler
Copy link

I've experienced the same, but I haven't had time yet to debug. For what it's worth, try the deep autoruns version, which still seems to work.

@SinAcra
Copy link

SinAcra commented Jun 15, 2018

Its missing "-nobanner"

& $env:SystemRoot\Autorunsc.exe /accepteula -a * -c -h -s '*' -nobanner 2> $null | ConvertFrom-Csv | ForEach-Object {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants