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) ."