利用aslistcmd
和ascmd
切换命令执行程序
ret=-1> aslistcmd
C:/Windows/System32/cmd.exe OK
C:/Windows/SysWOW64/cmd.exe OK
C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe OK
C:/Windows/SysWOW64/WindowsPowerShell/v1.0/powershell.exe OK
C:/Windows/System32/WindowsPowerShell/v2.0/powershell.exe FAIL
C:/Windows/SysWOW64/WindowsPowerShell/v2.0/powershell.exe FAIL
C:/Windows/System32/WindowsPowerShell/v3.0/powershell.exe FAIL
C:/Windows/SysWOW64/WindowsPowerShell/v3.0/powershell.exe FAIL
C:/Windows/System32/WindowsPowerShell/v4.0/powershell.exe FAIL
C:/Windows/SysWOW64/WindowsPowerShell/v4.0/powershell.exe FAIL
ret=-1> ascmd C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
Will execute the command with C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe.