aerospacemango Posted January 13, 2011 Posted January 13, 2011 Does anyone know if this is possible? ----------------------------------- Yesterday I implemented a batch file on our student domain. This gives us computers in use, users, ip addresses and mac addresses. This is all exported to a folder on the domain controller. This morning, I had the bright idea of, perhaps, being able to get the computer description (Which is where we identify the computer by room number) and dragging that down too. Problem is.....I don't know where to start! Any pointers, anyone? Secondly, if it IS possible....then is it also possible to do anything, by Group Policy, to fire out locations into the computer description, for those that we haven't done? Any thoughts are gratefully received!
cpjitservices Posted January 13, 2011 Posted January 13, 2011 This may be of use to you - Get, Set, and Clear Computer Descriptions With Ease Came across it a while ago. 1
aerospacemango Posted January 13, 2011 Author Posted January 13, 2011 FOR /F "TOKENS=2* DELIMS=:" %%A IN ('net view %COMPUTERNAME% ^| FIND "Location"') DO FOR %%B IN (%%A) DO SET LOCATION=%%B echo %username% logged Onto: %computername%, %LOCATION%, User Name: %USERNAME%, IPADDRESS:%IP%, MACADDRESS:%macaddress%, Login Time:%time%, Login Date:%date% >> \\domaincontroller\folder\users\%username%.csv This is the add-on that I've had done for the script. This should allow the description to come down....But it may be a case of going round and sorting the machines, one by one, as I'm not convinced that they ALL have "remote" enabled. Thanks for the pointer, CPJ
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now