+ Post New Thread
Results 1 to 10 of 10
Windows Server 2008 R2 Thread, Is there a way to check if a computer account is XP? in Technical; After doing some testing it appears I could speed up logon times be removing some XP group policies, however I ...
  1. #1
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,254
    Thank Post
    75
    Thanked 45 Times in 31 Posts
    Rep Power
    30

    Is there a way to check if a computer account is XP?

    After doing some testing it appears I could speed up logon times be removing some XP group policies, however I want to ensure no XP PC's / laptops are still lurking.

    Is there a quick way to dump all active computer accounts to a list which includes what flavour of OS they are?

    Cheers

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,390
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427
    You can do it powershell not sure on the commands of top of my head.

    You could use search in AD, see attached.


    PC Search..PNG

  3. #3

    Join Date
    Jan 2012
    Location
    London
    Posts
    29
    Thank Post
    0
    Thanked 7 Times in 5 Posts
    Rep Power
    6
    You can run a dsquery on the command line against active directory to find a) stale computer records and b) the operating system of the workstation, Sample Query On Link

  4. #4
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,254
    Thank Post
    75
    Thanked 45 Times in 31 Posts
    Rep Power
    30
    Thanks

  5. #5

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    4,467
    Thank Post
    750
    Thanked 1,210 Times in 852 Posts
    Blog Entries
    45
    Rep Power
    533
    Alternatively, leave your XP policies in place and use WMI filters so Windows 7 machines ignore them (and the XP machines ignore Win7 policies) - still a slight processing load but nowhere near as much as actually processing the settings.

    In Namespace root\CIMv2, the following query is for Windows XP:
    Code:
    select * from Win32_OperatingSystem where Version like "5.1%" and ProductType = "1"
    And Windows 7 is:
    Code:
    select * from Win32_OperatingSystem where Version like "6.1%" and ProductType = "1"
    Windows Vista is 6.0 and Windows 8 is 6.2 on the Version like, if you're rolling them.

  6. #6

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,968
    Thank Post
    587
    Thanked 1,495 Times in 1,341 Posts
    Rep Power
    398
    You can do it with a query in Active Directory Users and Computers.

    Ben

  7. #7
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,254
    Thank Post
    75
    Thanked 45 Times in 31 Posts
    Rep Power
    30
    Quote Originally Posted by sonofsanta View Post
    Alternatively, leave your XP policies in place and use WMI filters so Windows 7 machines ignore them (and the XP machines ignore Win7 policies) - still a slight processing load but nowhere near as much as actually processing the settings.

    In Namespace root\CIMv2, the following query is for Windows XP:
    Code:
    select * from Win32_OperatingSystem where Version like "5.1%" and ProductType = "1"
    And Windows 7 is:
    Code:
    select * from Win32_OperatingSystem where Version like "6.1%" and ProductType = "1"
    Windows Vista is 6.0 and Windows 8 is 6.2 on the Version like, if you're rolling them.

    Hi, I do use this, but I've discovered that it still takes time for the windows 7 PC to process the fact it has to do nothing:

    On a test windows 7 PC with all user policies disabled it took 13 seconds to logon and with the XP policies only enabled it took 20 seconds.
    I verified by Group Policy Results that they were nt applying.

    This was on a reasonably fast PC so the time savings on some older PC's running windows 7 should be greater.

  8. Thanks to kennysarmy from:

    sonofsanta (11th October 2013)

  9. #8

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    4,467
    Thank Post
    750
    Thanked 1,210 Times in 852 Posts
    Blog Entries
    45
    Rep Power
    533
    Quote Originally Posted by kennysarmy View Post
    Hi, I do use this, but I've discovered that it still takes time for the windows 7 PC to process the fact it has to do nothing:

    On a test windows 7 PC with all user policies disabled it took 13 seconds to logon and with the XP policies only enabled it took 20 seconds.
    I verified by Group Policy Results that they were nt applying.

    This was on a reasonably fast PC so the time savings on some older PC's running windows 7 should be greater.
    Fair enough, and interesting to know - thanks for the data.

  10. #9
    ADMaster's Avatar
    Join Date
    May 2012
    Posts
    264
    Thank Post
    4
    Thanked 26 Times in 22 Posts
    Rep Power
    12
    Out of curiosity what policies apply to XP but not 7?

    Thanks,

  11. #10
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,254
    Thank Post
    75
    Thanked 45 Times in 31 Posts
    Rep Power
    30
    When we started migrating to windows 7 I decided to keep things as seperate as possible for testing purposes to write all new policies for windows 7 rather than just keep using old policies:

    The names of those that apply to only windows XP are :

    Lockdown
    Desktop Redirection
    Office
    PreventRemoveable Media
    ScreenSaverLock
    Browser Settings & Startup Programs

    There are of course now similar policies that are only directed to Windows 7 computers.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 2
    Last Post: 3rd March 2009, 11:37 AM
  2. Is there a way to bypass a WIndows login?
    By scalywag66 in forum Windows
    Replies: 16
    Last Post: 16th May 2008, 09:40 AM
  3. Replies: 14
    Last Post: 11th March 2008, 01:54 PM
  4. Is there a way to see who is using SIMS?
    By sidewinder in forum MIS Systems
    Replies: 15
    Last Post: 14th November 2007, 10:23 AM
  5. Replies: 4
    Last Post: 22nd July 2007, 04:31 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
  •