Path corrupted; need to rectify it on Win 2000 pro

Hi There,

      I have about 70 to 80 PC's with Win 2000 Pro in our network having wrong Path settings, the path terminates with; and i wish to rectify that by removing the; at the end.
      The way i wish to proceed is by first identifying the PC's on my network having this problem and then updating the path in the windows system variables, i also like to create a separate log for each pc in a folder i've crated in the server to track the updates.
      I think the path settings are done in the registry, so i guess it is just the matter of identifying the PC's and updating the Registry.

      The trouble is i don’t know how to proceed it, is there a tool for that or can i add a script to check the path setting in all logging script to identify the PC's and then rectify the path if so can any one would be kind enough to shed some light on this for me please.

      Thanks

      Gecko
geckobtzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chaddupuisCommented:
Try this...

Right click my computer on one of the workstations and click properties. Click advanvanced taba nd then Environment Variables. Change the path to what you would like it to be there.

Now...

Open regedit on one of the workstations. Browse to the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\
Environment. Highlight the environment key and click file and export. Save this to a location you will remember. Now right click the .reg file and click edit. Each entry is should loo like "path" or "pathtext" etc. see below for a sample:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"ComSpec"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,\
  00,6d,00,64,00,2e,00,65,00,78,00,65,00,00,00
"NUMBER_OF_PROCESSORS"="1"
"OS"="Windows_NT"
"Os2LibPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
  00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
  6f,00,73,00,32,00,5c,00,64,00,6c,00,6c,00,3b,00,00,00
"Path"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,3b,00,25,00,\
  53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,3b,00,25,\
  00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,\
  53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,57,00,62,00,65,00,6d,\
  00,3b,00,63,00,3a,00,5c,00,75,00,74,00,69,00,6c,00,73,00,3b,00,43,00,3a,00,\
  5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,00,69,00,6c,00,65,\
  00,73,00,5c,00,53,00,79,00,6d,00,61,00,6e,00,74,00,65,00,63,00,5c,00,70,00,\
  63,00,41,00,6e,00,79,00,77,00,68,00,65,00,72,00,65,00,3b,00,43,00,3a,00,5c,\
  00,57,00,49,00,4e,00,4e,00,54,00,5c,00,48,00,44,00,54,00,49,00,43,00,3b,00,\
  22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
  00,69,00,6c,00,65,00,73,00,5c,00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,20,00,\
  46,00,69,00,6c,00,65,00,73,00,5c,00,53,00,59,00,53,00,54,00,45,00,4d,00,5c,\
  00,4d,00,53,00,41,00,44,00,43,00,22,00,3b,00,22,00,43,00,3a,00,5c,00,50,00,\
  72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,5c,\
  00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,20,00,46,00,69,00,6c,00,65,00,73,00,\
  5c,00,53,00,59,00,53,00,54,00,45,00,4d,00,5c,00,41,00,44,00,4f,00,22,00,00,\
  00
"PATHEXT"=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH"
"PROCESSOR_ARCHITECTURE"="x86"
"PROCESSOR_IDENTIFIER"="x86 Family 6 Model 8 Stepping 10, GenuineIntel"
"PROCESSOR_LEVEL"="6"
"PROCESSOR_REVISION"="080a"
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
  25,00,5c,00,54,00,45,00,4d,00,50,00,00,00
"windir"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,00,00

The first line (after windows registry editor)is the Key name, that must be remain there. Now delete everything below that until "path". Once you see the nest entry (for example "pathtext") delete that and everything below it. What you are left with is a file that will add (or overwrite) the path information to a machine that the .reg file is run on. Be sure to test this on a machine that requires the same change to see if it works. It would be a good Idea to export that same key first just in case youneed to overwrite it again to correct any problems. The final file should look like this:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"Path"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,3b,00,25,00,\
  53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,3b,00,25,\
  00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,\
  53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,57,00,62,00,65,00,6d,\
  00,3b,00,63,00,3a,00,5c,00,75,00,74,00,69,00,6c,00,73,00,3b,00,43,00,3a,00,\
  5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,00,69,00,6c,00,65,\
  00,73,00,5c,00,53,00,79,00,6d,00,61,00,6e,00,74,00,65,00,63,00,5c,00,70,00,\
  63,00,41,00,6e,00,79,00,77,00,68,00,65,00,72,00,65,00,3b,00,43,00,3a,00,5c,\
  00,57,00,49,00,4e,00,4e,00,54,00,5c,00,48,00,44,00,54,00,49,00,43,00,3b,00,\
  22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
  00,69,00,6c,00,65,00,73,00,5c,00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,20,00,\
  46,00,69,00,6c,00,65,00,73,00,5c,00,53,00,59,00,53,00,54,00,45,00,4d,00,5c,\
  00,4d,00,53,00,41,00,44,00,43,00,22,00,3b,00,22,00,43,00,3a,00,5c,00,50,00,\
  72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,5c,\
  00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,20,00,46,00,69,00,6c,00,65,00,73,00,\
  5c,00,53,00,59,00,53,00,54,00,45,00,4d,00,5c,00,41,00,44,00,4f,00,22,00,00,\
  00

Once that is complete all you need to do is save the .reg file into a shared drive on the network that eveeryone has access to and add the path and file name to the login script with the /s switch for silent install.

Please make sure to test this before rolling it out. I hope this helps.

 

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chaddupuisCommented:
Next time offer more than 20 points, this is a tough question.
geckobtzAuthor Commented:
Hi chaddupuis thanks for that quick reply, cool that means first I need to find a pc with the right path e.g. mine and get the path out into a reg file as advice and apply it to the pc’s needed.

But there is a problem as to the contents in the path because there might have PC’s that have installed other applications and have their entries in the path. I know where it is wrong in the path, it is that semicolon; at the end causing the problem all I want to do is identify pc’s with the path ending in semicolon; and remove it.

Your solution is good if everyone had Identical path entry but it is no the case. I f you have any other solution please let me know.

Thanks
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

chaddupuisCommented:
Try it and see if it overwrites or just adds t the "path" entry. It might just add to it, but I have not tried it myself to know.
chaddupuisCommented:
have you considered upping th points on this question? 20 id mighty cheap my friend.
geckobtzAuthor Commented:
i am increasing it to 30
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.