Networking Study Notes Formatted
Networking Study Notes Formatted
Chapters 6 & 7
1
TABLE OF CONTENTS
Chapter 6 - Using Group Policy
2
CHAPTER 6 - USING GROUP POLICY
💡 STUDY TIP
Group policy can be confusing at first, but becomes clear with hands-on practice.
3
Key Characteristics of GPOS:
Aspect Detail
Who/What it applies
Both users and computers in the domain
to
User Policy Applied to that user no matter which computer they log on to
(1) Create the GPO with desired settings, then (2) Link/apply it to
How to use
targets
🔑 KEY POINT
To use group policy you must know how to do two things: (1) create individual group policy
objects, and (2) apply (link) those objects to user and computer objects.
Step 1 Open Server Manager and click Add Roles and Features.
Step 2 Follow the wizard until you reach the Select Features screen.
Step 3 Check the box for Group Policy Management (if not already checked).
4
Step 4 Click Next.
Step 5 On the confirmation page, click Install. Wait a few minutes for installation.
📝 NOTE
Result: After completing these steps, a new command titled Group Policy Management
appears in the Tools menu of Server Manager.
5
13. Close the Group Policy Management Editor window.
14. Right-click Computer Configuration → choose Refresh to verify settings.
15. Drag the new GPO to the top-level domain node to link it. Click OK to confirm.
16. Verify the domain now appears in the Scope tab.
17. Close Group Policy Management. The policy is now active.
🔑 KEY POINT
Thousands of policy settings are organized in categories inside the Group Policy
Management Editor. As a beginner, expect to spend time hunting for the specific policy you
need.
Suppose Marketing needs [Link] as their browser home page, but Accounting
needs [Link]. Both groups are in the same domain. You can create two GPOs
and use Security Filtering to apply each GPO only to the correct group.
6
📝 NOTE
A particular user or computer can be a member of only one OU, but using filters allows you
to target individual users/computers or any security group.
Key Distinction
Link The GPO is linked to an Active Directory container. Default settings are
Enabled available to objects in the container.
Prevents other GPOs from overriding the settings. Used when you want a
Enforced
setting to be an absolute guarantee.
📝 NOTE
Remember: A GPO can be Link Enabled = Yes but Enforced = No. This is perfectly normal
and means the GPO IS applied to all objects in the domain - but another GPO could
override it. 'Enforced' blocks that from happening.
7
CHAPTER 7 - COMMANDEERING WINDOWS
COMMANDS
Elevated Mode: To open with full admin rights click Start, type cmd , then right-click the
Command Prompt icon and choose Run As Administrator.
📝 NOTE
Closing: Type Exit and press Enter. This properly terminates [Link]. Using the X
(close button) forces Windows to kill the process and requires extra dialog clicks.
Editing Commands:
• Right-arrow key: Recalls the last command one character at a time.
• F3: Recalls all characters from the previous command at current cursor position.
• Up-arrow key: Scrolls through up to 50 recently used commands. Press Enter to re-execute
or edit first.
8
• Properties: Change font size, background color, and window appearance.
Wildcards
Wildcards let you process multiple files matching a pattern with a single command.
Wildcard/Meaning Example
* (Any number of characters including del *Y2K*.doc deletes all .doc files containing
zero) Y2K.
📝 NOTE
Windows vs MS-DOS: In Windows, ab*[Link] and ab*.doc are NOT the same. In old
MS-DOS, anything after an asterisk was ignored.
cmd1 || cmd2 (Runs cmd2 ONLY if cmd1 fails) copy *.doc a: || echo Oops!
9
⚠️ WARNING
With a single & , if the first command fails (e.g., drive fills up), the second command still
runs! Use && for safe copy-then-delete operations.
• Input Redirection (<) - Feeds a file as input to a command: nslookup < [Link]
• Piping (|) - Takes output of one command and feeds it as input to the next: type
[Link] | sort (displays the file in sorted order).
10
Variable Description
11
%PROCESSOR_REVISION% Revision level of the processor
💡 STUDY TIP
If an environment variable represents a path with spaces, enclose it in quotes: dir
"%HOMEPATH%"
12
📝 NOTE
Microsoft encourages using profiles over logon scripts, but many networks still use logon
scripts.
Syntax:
Parameter Description
Example:
eventcreate /t information /id 100 /d "Nightly processing completed" /L
Application /SO Nightly
13
7.6 Net Commands - Full Reference
The Net Services commands are among the most useful commands for network admins. All are
two-word commands beginning with Net (e.g., Net Use, Net Start).
Net Accounts
Syntax:
net accounts [/forcelogoff:{minutes|no}] [/minpwlen:length] [/maxpwage:
{days|unlimited}] [/minpwage:days] [/uniquepw:number] [/domain]
• forcelogoff - How long to wait before forcing logout when logon time expires. Default = no.
• minpwlen - Minimum password length (0-127). Default = 6.
• maxpwage - Maximum days before password must be changed. Default = 90. Use unlimited
for no expiry.
• minpwage - Minimum days before a password can be changed again. Default = 0. Tip: Set
to 1 to prevent bypassing uniquepw policy.
• uniquepw - Number of different passwords a user must use before reusing one (0-24).
Default = 5.
• domain - Perform operation on the primary domain controller, not local computer.
Example:
net accounts /minpwage:7 /maxpwage:30
Running net accounts with no parameters displays current policy settings.
Net Computer
14
Syntax:
net computer \\computername {/add | /del}
Example:
net computer \\theodore /add
Net Config
Syntax:
net config [{server|workstation}] [options]
Server options: [/autodisconnect:time] [/srvcomment:"text"] [/hidden:{yes|
no}]
Example:
net config server /srvcomment:"DHCP Server"
Net Continue
Syntax:
net continue service
15
Example:
net continue workstation
net continue "nt lm security support provider"
Net File
Purpose: Lists all open shared files and their lock counts; can close files and remove locks.
Syntax:
net file [id [/close]]
Example:
net file (lists all open files)
net file 1 /close (closes file with ID 1)
■ Must run this command from the server where the file is shared. net files also works.
Net Group
Syntax:
net group groupname [/comment:"text"] [/domain]
net group groupname /add [/comment:"text"] [/domain]
net group groupname /delete [/domain]
net group groupname username[...] {/add | /delete} [/domain]
16
Example:
net group (list all groups)
net group Admin /add (create Admin group)
net group Admin Ward Wally June /add (add 3 users)
net group Admin (list users in Admin)
Net Localgroup
Example:
net localgroup
net localgroup Admin /add
net localgroup Admin Ward Wally June /add
net localgroup Admin
Net Help
Syntax:
net help [command]
• command — Any Net subcommand: accounts, computer, config, continue, file, group, help,
helpmsg, localgroup, pause, session, share, start, statistics, stop, time, use, user, view.
Example:
net help use
net help services (lists services startable via Net Start)
Net Helpmsg
17
Syntax:
net helpmsg message#
• message# — The 4-digit error number shown when the error occurred.
Example:
net helpmsg 2180
Net Pause
Purpose: Temporarily pauses a service. Prevents new connections but lets current users finish.
Syntax:
net pause service
Example:
net pause workstation
net pause "nt lm security support provider"
■ Use net continue to reactivate. Good practice: pause before stopping a service.
Net Session
Syntax:
net session [\\ComputerName] [/delete]
Example:
net session
⚠️ WARNING
■■ DANGEROUS: Disconnecting users while they are saving files may cause data loss.
Use with caution.
18
Net Share
Syntax:
net share [ShareName]
net share ShareName=path [{/users:number|/unlimited}] [/remark:"text"] [/
cache:{manual|automatic|no}]
net share {ShareName|drive:path} /delete
Example:
net share (list all shares)
net share Docs=C:\SharedDocs /remark:"Shared documents"
Net Start
Syntax:
net start [service]
Example:
net start (list running services)
net start "DNS Server" (restart DNS)
■ Workflow: run net start first to get exact service name spelling, then use net stop to
stop it.
19
Net Statistics
Purpose: Displays the statistics log for the local Workstation or Server service.
Syntax:
net statistics [{workstation | server}]
Example:
net statistics workstation
net statistics server
Net Stop
Syntax:
net stop service
Example:
net stop "DNS Server"
Net Time
Syntax:
net time \\ComputerName [/set]
net time /domain[:DomainName] [/set]
net time /rtsdomain[:DomainName] [/set]
net time [\\ComputerName] [/querysntp] [/setsntp[:NTPServerList]]
20
• /domain — Synchronize with domain time source.
• /rtsdomain — Use RTS time server.
• /querysntp — Query SNTP time source.
• /setsntp — Set NTP server list.
Example:
net time \\Server01 /set
Net Use
Syntax:
net use [{drive | *}] [\\computername\sharename [{password | *}]] [/user:
[domainname\]username] [/savecred] [/smartcard] [{/delete | /persistent:
{yes|no}}]
Example:
net use k: \\Server01\Acct /persistent:yes (connect)
net use k: /delete (disconnect)
net use (list all connections)
Net User
21
Syntax:
net user username (display info)
net user [username [password | *] [options]] [/domain] (update)
net user username [password | *] /add [options] [/domain] (add)
net user username /delete [/domain] (delete)
Example:
net user Doug (display Doug's info)
net user Beaver /add /fullname:"Theodore Cleaver" (add user)
■ Running net user without parameters lists all user accounts on the server.
Net View
Syntax:
net view [\\computername] [/domain[:domainname]]
net view /network:nw [\\computername]
22
Example:
net view (list all computers in domain)
net view \\Server01 (list shares on Server01)
Syntax:
runas /user:username [other parameters] program
Parameter Description
/noprofile Doesn't load user's profile. Loads faster but may break some apps.
■■ SECURITY RISK — saves password; any user can then run programs
/savecred
as admin!
23
⚠️ WARNING
■■ Critical Security Warning: NEVER use the /savecred parameter in a production
environment. Once used, ANY user at that computer can run ANY program with
administrator privileges using RunAs.
24
QUICK REFERENCE — NET COMMANDS SUMMARY
25
Command Purpose
net file List open shared files; close files and remove locks
26
runas Run a program using credentials of another user account
27