Last active
March 4, 2022 06:22
-
-
Save kissge/d336bf0f57f159485310e4cf6f30da60 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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