Topic: How to get the Windows Source family ?  (Read 313 times)

How to get the Windows Source family ?
« on: November 17, 2019, 04:19:25 PM »

Malok

  • Chef
  • ***
  • Location: Canada
  • Date Registered: Aug 2016
  • Posts: 202
Hi,

How do you proceed to obtain the Windows Source OSFamily ??  :embarrassed:


Re: How to get the Windows Source family ?
« Reply #1 on: November 17, 2019, 04:25:07 PM »

dazza

  • Chef
  • ***
  • Date Registered: Jan 2017
  • Posts: 244
By reading the FAQ's or reading the information in the project which has a link for you to use.  Have copied it below for you

https://tb.rg-adguard.net/public.php
« Last Edit: November 17, 2019, 04:25:20 PM by dazza »

Re: How to get the Windows Source family ?
« Reply #2 on: November 17, 2019, 06:06:34 PM »

APT

  • Grand Chef
  • *****
  • winpe enthusiast
  • Location: UK
  • Date Registered: Nov 2012
  • Posts: 1150
Quote
How do you proceed to obtain the Windows Source OSFamily ??]How do you proceed to obtain the Windows Source OSFamily ??

unless he means codewise within a scriptfile! and if so, what is meant by 'Family'

edit:  I guess NT5 or NT6 then
« Last Edit: November 17, 2019, 06:38:18 PM by APT »

Re: How to get the Windows Source family ?
« Reply #3 on: November 17, 2019, 06:22:26 PM »

Malok

  • Chef
  • ***
  • Location: Canada
  • Date Registered: Aug 2016
  • Posts: 202
In PESE it was

Code: [Select]
If,%OSFamily%,Equal,NT5,Arch,x86
If,%OSFamily%,Equal,NT6,Arch,x86|x64

But %OSFamily% returns noting in XPE


Re: How to get the Windows Source family ?
« Reply #4 on: November 17, 2019, 07:12:55 PM »

dazza

  • Chef
  • ***
  • Date Registered: Jan 2017
  • Posts: 244
So it looks like question translates as how do you work out of x86 (32-bit) or x64 (64-bit) in a script?

Re: How to get the Windows Source family ?
« Reply #5 on: November 17, 2019, 07:14:45 PM »

APT

  • Grand Chef
  • *****
  • winpe enthusiast
  • Location: UK
  • Date Registered: Nov 2012
  • Posts: 1150
Hi

Surely the source %OSFamily% in Win10XPE is fixed and so doesn't exist as a variable, whereas the macrolib used in Win10PESE was common to XP/W7/W10 projects and therefore required one
« Last Edit: November 17, 2019, 08:44:25 PM by APT »

Re: How to get the Windows Source family ?
« Reply #6 on: November 17, 2019, 07:34:44 PM »

Malok

  • Chef
  • ***
  • Location: Canada
  • Date Registered: Aug 2016
  • Posts: 202
Thanks APT,

XPE reports an Empty %OSFamily% Variable.
So....

Going to test that, thanks.

Re: How to get the Windows Source family ?
« Reply #7 on: November 17, 2019, 08:39:24 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
XPE does not use %OSFamily% variable - the Project is Win10 only, thus NT6

Re: How to get the Windows Source family ?
« Reply #8 on: November 18, 2019, 03:17:47 AM »

Malok

  • Chef
  • ***
  • Location: Canada
  • Date Registered: Aug 2016
  • Posts: 202
yeah, normally it should return nt10. indeed not needed.

 

Powered by EzPortal