+ Post New Thread
Results 1 to 3 of 3
How do you do....it? Thread, Scripting and Computer description in Technical; Does anyone know if this is possible? ----------------------------------- Yesterday I implemented a batch file on our student domain. This gives ...
  1. #1

    aerospacemango's Avatar
    Join Date
    Apr 2010
    Location
    Northants
    Posts
    1,994
    Thank Post
    283
    Thanked 249 Times in 200 Posts
    Blog Entries
    2
    Rep Power
    295

    Question Scripting and Computer description

    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!

  2. #2
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,421
    Thank Post
    508
    Thanked 282 Times in 258 Posts
    Rep Power
    81
    This may be of use to you -

    Get, Set, and Clear Computer Descriptions With Ease

    Came across it a while ago.

  3. Thanks to cpjitservices from:

    aerospacemango (13th January 2011)

  4. #3

    aerospacemango's Avatar
    Join Date
    Apr 2010
    Location
    Northants
    Posts
    1,994
    Thank Post
    283
    Thanked 249 Times in 200 Posts
    Blog Entries
    2
    Rep Power
    295
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Job Description
    By IanT in forum Educational IT Jobs
    Replies: 3
    Last Post: 11th March 2010, 11:33 PM
  2. Job Description
    By oxide54 in forum Educational IT Jobs
    Replies: 5
    Last Post: 16th March 2009, 10:31 PM
  3. Song Description
    By tallan in forum General Chat
    Replies: 4
    Last Post: 30th August 2008, 07:51 PM
  4. Job Description
    By budgester in forum MIS Systems
    Replies: 11
    Last Post: 19th February 2007, 11:35 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •