December 3, 2026
Your Windows PC Knows More About Itself Than You Do. Ask It.
A 10-minute experiment with Command Prompt that turns your own computer into a cybersecurity classroom.

By CipherNode
8 min read
You've probably been using Windows for years.
You know how to install applications, connect to Wi-Fi, create folders, browse the internet, and occasionally restart your computer when nothing else works.
But could you answer these questions without opening a single settings menu?
- Who exactly are you on your computer?a
- What files is Windows hiding from its normal directory listings?
- What is your computer's identity?
- How does your computer communicate with the outside world?
As a software developer, I've spent considerable time working with Linux terminals, managing servers, deploying applications, and troubleshooting databases.
However, learning cybersecurity is encouraging me to ask different questions about the systems I use.
Today, I want to explore Windows a little differently.
Think of this article as a small investigation where your computer holds the clues, and your terminal helps you discover them.
Seven clues. One computer. No hacking tools.
Ready?
Your investigation begins here
Press Windows + R on your keyboard.
Type:
cmd
Press Enter.
Congratulations. You've just opened your investigation workspace.
It might not look as exciting as the computer screens in Hollywood hacking movies, but it is considerably more useful.
For this experiment, you don't need administrator privileges or additional software.
Just use your own computer or an authorized learning environment.
Clue #1: Who does Windows think you are?
Imagine walking into an office where nobody introduces themselves.
Before doing anything else, you would probably want to know who you are dealing with.
A computer investigation begins with a similar question.
Run:
whoamiwhoamiYour output might look something like this:
desktop-lab\alexdesktop-lab\alexWait. Why are there two names?
The first part identifies the account's domain or local computer, while the second part identifies the user account.
In this illustrative example:
desktop-labis the local computer name.alexis the username.
But knowing your username doesn't necessarily tell you everything about your permissions.
Try another command:
whoami /groupswhoami /groupsYou might see several security groups associated with your current account.
Don't worry if some of the names look unfamiliar.
Windows uses groups to help manage access and permissions.
As a backend developer, I can relate this to something familiar: authentication and authorization.
Knowing who a user is and knowing what that user is allowed to do are two different things.
The same principle applies here.
Your first challenge:
Can you identify your username and spot any group names you recognize?
Don't share your actual account information publicly.
Clue discovered: Your current identity.
Clue #2: Where exactly are you?
When I work with Linux, one of the simplest commands I use is pwd.
It answers a surprisingly important question: where am I?
Windows Command Prompt answers it with:
cdcdExample output:
C:\Users\AlexC:\Users\AlexThink of this as your current position on a map.
Except instead of roads and buildings, your computer has drives, directories, and files.
Now run:
dirdirYou may recognize some familiar names:
Desktop
Documents
Downloads
PicturesDesktop
Documents
Downloads
PicturesThese are the same folders you normally see in File Explorer.
The difference is that you are now exploring them directly through the terminal.
Try moving into Documents:
cd Documentscd DocumentsThen return to the previous directory:
cd ..cd ..If you don't have a Documents folder at your current location, choose another directory displayed by dir.
The two dots represent the parent directory.
Nothing particularly mysterious yet.
But what if Windows isn't showing you everything in its normal directory listing?
Clue discovered: Your current location.
Clue #3: The things hiding in plain sight
This is where things become more interesting.
Run:
cd /d "%USERPROFILE%"cd /d "%USERPROFILE%"Followed by:
dirdirTake a quick look at the output.
Now run:
dir /adir /aNotice anything different?
You may see additional files and directories that weren't included in the first listing.
One common example is:
AppDataAppDataThis directory contains application-related information such as settings, caches, preferences, and other local data.
Some applications store an impressive amount of information there.
To display entries marked as hidden, try:
dir /a:hdir /a:hHere, /a works with file attributes, and h selects hidden entries.
Before you start imagining secret files and mysterious hackers, remember something important:
Hidden does not mean malicious.
Operating systems and legitimate applications hide files for many ordinary reasons.
It also doesn't mean that those files are encrypted or protected from everyone.
A hidden file is simply a file with a particular attribute. Access permissions are a separate matter.
Your next challenge:
Compare the output of dir and dir /a.
Can you find something that appears only in the second listing?
You have just explored one small aspect of filesystem visibility.
Clue discovered: Information that ordinary directory listings don't show.
Clue #4: A tiny treasure hunt
Reading commands is useful.
Actually trying them is better.
So instead of searching for an existing private file, we're going to create our own small treasure hunt.
Run the following commands one at a time:
cd /d "%TEMP%"
mkdir CuriousTerminalLab
cd CuriousTerminalLab
mkdir clues
mkdir clues\archivecd /d "%TEMP%"
mkdir CuriousTerminalLab
cd CuriousTerminalLab
mkdir clues
mkdir clues\archiveYou've just created a small practice directory inside your temporary files directory.
Now create a harmless text file:
echo Curiosity is the first tool. > clues\archive\secret-note.txtecho Curiosity is the first tool. > clues\archive\secret-note.txtThe echo command produces text.
The > symbol redirects that text into a file, creating it or overwriting an existing file at that path.
We are deliberately working inside a practice directory.
If you already have a folder named CuriousTerminalLab containing important files, choose a different folder name before continuing.
Now imagine you've forgotten where the note is stored.
You remember only its name.
How would you find it?
Run:
dir /s /b secret-note.txtdir /s /b secret-note.txtTwo options make this command useful:
/s searches through subdirectories.
/b displays a simplified list of matching paths.
Windows should return the location of your note.
Now read it:
type clues\archive\secret-note.txttype clues\archive\secret-note.txtExpected output:
Curiosity is the first tool.Curiosity is the first tool.There it is.
You have created, located, and read a file without using File Explorer or Notepad.
From a cybersecurity perspective, the interesting part isn't the note itself.
It's the ability to locate relevant information without manually opening every directory.
The same fundamental skill can help when working with application logs, configuration files, and troubleshooting information.
Clue discovered: A file whose location you didn't need to search for manually.
Clue #5: Every computer has a name
Your computer has a name, even if you don't remember giving it one.
Ask Windows:
hostnamehostnameAn example result:
DESKTOP-LABDESKTOP-LABYour result will probably look different.
Why would anyone care about a computer name?
Imagine receiving an error report from an organization with hundreds of computers.
Knowing that something went wrong is useful.
Knowing which computer experienced the problem is even more useful.
Hostnames provide a starting point for identifying machines during troubleshooting, network administration, and security investigations.
They are not guaranteed to be unique everywhere, so additional information may be needed.
Try running these two commands together:
whoami
hostnamewhoami
hostnameYou now have two pieces of information:
The account you're working with and the computer you're working on.
Clue discovered: Your computer's name.
Clue #6: Your computer's introduction letter
What if Windows could introduce itself?
Something like:
Hello, this is my operating system.
This is my system architecture.
Here is some information about my hardware and configuration.
There is a command for that:
systeminfosysteminfoGive it a moment to collect the information.
You'll probably receive considerably more information than you expected.
For now, focus on these three fields:
OS Name
OS Version
System TypeOS Name
OS Version
System TypeThe operating system name tells you which Windows edition is installed.
The version provides operating system and build information.
The system type describes the computer's architecture.
You may also find memory information, boot time, network adapters, and other configuration details.
As someone who works with backend applications, this reminds me of checking server specifications before investigating an application problem.
You need to understand the environment before you can understand what is happening inside it.
The same applies to cybersecurity.
However, knowing an operating system's version doesn't automatically tell you whether it is vulnerable.
Security updates, system configuration, installed software, and other protections also matter.
Your challenge:
Can you identify your Windows edition and system architecture without opening the Settings application?
Clue discovered: Your operating system's identity.
Clue #7: How does your computer reach the outside world?
Every time you open a website, call an API, or watch a video, your computer relies on networking.
But what does that network configuration actually look like?
Run:
ipconfigipconfigFind your active Wi-Fi or Ethernet adapter.
You may see something similar to this illustrative example:
IPv4 Address: 192.168.1.25
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1IPv4 Address: 192.168.1.25
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1These three lines tell an interesting story.
Imagine your local network as a neighbourhood.
IP address โ Your house address
An address assigned to your network interface. It helps identify that interface within the relevant network.
Subnet mask โ Your neighbourhood boundary
It helps determine which IPv4 addresses belong to the same local subnet.
Default gateway โ Your route out of the neighbourhood
When your computer needs to reach a destination outside its local subnet, it generally sends the traffic through a gateway.
On a typical home network, that gateway is often your router.
It's a simplified analogy, but it makes these networking concepts easier to picture.
Want to see additional details?
Try:
ipconfig /allipconfig /allThis can reveal additional network configuration, including DNS servers, DHCP information, and physical addresses associated with network adapters.
Don't worry about understanding every field immediately.
Networking is a large subject on its own.
For today, finding and understanding your local IP address and default gateway is a useful starting point.
Clue discovered: How your computer is configured to communicate with its network.
Congratulations. You've completed your first Windows investigation.
Look at what you have discovered.
Your username.
Your current directory.
Hidden files and folders.
The location and contents of a text file.
Your computer's name.
Your operating system details.
Your network configuration.
And apart from creating a harmless practice folder and text file, you haven't changed any system settings.
You haven't installed a specialized hacking tool.
You've simply asked your computer questions.
This isn't a complete security assessment, and it doesn't tell us whether a computer has been compromised.
But it demonstrates something important: useful security-related information is already available through ordinary operating system commands.
The curious terminal cheat sheet
Save these commands for your next investigation.
Who am I?
whoami
Where am I?
cd
What is around me?
dir
What is hidden from the default listing?
dir /a
Where is a particular file?
dir /s /b filename.txt
What does the file contain?
type filename.txt
What is my computer called?
hostname
What operating system am I using?
systeminfo
How am I connected to the network?
ipconfig
You can also explore the built-in help for many Windows commands.
For example:
dir /?dir /?You don't need to memorize everything.
Understanding which question to ask is a much better starting point.
Something I'm beginning to understand about cybersecurity
As a developer, I've usually approached computers with a particular objective.
Build something. Fix something. Deploy something. Make something faster.
Learning cybersecurity is introducing me to another way of thinking.
Observe first.
Ask questions.
Understand what is normal.
Then investigate what doesn't make sense.
It's tempting to rush towards advanced tools and complicated techniques. But I want to understand what is happening underneath those tools first.
Today's experiment was deliberately simple.
Next, I want to explore what happens behind the Windows desktop.
Which processes are running?
Which applications are listening for network connections?
Which services start automatically?
And how can we distinguish ordinary system activity from something that deserves a closer look?
Those are questions for another investigation.
Until then, here's a small challenge for you.
Open Command Prompt and try at least three commands from this article.
Which one showed you something about your computer that you didn't know before?
I'd love to hear what you discovered.
I'm a software developer exploring cybersecurity, ethical hacking, and the systems behind the software we build.
If you're curious about the same things, follow along. There's plenty more to explore.
Further reading:
Microsoft's official Windows command reference:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands