27 lines
935 B
Plaintext
27 lines
935 B
Plaintext
Module CheckIt {
|
|
\\ using read only variablles
|
|
Print "Platform: ";Platform$
|
|
Print "Computer Os: "; Os$
|
|
Print "Type of OS: ";OsBit;" bit"
|
|
Print "Computer Name:"; Computer$
|
|
Print "User Name: "; User.Name$
|
|
\\ using WScript.Shell
|
|
Declare objShell "WScript.Shell"
|
|
With objShell, "Environment" set env ("Process")
|
|
With env, "item" as Env$()
|
|
Print Env$("PATH")
|
|
Print Env$("HOMEPATH")
|
|
Declare objShell Nothing
|
|
\\ using internal Information object
|
|
Declare OsInfo INFORMATION
|
|
With OsInfo, "build" as build, "NtDllVersion" as NtDllVersion$
|
|
Method OsInfo, "GetCurrentProcessSID" as PID$
|
|
Method OsInfo, "IsProcessElevated" as isElevated
|
|
Print "Os build number: ";build
|
|
Print "Nr Dll version: ";NtDllVersion$
|
|
Print "ProcessSID: ";pid$
|
|
Print "Is Process Eleveted: ";isElevated
|
|
Declare OsInfo Nothing
|
|
}
|
|
Checkit
|