Saved Bookmarks
| 1. |
Solve : email details? |
|
Answer» System model number? Is it located in a file too?Yeah i believe it also has to be queried using WMI. I can't find anything when i GOOGLE it and i did have this working about 3-4 years ago. I just can't find my documentation.Quote from: Helpmeh on August 26, 2009, 04:05:49 PM By briefly looking at the code I can tell that it requires outlook. Is there a code to do the same thing without outlook? CDO. http://www.paulsadowski.com/WSH/cdo.htmYes it does require Outlook. This is not a big deal because the mail is only internal mail to the IT department. The email SIDE of it is working. Okay, i found the way to display the model of your computer. However, i can not seem to get it to work in the "for" command. This is how to get the model (will not work on all machines, but works with DELL) Code: [Select]wmic csproduct get NAME and this is how i added it to the BAT: Code: [Select]for /F %%a in ('wmic csproduct get name /value^|find "name"') do set namestring=%%a for /F "tokens=1-2 delims==" %%b in ("%namestring%") do set name=%%c This is the entire BAT thus far: Code: [Select]@echo off @Title "Verifying Computer Details" for /f "tokens=2*" %%b in ('net USER "%Username%" /domain ^| find /i "Full Name"') do set DisplayName=%%c for /F %%a in ('wmic bios GET SerialNumber /value^|find "SerialNumber"') do set sernumstring=%%a for /F "tokens=1-3 delims==" %%b in ("%sernumstring%") do set sernum=%%c for /F %%a in ('wmic bios GET name /value^|find "name"') do set namestring=%%a for /F "tokens=1-2 delims==" %%b in ("%namestring%") do set name=%%c echo Full Name.........%displayname% >>"U:\IT\Details.txt" echo Username..........%username% >>"U:\IT\Details.txt" echo Computer Name.....%computername% >>"U:\IT\Details.txt" echo Serial Number.....%sernum% >>"U:\IT\Details.txt" echo Model Number......%name% >>"U:\IT\Details.txt" call "%~dp0\Email.vbs" call "u:\delete.bat" echo on Thank you for the assistance everyone! I hope some of this TOPIC is helping someone out! |
|