Lab Server Core & Remote Administrator Tools - Hsanokklis/2023-2024-Tech-journal GitHub Wiki

Reader beware: this lab documentation is rather extensive because there was a lot of troubleshooting that had to be done.

Objectives

  • Setup a Windows 2019 Server Core machine to act as a file server. Use the command line to perform usual local tasks (change the IP, change the server name, etc).

  • Connect to the new server FS01 from AD02 using RSAT and add File Services.

image

FS01 Requirements

  • hostname = FS01-hannelore
  • Domain = hannelore.local (FQDN = fs01-firstname.yourdomain.local)
  • IP = 10.0.5.8
  • Gateway & DNS IP’s
  • Join the server to your AD domain, after new OS is configured as previous OS’s
  • Connect to new server from ad02 using RSAT and add the File Services Role
  • Create a security group

Login Prompt

You will be prompted to setup a username and password. This is the Local Administrator for this server (and not the AD Domain Admin, since it is not joined to your AD Domain yet). Note: be sure to document the userid and password you create.

image

password is 4Hannelore for administrator

Go into server configuration with sconfig

image

we want to change the computer name to fs01-hannelore

image

here is the changed name, the machine had to restart to apply the name change

Change the network settings

image

  • Select option 1 for the network adapter

image

Change the DNS server to 10.0.5.6

image

Change the Static Ip, Default Gateway and Subnet mask

image

image

This is the successfully changed network settings

reboot the server and then join your Active Directory Domain

reboot with option 13 in the sconfig menu

using sconfig's Domain/Workgroup option

LOOK AT THE NETWORK ADPATER - CHECK YOURSELF BEFORE YOU WRECK YOURSELF

I could not join my domain even when I knew my domain password. I went back and checked my ad02 machine to make sure I had the right username and I did, so then I checked my network adapter and it was still set to WAN so that is why it was not working

image

image

image

image

here is the fs01 server joined to the hannelore.local domain

Log in to your AD Domain using -adm account via the Other user option

image

TROUBLESHOOTING: My admin credentials were not working at all for this lab. I tried every iteration I could think of and many troubleshooting steps, including talking to the professor. Even he didn't know what happened as I was able to join the hannelore.local domain, but was not able to sign in as the authorized user.

Here are the steps I took to troubleshoot and be able to fix the lab:

  • Checked the ad02-hannelore server to make sure I was typing in the correct admin username (which was hannelore.sanokklis-adm)
  • Checked to makes sure the fs01-hannelore server was added to the computers section of the domain (it was)
  • Double and triple checked the IP address configs
  • Changed the password for hannelore.sanokklis-adm like 100 times (it never worked, regardless of the password I made) pinged the firewall, and the dns server (both were successful)
  • signed out of the local admin account on the ad02-hanneloremachine and tried signing into the admin credentials on the box (to no avail)
  • created a new user called feet on the ad02-hannelore server but when I logged out and tried to log in, I was met with a message telling me I did not have permission to sign in with that account.

I did not add the feet account to the Admin Group in the ad02-hannelore server. This is why I was getting the error saying that I could not sign in.

image

image

From now on my admin user will be feet

Deliverable 1: Show the sconfig cmd after setting the network, computer name, update settings, and joining the AD domain. (example below)

image

_sconfig showing that the fs01-hannelore box is joined to the hannelore.local domain.

image

Network adapter with correct IP address 10.0.5.8

image

Network settings with the subnet mask, DNS server and default gateway configured

Use RSAT to Manage FS01 via AD02

On AD02, within the Remote Server Administration Tools (RSAT) Feature (which is not a Role), add File Service Tools and File Server Resource Manager Tools.

Make sure you are logged on to ad02 as your AD Domain named -adm user

Go to Add roles and features wizard

image

image

image

Add FS01 to All Servers

  • go to All Servers --> add server

image

  • add the fs01-hannelore server

image

Deliverable 2. Provide a screenshot that shows that from AD02, you have access to FS01 and AD02

image

On AD02, create the following OU Structure:

image

  • Create a new Global security group (Sales-Users) in the Groups OU.
  • Create two users (Bob and Alice) as standard domain users, in the new SYS255\Users OU
  • Add Alice to the Sales-Users group

Make a SYS-255 OU

Include these OUs within the SYS-255 Folder:

  • Computers
  • Users
  • Groups

image

Create two users (Bob and Alice) as standard domain users, in the new SYS255\Users OU

image

  • user: bob
  • pw: H@nnelore1123581321

image

image

  • user: alice
  • H@nnelore1123581321

image

image

Successful creation of users Bob and Alice in the Users OU.

Create a new Global security group (Sales-Users) in the Groups OU

  • Go to groups OU
  • Create new group

image

Creating Global security group Sales-Users

image

Successful creation of Sales-Users Group

Add Alice to the Sales-Users group

image

image

Use RSAT to add to FS01 and create a Sales Users share

On AD02, use the Add Roles and Features option on FS01

image

image

image

image

Run the following Net Shell (netsh) command on fs01 to open the firewall for managing the File Server:

netsh advfirewall firewall set rule group=”Remote File Server Resource Manager Management” new enable=yes

image

On AD02, Connect to FS01 using File Server Resource Manager to test the command just ran above. Make sure to select Files and Storage Services -> Servers.

image

image

image

Deliverable 3: Take a screenshot of the FSRM and VM banner similar to that below:

image

Create a new share on FS01 using Server Manager

image

image

Choose the SMB Quick Share option.

image

Choose the fs01 server, and leave the Select by volume options alone.

image

Create a share named Sales, & take note of the Local and Remote paths to the share:

image

Next and Finish Configuring the Settings

image

image

image

For Customized Permissions, assign the Sales-Users Group created earlier with Full Control Custom Permissions to the share. Remove "Everyone access to the Share".

image

image

image

image

Remove that everyone can access the share

image

Add Full control for the Sales-Users group

image

image

Test access for Bob and Alice

Deliverable 4: Test access to the \fs01-yourname\Sales while alternately logged into WSK02 as Bob and as Alice. Provide screenshots showing that Alice can write and read from \fs01\Sales and that Bob cannot.

image

signed into fs01-hannelore as alice

image cat alice is able to view the file in the directory from the fs01-hannelore machine

image

Hi from alice in the ad02-hannelore CMD

image

alices text file in ad02-hannelore

image echo

Bobs cannot not read to sales

image

Bob cannot write to sales

TROUBLESHOOTING:

As I was trying to sign into my workstation with my bob and alice accounts I kept getting this message:

image

We troubleshooted and determined that there was a problem with reaching the domain so the ad02-hannelore machine rather then network connectivity, since the network adapter was correct.

  • DNS records

So it turns out I had put my reverse lookup zone ip address wrong in my DNS manager. I put it was 10.0.5.105 instead of 10.0.5.150

image

Before I deleted the PTR and AA records, I sshed into DHCP to try and check what the IP address of the wk02-hannelore actually should have been by checking the logs

  • when I checked the logs by going into \var\messages sudo cat messages | grep wks nothing came up in the log.
  • I did systemctl status dhcpd to check to see if the dhcp server was even active and it was not

image

  • I then did systemctl start dhcpd to start the dhcp server and then checked the status again to make sure it was up and running again. image

  • The lease for the IP was also expired you can see that it renewded the lease image

Once the DHCP server was started again, when I greped for wks02-hannelore there were actually entries

image

  • Now that there are logs for windows I was able to see the IP address for the wks02-hannelore which is 10.0.5.150 image

After figuring this out, I went back to my DNS manager and deleted my forward/reverse lookup zones for my workstation and remade them with the correct IP address. After doing this I was able to sign into workstation with my admin account and the problem was fixed!

Continuing with alice and bob accessing the sales shares folder

TROUBELSHOOTING:

I could not figure out how to view the "hifromalice.txt" in file manager, when I would try and type in the path \\fs01-hannelore\sales I was not able to access anything.

  • This is because network discovery is turned off, so I am not able to look in the share. image

  • If you right click on the windows tab and then run, you can open paths through the file explorer.

image

  • I am now able to see the file

image

Alice is able to read and write to the sales group

image

Bob is not able to read or write to the sales group

image

Deliverable 5. Research and Create a Group Policy to Map the S:\ drive to the \FS01\Sales share for all users in the the Sales-Users group, and then document this process in your tech-journal.

Provide:

  • Screenshot showing your successful gpresults
  • Screenshot of the mapped drive
  • Link to your tech-journal article exploring some of this lab’s topics further

Link used: https://activedirectorypro.com/map-network-drives-with-group-policy/

  • Go to Group Policy Management
  • Create a new GPO in SYS-255 --> Users

image

  • Edit the new GPO

image

  • Go to mapped drives

image

  • Click new ---> mapped drive

image

  • Create drive for \fs01-hannelore\sales

image

  • apply the drive in the context of the users

image

  • add targeting

image

image

image

here is the mapped drive

logged on as alice, viewing the sales drive!

image

logged on as bob, he cannot access the drive!

image