Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4046568
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:34:48+00:00 2026-05-20T13:34:48+00:00

Im wondering if its posible to detect windows CE in a windows logon script

  • 0

Im wondering if its posible to detect windows CE in a windows logon script ( Scrip runs in the user account ).

I assume its posible to detect this via some checking for some file, but i was hoping for a bit “cleaner” solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:34:49+00:00Added an answer on May 20, 2026 at 1:34 pm

    You can use the below code to check against the Windows version in VBscript using WMI. Replace the XXXXXXXXX with the appropriate version number.

    strComputer = "." 'We are using computer "here"
    set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" _
        & strComputer & "\root\cimv2") 'Initialize WMI object for this computer
    
    'Displays which operating system is installed on the current computer.  
    set colOperatingSystems = objWMIService.ExecQuery _
        ("Select Caption, Version from Win32_OperatingSystem") 'Query WMI for OS Version
    
    'Validate that OS version is valid
    for each objOperatingSystem in colOperatingSystems ' Parse results
        if objOperatingSystem.Version = "XXXXXXXXX" Then
    
            'Do something here
    
        end if
    next
    

    If you’re not sure what the version is, try changing the if/then statement temporarily to

    WScript.Echo objOperatingSystem.Version
    

    and running it manually. That will output the correct version # for your system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was sitting here wondering if it's possible to write a greasemonkey script that
I'm using the following script to force a specific page - when loaded for
I'm using htmlarea for my little CMS , and I was wondering if it's
This question relates to a very specific and common scenario in which a dictionary
So I'm a coder, I do PHP, JavaScript, and Objective-C. I'm currently working on
I keep typing t eh instead of the which is, of course, annoying in
It's my first time trying to make anything really interesting in C# and I
If you've bought into the functional programming paradigm, the chances are that you like
I have a two part question. The first I think I have an okay
I have a situation where i want to add LinePragmas to CodeDom objects. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.