7.1 Introduction to Windows Flashcards

1
Q

While many IT professionals prefer Mac OS and Linux, _________ is still the leader for desktop operating systems.

A

While many IT professionals prefer Mac OS and Linux, Windows is still the leader for desktop operating systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

_________ is one of the most important Windows tools for troubleshooting resource usage.

A

Task Manager is one of the most important Windows tools for troubleshooting resource usage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or False Command Prompt uses / like Linux

A

False

False Command Prompt uses ****

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Linux variables are designated with a ___, while Windows ENV variables are enclosed with ___ signs.

A

Linux variables are designated with a $, while Windows ENV variables are enclosed with % signs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

_____________ is a tool used to query system information and diagnostics, such as OS and hard disk info.

A

Windows Management Instrumentation Command (wmic) is a tool used to query system information and diagnostics, such as OS and hard disk info.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

wmic Structure and Conventions

Explain [global switches]

A

[global switches] are global commands called on by wmic. For example: wmic /APPEND:report.txt os get caption will append the Windows build number to report.txt file. This will add the output content to the file and not overwrite the file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

wmic Structure and Conventions

Explain [alias]

A

[alias] is the Windows component that wmic queries. Common aliases include: os (operating system): Contains properties specific to the operating system, such as the Windows edition name and build number. Logicaldisk: Contains properties specific to the disk drives, such as drive name, filesystem, free space, size, and volume serial number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

wmic Structure and Conventions

Explain [verbs]

A

[verbs] are actions we want to complete with the wmic command. For example, if we are using wmic os to find operating system information, we can then use the get verb, followed by the various [properties] we want to find.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

wmic Structure and Conventions

Explain [properties]

A

Common [properties] to retrieve using get: get caption: Returns a one-line description of the given alias. get /value: Gets all of the properties and values of an alias and lists each on separate line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Explain what this command will do:

wmic /APPEND:report.txt os get caption

A

It will append the Windows build number to report.txt file. This will add the output content to the file, and **not** overwrite the file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does this command do: wmic /APPEND:report.txt useraccount get name, sid, description

A

Finds all user’s last login information, and all user info, SID, important directories, and files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How would you list all the different values that can be retrieved from the os wmic alias.

A

wmic os get /value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Use net user to:

A

Add, remove and manage users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Use net localgroup to:

A

Add, remove and manage groups

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Use net accounts to:

A

View password and logon requirments for users to enforce password security policies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

net lets us set the following password policies:

A

Time before a password expires. Minimum number of characters required for password. Minimum number of days before a password can be changed. Number of times a password must be unique before it can be reused again. E.g., if using the PW apples2apples, you’ll have to change it to two new passwords before you can use apples2apples again.

17
Q

Common and Important Windows Directories

C:\

A

C:\ (or whichever root drive Windows is installed on) : is a root drive

18
Q

Common and Important Windows Directories

C:\Program Files\

A

C:\Program Files\ is where 64-bit applications are installed.

19
Q

Common and Important Windows Directories

C:\Program Files (x86)\

A

C:\Program Files (x86)\ is where 32-bit applications are installed.

20
Q

Common and Important Windows Directories

C:\ProgramData\

A

C:\ProgramData\ [hidden] is a hidden directory where application-specific settings reside.

21
Q

Common and Important Windows Directories

C:\Users\

A

C:\Users` is the directory for all users, including our sysadmin user. This is similar to Linux’s /home directory.

22
Q

CMD Interaction and Navigation

What is cd or chdir?

A

cd or chdir is to change directories, just like with Linux’s cd

23
Q

Common and Important Windows Directories

C:\Windows\System32\

A

C:\Windows\System32\ is where (counterintuitively) 64-bit main component Windows system applications configuration settings are located.

24
Q

CMD Interaction and Navigation

What is dir?

A

Lists the contents of a directory, similarly to Linux’s ls

25
Q

CMD Interaction and Navigation

What is md or mkdir?

A

Creates directories.

26
Q

CMD Interaction and Navigation

What is del or erase?

A

Deletes files and directories. Directories will prompt a user to confirm. Note that files deleted with this command do not go to the Recycle Bin, unlike when they are deleted with the GUI.

27
Q

CMD Interaction and Navigation

What is rd or rmdir?

A

rd or rmdir removes a directory if it's empty. Non-empty directories must be removed with rmdir /S or rd /S`.

28
Q

CMD Interaction and Navigation

What is find?

A

find will search a file for whatever is defined. For example, find "hello" greeting.txt will search the greeting.txt file for the string hello.

29
Q

CMD Interaction and Navigation

What is type?

A

type followed by a file name will show the contents of a file. Similar to cat in Linux.

30
Q

CMD Interaction and Navigation

What is | more?

A

more` or “pipe more” shows contents of the command-line in a per-screen format.

31
Q

Provide the corresponding Default Value :

%CD%
%DATE%
%OS%
%ProgramFiles%
%ProgramFiles(x86)%
%TIME%
%USERPROFILE%
%SYSTEMDRIVE%
%SYSTEMROOT%

A

%CD% ———————-Current directory
%DATE% ——————–Current date
%OS%————————Windows
%ProgramFiles%———Program Files
%ProgramFiles(x86)%–Program Files (x86)
%TIME% ——————–Current Time
%USERPROFILE%——-C:\Users{username}
%SYSTEMDRIVE%——C:\
%SYSTEMROOT%——C:\Windows

32
Q

Was does WMIC stand for?

A

WMIC Windows Management Instrumentation Command

33
Q

What is the WMIC query structure?

A

wmic [global switches] [alias] [verbs] [properties]