From 1dd8d341439d9abf2db1082cc7de956169a76182 Mon Sep 17 00:00:00 2001 From: Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com> Date: Mon, 6 Apr 2020 16:49:52 +0530 Subject: [PATCH] Create osinfo.ps1 --- Operating System Information/osinfo.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Operating System Information/osinfo.ps1 diff --git a/Operating System Information/osinfo.ps1 b/Operating System Information/osinfo.ps1 new file mode 100644 index 000000000..895c31be1 --- /dev/null +++ b/Operating System Information/osinfo.ps1 @@ -0,0 +1,5 @@ +#.ps1 + $wmiobject = get-wmiobject -class win32_operatingsystem + $user = ($wmiobject).RegisteredUser + $kernal_version = ($wmiobject).Version + Write-host -fore green "The victim is running on kernal $kernal_version ","With the username $user & Computername is $(whoami) ."