The 12 IT Help Desk Tickets Every Tech Gets: Every Command From the Video

๐Ÿงฐ Free lab kit: work these tickets yourself

https://github.com/TrevTech-IT/HelpDeskSim

One PowerShell script stages all 12 tickets in your own AD lab and puts them back afterwards. The kit also has the ticket queue from the video and a printable practice sheet. You need one domain controller and one domain-joined Windows 10/11 client.

Snapshot both VMs first. The script breaks things on purpose.

This post goes with my video The 12 IT Help Desk Tickets Every Tech Gets | Worked Start to Finish. It holds every command I typed on screen, so you can copy them instead of pausing the video.

My lab is trevtech.lab, with one DC (DC01) and one Windows 11 client (WS01). The users are Bruce Wayne (bwayne) and Tom Smith (tsmith). Swap in your own names if your lab is different.

Run everything in PowerShell as administrator. The Active Directory commands (*-AD*) run on the DC, or on any machine with RSAT installed.

Ticket 1: “I can’t log in, it says my account is locked”

Find it. List every locked account in the domain:

Search-ADAccount -LockedOut | Select-Object Name, SamAccountName

Then find out what locked it. Event 4740 is written on the DC each time an account locks, and its Caller Computer Name tells you which device did it:

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4740} -MaxEvents 3 |
    Format-List TimeCreated, Message

Fix it. In the video I used ADUC: user โ†’ Properties โ†’ Account tab โ†’ tick Unlock account. The PowerShell way:

Unlock-ADAccount -Identity bwayne

Bad password count isn’t replicated between DCs. It’s tracked per DC, so ask the wrong one and it says zero.

Ticket 2: “My password expired and it won’t take a new one”

Find it. Check the account’s password state:

Get-ADUser bwayne -Properties PasswordExpired, PasswordLastSet |
    Select-Object Name, PasswordExpired, PasswordLastSet

A blank PasswordLastSet is how “must change at next logon” shows up. Then check the rules every password has to meet:

Get-ADDefaultDomainPasswordPolicy

Fix it. Nothing to fix. The user needs a password that meets the policy. Don’t reset it for them.

Ticket 3: New starter can’t log in on their first day

Find it. Does the account exist, and is it switched on?

Get-ADUser tsmith -Properties Enabled, whenCreated, MemberOf |
    Select-Object Name, Enabled, whenCreated, MemberOf

Fix it. In ADUC: right-click โ†’ Enable Account. The PowerShell way:

Enable-ADAccount -Identity tsmith

Ticket 4: “My F drive’s gone”

Find it. On the client, as the user, list the mapped drives:

Get-SmbMapping

Then see which Group Policies applied to this user, and which got filtered out:

gpresult /r /scope:user

On the DC, check who’s in the group the GPO is filtered to:

Get-ADGroupMember Finance-Users

Fix it. In ADUC: user โ†’ Properties โ†’ Member Of โ†’ Add โ†’ Finance-Users. The PowerShell way:

Add-ADGroupMember -Identity Finance-Users -Members bwayne

Then sign out and back in on the client. Locking the screen isn’t enough, because group membership is stamped on at sign-in.

Ticket 5: “The drive’s back, but it says access denied”

Find it. Share permissions (the front door):

Get-SmbShareAccess -Name Finance

NTFS permissions (the door to the room):

(Get-Acl C:\Shares\Finance).Access |
    Format-Table IdentityReference, FileSystemRights, AccessControlType

Fix it. In the video: folder โ†’ Properties โ†’ Security โ†’ Edit โ†’ Add Finance-Users โ†’ tick Modify. The PowerShell way (change TREVTECH to your domain’s NetBIOS name):

icacls C:\Shares\Finance /grant "TREVTECH\Finance-Users:(OI)(CI)M"

Fix the group, never the person. Don’t add one user straight onto a folder.

Ticket 6: “No printers are showing”

Find it.

Get-Printer
Get-Service Spooler | Select-Object Status, StartType

Fix it. In the video: services.msc โ†’ Print Spooler โ†’ Startup type Automatic โ†’ Apply โ†’ Start. The PowerShell way:

Set-Service Spooler -StartupType Automatic
Start-Service Spooler

Stopped can mean it crashed. Disabled means someone, or something, turned it off on purpose.

Ticket 7: “The internet works but nothing internal does”

Find it. Which DNS servers is this machine asking?

Get-DnsClientServerAddress

Prove it’s a split: the internet resolves, the domain doesn’t.

Resolve-DnsName dc01.trevtech.lab
Resolve-DnsName google.com

Fix it. In the video: ncpa.cpl โ†’ adapter โ†’ Properties โ†’ IPv4 โ†’ Obtain DNS server address automatically. The PowerShell way, if the adapter gets DNS from DHCP (check your adapter name with Get-NetAdapter):

Set-DnsClientServerAddress -InterfaceAlias Ethernet -ResetServerAddresses

Check it:

ipconfig /flushdns
Resolve-DnsName dc01.trevtech.lab

Ticket 8: “Trust relationship failed”

Sign in with a local admin account, then open Windows PowerShell 5.1 (the old blue one). This command doesn’t exist in PowerShell 7.

Find it:

Test-ComputerSecureChannel -Verbose

Fix it. No unjoin, no rejoin:

Test-ComputerSecureChannel -Repair -Credential (Get-Credential)

Enter a domain admin when it asks. It should come back True. Then sign out and sign in with the domain account.

Ticket 9: “Things keep asking me to sign in again”

Find it. Compare this machine’s clock with the DC (Kerberos allows 5 minutes of difference):

w32tm /stripchart /computer:DC01 /samples:3 /dataonly

Where is this machine getting its time from?

w32tm /query /status

Fix it. In the video: services.msc โ†’ Windows Time โ†’ Startup type Automatic โ†’ Apply โ†’ Start. The PowerShell way:

Set-Service w32time -StartupType Automatic
Start-Service w32time
w32tm /resync /force

Ticket 10: “My C drive is full”

Find it. How much space is left:

Get-PSDrive C

The ten biggest files under C:\Users (this can take a minute):

Get-ChildItem C:\Users -Recurse -File -ErrorAction SilentlyContinue |
    Sort-Object Length -Descending |
    Select-Object -First 10 FullName, @{n='GB';e={[math]::Round($_.Length/1GB,1)}}

Fix it. Only delete what the user has said can go, and note it in the ticket. In File Explorer, hold Shift + Delete, because a normal delete just moves the file to the Recycle Bin, which is still on C:. Remove-Item also skips the Recycle Bin:

Remove-Item -LiteralPath 'C:\Users\Public\Downloads\Old-PC-Backup (copy).vhdx'

Ticket 11: “Remote session won’t open”

Find it. Ping tells you almost nothing. Test the port the thing actually uses:

Test-NetConnection WS01 -Port 3389   # Remote Desktop
Test-NetConnection WS01 -Port 5985   # PowerShell remoting

If 5985 is open, go in through that door and look for block rules:

Invoke-Command -ComputerName WS01 {
    Get-NetFirewallRule -Direction Inbound -Action Block -Enabled True |
        Select-Object DisplayName }

Fix it:

Invoke-Command -ComputerName WS01 {
    Remove-NetFirewallRule -DisplayName 'Block RDP 3389' }

Run Test-NetConnection WS01 -Port 3389 again. It should now say True.

Ticket 12: “Someone has left, close their account off”

Before you touch anything, record their groups and paste them into the ticket:

Get-ADPrincipalGroupMembership tsmith | Select-Object Name

Fix it. In the video I did all of this in ADUC: Disable Account, Reset Password to something long and random, remove every group except Domain Users, put the ticket number in Description, and move the account into a Disabled Users OU. The PowerShell way (change the OU path to match your domain):

Disable-ADAccount -Identity tsmith
Set-ADUser tsmith -Description 'Leaver - ticket TT-4482'
Move-ADObject (Get-ADUser tsmith).DistinguishedName -TargetPath 'OU=Disabled Users,DC=trevtech,DC=lab'

Don’t delete the account. It’s the audit trail. Delete it and every folder it had rights on shows an orphaned SID instead of a name.

Quick reference

CommandWhat it tells you
Search-ADAccount -LockedOutEvery locked account in the domain
Get-WinEvent (ID 4740)Which device locked the account
Get-ADUser -Properties โ€ฆAn account’s details, plus any extras you ask for
Get-ADDefaultDomainPasswordPolicyThe domain’s password rules
Get-SmbMappingThis user’s mapped drives
gpresult /r /scope:userWhich GPOs applied, and which got filtered out
Get-ADGroupMemberWho’s in a group
Get-SmbShareAccessShare permissions
Get-AclNTFS permissions
Get-Printer / Get-ServicePrinters, and the service behind them
Get-DnsClientServerAddressWhich DNS servers this machine asks
Resolve-DnsNameAsks DNS for an address
Test-ComputerSecureChannelDoes this PC still trust the domain? (-Repair fixes it)
w32tm /stripchartHow far this clock is from the DC’s
Get-PSDrive CFree space on C:
Test-NetConnection -PortIs one specific port open?
Invoke-CommandRun a command on another machine
Get-ADPrincipalGroupMembershipEvery group a user is in

Want more?

Which ticket lands in your queue the most?

Tags: it help desk, service desk, active directory, powershell, homelab, it support

โ€” Trev | I broke it. Fixed it.

Scroll to Top