Why does my Documents look so different between Windows 10 and PowerShell?

%3CLINGO-SUB%20id%3D%22lingo-sub-2652197%22%20slang%3D%22en-US%22%3EWhy%20does%20my%20Documents%20look%20so%20different%20between%20Windows%2010%20and%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2652197%22%20slang%3D%22en-US%22%3E%3CP%3EOver%20the%20weekend%20I%20retired%20an%20old%20desktop%20PC%2C%20with%20a%20new%20one.%20So%2C%20I've%20had%20this%20working%20for%20about%2048%20years.%20I'm%20running%20Windows%2010%20Professional%2C%20in%20preparation%20to%20moving%20to%20Windows%2011%20Pro.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wrote%20a%20couple%20PowerShell%20script%20to%20handle%20a%20couple%20of%20administrative%20tasks%20I%20do.%20I%20saved%20them%20in%20a%20folder%20under%20Documents.%20I%20first%20created%20a%20Git%20repo%20in%20Azure%20DevOps%20Services%2C%20then%20cloned%20the%20repo%20to%20my%20machine%2C%20by%20bringing%20up%20Windows%20Terminal%2C%20then%20performing%20a%20git%20clone%20command.%20Stuff%20I've%20got%20several%20times%20before.%20When%20I%20bring%20up%20Windows%20Terminal%2C%20I%20have%20it%20start%20with%20PowerShell%205.1.%20It%20comes%20up%20in%20C%3A%5CUsers%5Crodf%20folder.%20I%20cd%20to%20Documents.%20This%20is%20what%20Windows%20Terminal%20sees%20when%20I'm%20in%20C%3A%5CUsers%5Crodf%5CDocuments%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-08-16%20063854.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F303538iB1950851D3216F25%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-08-16%20063854.png%22%20alt%3D%22Screenshot%202021-08-16%20063854.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3EHowever%2C%20when%20I'm%20in%20Windows%2010%20File%20Explorer%2C%20this%20is%20a%20portion%20of%20what%20it%20sees%20for%20my%20Documents%20folder%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-08-16%20064033.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F303539i84CA63B4F389BE83%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-08-16%20064033.png%22%20alt%3D%22Screenshot%202021-08-16%20064033.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3EI%20don't%20understand%20the%20discrepancy.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2652623%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20does%20my%20Documents%20look%20so%20different%20between%20Windows%2010%20and%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2652623%22%20slang%3D%22en-US%22%3EThis%20is%20not%20expected%20behavior.%3CBR%20%2F%3ETry%20navigate%20to%20Users%20and%20see%20if%20you%20have%20any%20other%20users%20and%20navigate%20to%20other%20users.%3CBR%20%2F%3EYou%20may%20right%20click%20on%20one%20of%20these%20folders%20and%20go%20to%20properties%20and%20see%20where%20it%20is%20located%3F%3CBR%20%2F%3EI%20believe%20you%20are%20navigating%20to%20different%20folder.%3CBR%20%2F%3EThere%20is%20one%20other%20possibility%2C%20I%20saw%20you%20have%20Cloud%20icons%20and%20it%20means%2C%20these%20files%20are%20on%20the%20Cloud%20only%20and%20not%20downloaded%20in%20your%20PC%20and%20they%20are%20only%20in%20OneDrive%20and%20you%20don't%20have%20offline%20access.%3CBR%20%2F%3ETake%20a%20look%20at%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fwhat-do-the-onedrive-icons-mean-11143026-8000-44f8-aaa9-67c985aa49b3%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fwhat-do-the-onedrive-icons-mean-11143026-8000-44f8-aaa9-67c985aa49b3%3C%2FA%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Over the weekend I retired an old desktop PC, with a new one. So, I've had this working for about 48 years. I'm running Windows 10 Professional, in preparation to moving to Windows 11 Pro. 

 

I wrote a couple PowerShell script to handle a couple of administrative tasks I do. I saved them in a folder under Documents. I first created a Git repo in Azure DevOps Services, then cloned the repo to my machine, by bringing up Windows Terminal, then performing a git clone command. Stuff I've got several times before. When I bring up Windows Terminal, I have it start with PowerShell 5.1. It comes up in C:\Users\rodf folder. I cd to Documents. This is what Windows Terminal sees when I'm in C:\Users\rodf\Documents:

 

Screenshot 2021-08-16 063854.png

However, when I'm in Windows 10 File Explorer, this is a portion of what it sees for my Documents folder:

 

Screenshot 2021-08-16 064033.png

I don't understand the discrepancy.

3 Replies
This is not expected behavior.
Try navigate to Users and see if you have any other users and navigate to other users.
You may right click on one of these folders and go to properties and see where it is located?
I believe you are navigating to different folder.
There is one other possibility, I saw you have Cloud icons and it means, these files are on the Cloud only and not downloaded in your PC and they are only in OneDrive and you don't have offline access.
Take a look at:
https://support.microsoft.com/en-us/office/what-do-the-onedrive-icons-mean-11143026-8000-44f8-aaa9-6...

@Reza_Ameri 

 

Thank you, for your response. I'll answer your question as best I can.

I brought up File Explorer, then went to C:\Users folder. It shows me this:

 

Screenshot 2021-08-16 174030.png

The three folder rodf, rodat and broke, make sense and are consistent to me. The first one is my account, the one I'm using at the moment while writing this reply. RodAt is associated with a different Microsoft account that I have. The third, Broke, is my youngest daughter's Microsoft account.

 

I've just right-mouse button clicked on rodf. Surprisingly it reports that there's 34.7 GB of data (size on disk is 9.15 GB - I don't get why there's a discrepancy, but moving on), that there's 59,397 files in 10,383 folders.

 

I got into the rodf folder, which shows this:

 

Screenshot 2021-08-16 175137.png

But going into the Documents folderI still only see the three folders I reported earlier today, IISExpress, My Web Sites and My%20PowerShell%20Scripts.

 

Now to add to the confusion, if I right-mouse button click on the Documents under Quick Access in File Explorer, it reports it being located at C:\Users\rodf\OneDrive

 

Huh?

So what if you navigate to C:\Users\rodf\OneDrive, are you seeing them there?
Have you check the link about OneDrive which I shared earlier.
I believe these files are in the OneDrive cloud and you should create them offline, take a look at:
https://support.microsoft.com/en-us/office/save-disk-space-with-onedrive-files-on-demand-for-windows...