Environment Variables in Windows

Variable Type Description

%ALLUSERSPROFILE%

Local

Returns the location of the All Users Profile.

%APPDATA%

Local

Returns the location where applications store data by default.

%CD%

Local

Returns the current directory string.

%CMDCMDLINE%

Local

Returns the exact command line used to start the current Cmd.exe.

%CMDEXTVERSION%

System

Returns the version number of the current Command Processor Extensions.

%COMPUTERNAME% 

System

Returns the name of the computer.

%COMSPEC% 

System

Returns the exact path to the command shell executable.

%DATE% 

System

Returns the current date. Uses the same format as the date /t command. Generated by Cmd.exe. For more information about the date command, see Date

%ERRORLEVEL% 

System

Returns the error code of the most recently used command. A non zero value usually indicates an error.

%HOMEDRIVE% 

System

Returns which local workstation drive letter is connected to the user’s home directory. Set based on the value of the home directory. The user’s home directory is specified in Local Users and Groups.

%HOMEPATH% 

System

Returns the full path of the user’s home directory. Set based on the value of the home directory. The user’s home directory is specified in Local Users and Groups.

%HOMESHARE% 

System

Returns the network path to the user’s shared home directory. Set based on the value of the home directory. The user’s home directory is specified in Local Users and Groups.

%LOGONSEVER% 

Local

Returns the name of the domain controller that validated the current logon session.

%NUMBER_OF_PROCESSORS% 

System

Specifies the number of processors installed on the computer.

%OS% 

System

Returns the operating system name. Windows 2000 displays the operating system as Windows_NT.

%PATH%

System

Specifies the search path for executable files.

%PATHEXT%

System

Returns a list of the file extensions that the operating system considers to be executable.

%PROCESSOR_ARCHITECTURE% 

System

Returns the chip architecture of the processor. Values: x86, IA64.

%PROCESSOR_IDENTIFIER%

System

Returns a description of the processor.

%PROCESSOR_LEVEL% 

System

Returns the model number of the processor installed on the computer.

%PROCESSOR_REVISION%

System

Returns the revision number of the processor.

%PROMPT%

Local

Returns the command prompt settings for the current interpreter. Generated by Cmd.exe.

%RANDOM%

System

Returns a random decimal number between 0 and 32767. Generated by Cmd.exe.

%SYSTEMDRIVE%

System

Returns the drive containing the Windows XP root directory (that is, the system root).

%SYSTEMROOT% 

System

Returns the location of the Windows XP root directory.

%TEMP% and %TMP%

System and User

Returns the default temporary directories that are used by applications available to users who are currently logged on. Some applications require TEMP and others require TMP.

%TIME%

System

Returns the current time. Uses the same format as the time /t command. Generated by Cmd.exe. For more information about the time command, see Time

%USERDOMAIN%

Local

Returns the name of the domain that contains the user’s account.

%USERNAME%

Local

Returns the name of the user who is currently logged on.

%USERPROFILE%

Local

Returns the location of the profile for the current user.

%WINDIR%

System

Returns the location of the operating system directory.

 

Source

Printers That Use Ports That Do Not Begin With COM, LPT, or USB Are Not Redirected in a Remote Desktop or Terminal Services Session

If you try to connect to a terminal server and have setup local Printer Redirection this might not work on some USB Printers will not be redirected. This is due to a filter on redirection that only redirects ports beginning with LPT, COM or USB. This filter can be turned of.

KB Article

Format versus Quick Format

Q: What is the difference between Format and Quick Format when installing a Windows OS

A: The difference between the regular format versus the quick format is whether or not the volume is scanned for bad sectors using the chkdsk command. Both methods remove the files from the volume.

Microsoft Knowledge Base Article: Differences Between a Quick Format and Format During Windows XP Setup (Q302686)

Installing Applications on locked down server

Q: I am tryning to installa an application on a locked down server and I am getting the following error “The system administrator has set policies to prevent this installation”. I have probably locked down something I shouldn’t have…

Ansver: take a look under Computer Configuration / Administrative Templates / Windows Components / Windows Installer in GPedit. It could be that you have disabled Windows Installer.

 

DS_E_INVALID_ATTRIBUTE_SYNTAX when trying to edit Distribution Lists

Q: I get an error DS_E_INVALID_ATTRIBUTE_SYNTAX when I try to edit a Distribution List in Exchange 5.5 (don’t know if this applies to 2000 och 2003)

A: Try changing the DL Expansion Server in Exchnage System Administrator. Open Properties for the Distribution List and change Expansion Server on the General Tab.

ADC will not replicate objects to AD

Problem: You have set up the ADC Connector and migrated your users and everything looks good. Then for some reason you need to delete and remigrate the migrated users you will run into a problem. The ADC will try to replicate with the deleted users and not with the new ones.

Reason: The reason for this is that the ADC writes an ADC-Global-Names attribute to the object in Exchange 5.5. This is a unique tag for each user and when you remigrate the users this will not be the same.

Resolution: Open Exchange System  Manager on Exchange 5.5 in raw mode and delete the ADC-Global-Names attribute.

Links:

Google Newsgroups
XADM: How to Remove the ADC Global Names Attribute from Exchange 5.5 Server Recipients
How to roll back a failed migration from Exchange Server 5.5 to Exchange 2000 Server or to Exchange Server 2003

Shopping Lista

Ikea

Badrum

Skåp under handfatet: mått: Bredd 60, höjd 69, djup 43 
   Förslag: TvättställsunderskåpVÄTTERN

Badrumsmatta
   Förslag: BadrumsmattaETHEL RAND

Vardagsrum/arbetsrum


– Två vita lådor
– Papperskorg
– En Hurts med vår skrivar på
   Förslag: Hurts med 6 lådorSTURE
 

– Panelgardiner kvadrant?

Arbetsrum

Serreo/TV Bänk 55 cm djup, ca 2m bred
mått: Bredd: 2,52 m (hålet), 90 cm (från vägg till början av hålet)  Höjd: 2,67 m
Bredd i skenan 4,5 cm
Vardagsrums fönster
Mått  Bredd: 2,58 m Höjd:2,67 cm

Tavla Duva 62cm X 78,5
    66,8

Vardagsrum 13,9
    20,5 till fönster

KöK

Köksbord och stolar 1,04m X 1,60m
Ev Extrastolar
Lådinsatser 22cm X 50,5
Arbetsbänk Bredd 92 cm mellan fönsterbräden
Golv till Fönterbräda 92
Nisch vid spis: max 30,6 cm bred (32)
Sida på Linneskåp: 209 X 56

Öppen Spis Gnistskydd max 68 cm X 60 cm