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

Added some more commands to the script #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions chaps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1288,5 +1288,45 @@ Catch{
$err_str + "Testing NTLM Session Client Security settings failed." | Tee-Object -FilePath $out_file -Append
}

$inf_str + "Fetching all USB Plug and Play devices." | Tee-Object -FilePath $out_file -Append
Try{
Get-PnpDevice -Class "USB" | Tee-Object -FilePath $out_file -Append
}
Catch{
$err_str + "Testing for USB Plug and Play devices failed." | Tee-Object -FilePath $out_file -Append
}
###############################

$inf_str + "Fetching AntiVirus information." | Tee-Object -FilePath $out_file -Append
Try{
Get-CimInstance -Namespace root\SecurityCenter2 -ClassName AntiVirusProduct | Tee-Object -FilePath $out_file -Append
}
Catch{
$err_str + "Testing for AntiVirus failed." | Tee-Object -FilePath $out_file -Append
}

###############################

$inf_str + "Fetching All Softwares installed" | Tee-Object -FilePath $out_file -Append
Try{
Get-WmiObject -Class Win32_Product | Tee-Object -FilePath $out_file -Append
}
Catch{
$err_str + "Testing for Software failed." | Tee-Object -FilePath $out_file -Append
}

###############################

$inf_str + "Netstat Results : " | Tee-Object -FilePath $out_file -Append
Try{
netstat -ano | Tee-Object -FilePath $out_file -Append
}
Catch{
$err_str + "Testing for Netstat failed." | Tee-Object -FilePath $out_file -Append

}

###############################

########## Windows Information ##############
$inf_str + "Completed Date/Time: $(get-date -format yyyyMMddTHHmmssffzz)" | Tee-Object -FilePath $out_file -Append