Windows Admin Scripting Little Black Book (Little Black Books (Paraglyph Press))

Microsoft uses a common organized structure to store user data. By knowing the locations of these directories and the quickest way to access them, you can easily modify their contents within your scripts. Tables 4 lists the most common locations.

Table 4: Windows paths.

Name

Location

All Users

% ALLUSERSPROFILE %\Profiles\All Users\Desktop

Desktop

 

All Users

% ALLUSERSPROFILE %\ Profiles\All Users\

Start Menu

Start Menu

Desktop

% USERPROFILE %\Desktop

Favorites

% USERPROFILE %\Favorites

NetHood

% USERPROFILE %\NetHood

PrintHood

% USERPROFILE %\PrintHood

Quick Launch

% USERPROFILE %\Application Data\Microsoft\Internet Explorer\Quick Launch

SendTo

% USERPROFILE %\SendTo

Start Menu

% USERPROFILE %\Start Menu

Категории