Avatar of TAMUQITS
TAMUQITS
Flag for Qatar asked on

How do I export network profile information in XML format in case of Windows XP Pro SP2?

How do I export network profile information in XML format in case of Windows XP Pro SP2? In fact, I am deploying SP3 over LAN in 802.1x environment. After installation SP3 I can run "netsh lan export profile folder=c:\" but I want to export or add network profile in SP2 case. Is there any way?
Scripting LanguagesWindows XP

Avatar of undefined
Last Comment
Point-In-Cyberspace

8/22/2022 - Mon
Point-In-Cyberspace

Xp Sp2 have the version of netsh that export and import data in plaintext format and not in xml.

You should use the old syntax:

To export:
netsh -c interface dump > c:\netconfig.txt

To import:
netsh -f c:\netconfig.txt

TAMUQITS

ASKER
After installing SP3, if I use it instead of netsh lan, will it work?
TAMUQITS

ASKER
I ran this command but it doesn't contain any authMode entry. I want to set authMode settings instead of registry editing.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Point-In-Cyberspace

As i can see around:

Import settings in Xp sp3 with a netsh config txt file made with Xp Sp2 (assuming that interface GID isn't different).

Netsh in xp sp2 doesn't support authMode. This feature seems to be present in Xp sp3, Vista and Win server 2008.
ASKER CERTIFIED SOLUTION
TAMUQITS

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Point-In-Cyberspace

You can also use a script (cmd or powershell) in a policy to execute all of these operations from the client.
1) the client download locally a copy of sp3 network
2) export config with netsh (version sp2)
3) upgrade to sp3 and restart
4) exec another script via runonce that add a new net config based on the parameters you need a that can support the auth.
TAMUQITS

ASKER
Infact I dont know scripting. If sumbdy can implement this solution in a script. People need it indeed. What is runonce by the way?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Point-In-Cyberspace

A script is far different form an answer. This isn't a fast solution. Some work and time is needed to do this.
Btw the runonce is a way to run script or programs at the restart of windows that will be executed only once and then deleted. A lot of setup use this feature to complete the installation after restart of windows.