Windows Default User and All Users folders are missing.

The following knowledgebase article explains the situation in which new users can not log on to local computer or domain.


Scenario:


The following may be the scenario:


1. Newly created users can not log on to the system


2. All Users and Default User profile is corrupted.


3. All Users and Default User profile is pointing to a different location in the registry.


Cause:


By default, when Windows 2000 is installed it creates the two default folders. These two folders are: All Users and Default User. The logon process of user creates the user profile of the newly created user in the \Documents and Settings folder. The logon process uses these two folders to copy the contents to new profile. Windows identifies these two folders by looking at the following registry location:


HKLM\Software\Microsoft\Windows NT\ProfileList


In the right pane, Windows will have the following entries:


ProfilesDirectory REG_EXPAND_SZ %SystemDrive%\Documents and Settings


DefaultUserProfile REG_SZ Default User


AllUsersProfile REG_SZ All Users


Resolution:


You may need to take the following action to correct the abovementioned issues with the user profile:


1. Copy the All Users and Default User from a working computer to problematic computer.


2. Change the location of All Users and Default User profile in registry so that it points to the correct location.

How to refresh the Group Policy Settings on remote computers

The following knowledgebase explains the scenario in which you need to refresh the Group Policy Settings on a remote computer.


The Group Policy Settings are refreshed as per the interval configured in the Group Policy for client computers, member servers and domain controllers. You can use the following command line tools to refresh the Group Policy Settings on remote computer. You need to log on to the computer manually and then perform the action suggested below:


For Windows XP computers:


  • Gpupdate.exe /Target:User /force
  • Gpupdate.exe /Target:Computer /force

For Windows 2000 computers:


  • Secedit.exe /refreshpolicy user_policy
  • Secedit.exe /refreshpolicy machine_policy

To refresh the policy on remote computer or computers you can use the following script to do so:


  1. Create a ComputerList.txt
  2. Put all the remote computers in the Text file.
  3. Use the Psexec.exe tool to execute the command remotely.

For Windows XP Computers:


Psexec.exe -@ComputerList.txt Gpupdate.exe /Target:User /force


Psexec.exe -@ComputerList.txt Gpupdate.exe /Target:Computer /force


For Windows 2000 Computers:


Psexec.exe -@ComputerList.txt secedit.exe /refreshpolicy user_policy


Psexec.exe -@ComputerList.txt secedit.exe /refreshpolicy machine_policy


The above Psexec.exe command will run on all the computers specified in the ComputerList.txt.


You can also use the following script to check the version of Operating System and then issue the command:


@echo off


XPGPORef1=gpupdate.exe /Target:User /force


XPGPORef2=gpupdate.exe /Target:Computer /force


Win2kGPORef1=secedit.exe /refreshpolicy user_policy


Win2kGPORef2=secedit.exe /refreshpolicy machine_policy


For /f “Tokens=*” %%a in (ComputerList.txt) Do (


SET Comp_name=%%a


Ver.exe \\%comp_name% > Hostver.txt


Find /I “XP” < Hostver.txt > CheckCC.txt


IF %errorlevel% == 0 (


Psexec.exe \\%comp_name% Gpupdate.exe /Target:User /force


Psexec.exe \\%comp_name% Gpupdate.exe /Target:Computer /force


) ELSE (


Psexec.exe \\%comp_name% secedit.exe /refreshpolicy user_policy


Psexec.exe \\%comp_name% secedit.exe /refreshpolicy machine_policy


)


)


The above script will check the Operating System version by executing Ver.exe on remote computer and then run the appropriate commands to refresh the Group Policy Objects.

How to check and set Default Home Page URL using a script

The following knowledgebase will explain the methods you can use to check the Default Home Page URL on local and remote computer.

To check on a local computer:

You can use the following methods:

  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:

HKLM\Software\Microsoft\Internet Explorer\Main

The above registry includes the following values in right pane:

Default_Page_URL REG_SZ http://portal.csc.com/\

To check on a Remote Computer:

You can use the below script to check the Default Home Page URL on a remote computer:

@echo off

Srvlist=C:\Temp\Srvlist.txt

Echo Computer Name, Default Home Page >> Result.csv

SET Default_URL=

For /F “Tokens=*” %%a In (%srvlist%) Do (

Set Comp_name=%%a

Set RegQry=”\\%%a\HKLM\Software\Microsoft\Internet Explorer\Main” /v Default_Page_URL

REG.exe Query %RegQry% > CheckCC.txt

Find /i “Default_Page_URL” < CheckCC.txt > StringCheck.txt

FOR /f “Tokens=3” %%b in (CheckCC.txt) DO SET Default_URL=%%b

Echo %Comp_name, %Default_URL% >> Result.csv

)

The above script will check remote computer for one registry entry for checking Default Home Page URL and the results will be saved in a CSV format file.

How to verify the Page File location through a script:

The following knowledgebase will explain the methods you can use to check the Location of Page File on local and remote computer.


To check on local computer:


You can use the following methods:


  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:


HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management



The above registry key includes the following values in right pane:


pagingfiles REG_MULTI_SZ c:\pagefile.sys 3131 3131



To check on a Remote Computer:


You can use the below script to check the Paging File location on a remote computer:


@echo off


Srvlist=C:\Temp\Srvlist.txt


Echo Computer Name, Paging File Location >> Result.csv


SET PF_Loc=


For /F “Tokens=*” %%a In (%srvlist%) Do (


Set Comp_name=%%a


Set RegQry=”\\%%a\HKLM\system\currentcontrolset\control\session manager\Memory management /v pagingfiles


REG.exe Query %RegQry% > CheckCC.txt


FOR /f “Tokens=3” %%b in (CheckCC.txt) Do SET PF_Loc=%%b


Echo %Comp_name, %PF_Loc% >> Result.csv


)


The above script will check remote computer for one registry entry for Paging File location and the results will be saved in a CSV format file.

How to retrieve a list of shared folders shared using a script

The following knowledgebase will explain the methods you can use to check the shared folders shared on local and remote computer.


To check on local computer:


You can use the following methods:


  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:


HKLM\System\CurrentcontrolSet\Services\Lanmanserver\Shares



The above registry key includes the list of shared folders in right pane.


To check on a Remote Computer:


You can use the below script to check the list of shared folders on a remote computer:


@echo off


Srvlist=C:\Temp\Srvlist.txt


Echo Computer Name, Shared Folders Lists >> Result.csv


SET Share_name=


For /F “Tokens=*” %%a In (%srvlist%) Do (


Set Comp_name=%%a


Set RegQry=”\\%%a\HKLM\System\CurrentcontrolSet\Services\Lanmanserver\Shares”


REG.exe Query %RegQry% > CheckCC.txt


FOR /f “Skip=4 Tokens=1” %%b in (CheckCC.txt) DO (


SET Share_name=%%b


Echo %Share_name% >> Result.csv


)


)


The above script will check remote computer for each registry entry in the right pane fto check the share name and the results will be saved in a CSV format file.

How to make sure AutoCheck is enabled on Remote Computer

The following knowledgebase will explain the methods you can use to check the AutoCheck registry entry on local and remote computer.


To check on local computer:


You can use the following methods:


  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:


HKLM\System\CurrentControlSet\Control\Session Manager



The above registry key includes the following values in right pane:


bootexecute REG_MULTI_SZ autocheck autochk *



To check on a Remote Computer:


You can use the below script to check the Processor Vendor and MHz speed on a remote computer:


@echo off


Srvlist=C:\Temp\Srvlist.txt


Echo Computer Name, Boot Check Enabled? >> Result.csv


SET Boot_Chk=


For /F “Tokens=*” %%a In (%srvlist%) Do (


Set Comp_name=%%a


Set RegQry=”\\%%a\HKLM\system\currentcontrolset\control\session manager” /v bootexecute


REG.exe Query %RegQry% > CheckCC.txt


Find /i “autocheck autochk” < CheckCC.txt > StringCheck.txt


If %errorlevel% == 0 (


SET Boot_Chk=Enabled


) ELSE (


SET Boot_Chk=Disabled


)


Echo %Comp_name, %Boot_Chk% >> Result.csv


)


The above script will check remote computer for one registry entry for Boot Check and the results will be saved in a CSV format file.

How to check the Processor Vendor and MHZ speed on Remote Computer

The following knowledgebase will explain the methods you can use to check the Processor Manufacturer and MHz speed of the processor on local and remote computer.


To check on local computer:


You can use the following methods:


  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:


HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor



The above registry key includes the following values in right pane:


ProcessorNameString REG_SZ Intel(R) Core(TM) Duo CPU T2400 @ 1.83GHz


VendorIdentifier REG_SZ GenuineIntel



To check on a Remote Computer:


You can use the below script to check the Processor Vendor and MHz speed on a remote computer:


@echo off


Srvlist=C:\Temp\Srvlist.txt


Echo Computer Name, Processor Vendor Name, Processor Speed >> Result.csv


SET Proc_Vend=


SET Proc_speed=


For /F “Tokens=*” %%a In (%srvlist%) Do (


Set Comp_name=%%a


Set RegQry=”\\%%a\HKLM\HARDWRE\Description\system\CentralProcessor”


REG.exe Query %RegQry% > CheckCC.txt


Find /i “VendorIdentifier” < CheckCC.txt > StringCheck.txt


FOR /f “Tokens=3” %%b in (CheckCC.txt) DO SET Prov_Vend=%%b


Find /i “ProcessorNameString” < CheckCC.txt > StringCheck.txt


FOR /f “Tokens=3” %%b in (CheckCC.txt) DO SET Proc_speed=%%b


Echo %Comp_name, %Proc_Vend%, %Proc_Speed% >> Result.csv


)


The above script will check remote computer for two registry entries for Processor Vendor Name and Processor Speed and the results will be saved in a CSV format file.

How to check the Internet Explorer version on Remote Computer:

The following knowledgebase will explain the methods you can use to check the Internet Explorer version on local and remote computer.


To check settings on local computer:


You can use the following methods:


  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:


HKLM\Software\Microsoft\Internet Explorer



The above registry includes the following values in right pane:


Version REG_SZ 6.0.2900.2180


To check on a Remote Computer:


You can use the below script to check the Internet Explorer version on a remote computer:


@echo off


Srvlist=C:\Temp\Srvlist.txt


Echo Computer Name, Internet Explorer Version >> Result.csv


SET IE_Ver=


For /F “Tokens=*” %%a In (%srvlist%) Do (


Set Comp_name=%%a


Set RegQry=”\\%%a\HKLM\Software\Microsoft\Internet Explorer” /v Version


REG.exe Query %RegQry% > CheckCC.txt


Find /i “Version” < CheckCC.txt > StringCheck.txt


FOR /f “Tokens=3” %%b in (CheckCC.txt) DO SET IE_Ver=%%b


Echo %Comp_name, %IE_Ver% >> Result.csv


)


The above script will check remote computer for one registry entries for checking Internet Explorer version and the results will be saved in a CSV format file.

How to check System Boot partition and Boot.ini option using a script

The following knowledgebase will explain the methods you can use to check System Boot Partition of the Operating System and BOOT.ini option on local and remote computer.


To check on local computer:


You can use the following methods:


  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:


HKLM\System\CurrentcontrolSet\Control



The above registry key includes the following values in right pane:


systembootdevice REG_SZ multi(0)disk(0)rdisk(0)partition(1)


systemstartoptions REG_SZ NOEXECUTE=ALWAYSOFF FASTDETECT



To check on a Remote Computer:


You can use the below script to check the LogPath and Tasks Folder on a remote computer:


@echo off


Srvlist=C:\Temp\Srvlist.txt


Echo Computer Name, System Boot Partition, BOOT.INI Options >> Result.csv


SET Sys_Part=


SET Boot_Option=


For /F “Tokens=*” %%a In (%srvlist%) Do (


Set Comp_name=%%a


Set RegQry=”\\%%a\HKLM\System\CurrentControlSet\Control” /v SystemBootDevice


Set RegQry1=”\\%%a\HKLM\System\CurrentControlSet\Control” /v SystemStartOptions


REG.exe Query %RegQry% > CheckCC.txt


REG.exe Query %RegQry1% > CheckCC1.txt


Find /i “SystemBootDevice” < CheckCC.txt > StringCheck.txt


FOR /f “Tokens=3” %%b in (CheckCC.txt) DO SET Sys_Part=%%b


Find /i “SystemStartOptions” < CheckCC1.txt > StringCheck.txt


FOR /f “Tokens=3” %%b in (CheckCC1.txt) DO SET Boot_Option=%%b


Echo %Comp_name, %Sys_Part%, %Boot_Option% >> Result.csv


)


The above script will check remote computer for two registry entries for System Boot Partition and System Start Options and the results will be saved in a CSV format file.

How to check System BIOS Date and System BIOS Version on Remote computer

The following knowledgebase will explain the methods you can use to check the System BIOS date and BIOS Version on local and remote computer.


You can use the following methods:


  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:


HKLM\HARDWARE\DESCRIPTION\System



The above registry includes the following values in right pane:


SystemBiosDate REG_SZ 04/30/07


SystemBiosVersion REG_MULTI_SZ LENOVO – 2130Phoenix FirstBIOS(tm) Notebook Pro


Version 2.0 for ThinkPadVer 1.00PARTTBL


To check on a Remote Computer:


You can use the below script to check the BIOS System date and BIOS Version on a remote computer:


@echo off


Srvlist=C:\Temp\Srvlist.txt


Echo Computer Name, BIOS Date, BIOS Version >> Result.csv


SET BIOS_Date=


SET BIOS_Ver=


For /F “Tokens=*” %%a In (%srvlist%) Do (


Set Comp_name=%%a


Set RegQry=”\\%%a\HKLM\HARDWRE\Description\system”


REG.exe Query %RegQry% > CheckCC.txt


Find /i “SystemBIOSDate” < CheckCC.txt > StringCheck.txt


FOR /f “Tokens=3” %%b in (CheckCC.txt) DO SET BIOS_Date=%%b


Find /i “SystemBIOSVersion” < CheckCC.txt > StringCheck.txt


FOR /f “Tokens=3” %%b in (CheckCC.txt) DO SET BIOS_Ver=%%b


Echo %Comp_name, %BIOS_Date%, %BIOS_Ver% >> Result.csv


)


The above script will check remote computer for two registry entries for BIOS System Date and BIOS Version and the results will be saved in a CSV format file.