Skip to content

Instantly share code, notes, and snippets.

@kissge
Last active March 4, 2022 06:22
Show Gist options
  • Save kissge/d336bf0f57f159485310e4cf6f30da60 to your computer and use it in GitHub Desktop.
Save kissge/d336bf0f57f159485310e4cf6f30da60 to your computer and use it in GitHub Desktop.
Function Analysis() {
echo "Analysis ver. 1"
date
Get-ComputerInfo | Out-String
echo "=========="
echo "the contents of hosts file:"
cat C:\Windows\system32\drivers\etc\hosts
echo "=========="
echo "ping yksaimi:"
ping /n 1 yksaimi.hq.legalscape.co.jp
echo "=========="
echo "ping google:"
ping /n 1 www.google.com
}
echo "Wait a minute..."
Analysis | Set-Clipboard
echo "Information copied!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment