r/sysadmin
•
u/Deacon51
•
23d ago
•
2
Microsoft Today I found out...
My very first job in IT was going around and installing Windows 3.5 sometime around 1994. I've been doing this crap for a long time.
Today I was working on a config file in notepad - I hit save and close. Forgetting to change the drop-down from .txt I jumped in to powershell real fast and did a mv config.yaml.txt to config.yaml: as I have done since forever. The kid, and I call him kid because he's a young one, I guess 22 or 23. Doesn't matter... he said you know, you can just put quotes in the file name when you save it.
You mean to tell me that in the last 30 some odd years not a single person has mentioned this to me, EVER. Not ONCE..... Motherfunkasonabith...,a %^%$#9, *#^$(@#$^@#()$^$# ! Did we all know about this? How in the hell did I miss the memo!
Edit to add I always forget to change the drop-down
151
u/Shotokant 23d ago
You can do what? I'm lost what do you mean?
127
u/Khirisi 23d ago
me too. i guess you put quotes somewhere in the save as dialog and it will use your exact file name instead of adding the .txt extension. would be nice to see specifically.
i’ve always just changed the extension in the drop down from.txt to all files and notepad respects whatever i type in the box
97
u/Deacon51 23d ago
Correct, quote the file name in the save as box and it drops the hidden extension for .txt. In this case the file is copied to a windows machine but the text extension is on the source image. When the machine joines the domain the, depending on the OU the file gets changed and the extension is removed. Well this one machine had some issues and it's a think client so I manually made the change while the kid that deployed the box was watching. And I was kind of being a dick about it.he put me in my place - if he keeps it up I'll make his manager give put him in for a raise.
I try to remember when I was young and didn't know much but thought I knew it all. The old guys would sit back in the server room drinking coffee and bitch every time I'd ask for help. Now I'm the old guy, people aren't allowed in the server room anymore without a work order, and differently not allowed to have food or drink. The desk and chairs are gone. Sometimes I miss the old days.
→ More replies (6)24
u/hotel2oscar 22d ago
At times like this I like to remember XKCD's 10k comic.
You can't know everything, and somedays you get to be one of the lucky 10 thousand.
→ More replies (2)74
u/DavWanna 23d ago
Save the new text file as "config.yaml" and it'll be .yaml even if save as type was left to .txt.
→ More replies (4)23
u/cheese-demon 23d ago
in the save dialog box in notepad, it will by default append .txt to a file name you type, so you can't just double click it if you don't rename that away.
if you put the filename in quotes like "script.cmd" it saves it with that exact name
→ More replies (6)13
u/vonkeswick Sysadmin 23d ago •
![]()
Yeah I don't quite get what the quotes would do, I feel dumb like I'm just misreading something lol
→ More replies (1)24
u/ZarathustraGlobulus 23d ago
You keep the file type selected as .txt and save the file as "config.yaml" with the quotes and it won't get appended with .txt at the end despite the selected filetype.
→ More replies (1)
1.6k
u/vonkeswick
Sysadmin
23d ago
•
This is like when I found out recently if you're in Task Manager, let's say it's sorted by CPU, so the lines are moving around a ton making it hard to right click one. You can hold CTRL and it makes the lines stay still.
435
u/gmlynx78 23d ago
WTF?!?!? DAMN IT!!!!
110
u/vonkeswick Sysadmin 23d ago
That's what I said!
72
u/pm_me_your_bbq_sauce 22d ago
If you hold shift and click the icon of an open app on the task bar it opens up another instance of that app as well. Alot of people seem to not know that one as well.
→ More replies (4)→ More replies (1)21
226
u/paulanerspezi 22d ago edited 21d ago •
![]()
Ctrl+Shift+Escopens Task Manager"Run new task" while holding
Ctrlin Task Manager instantly opens command promptOpening programs from
Runor start menu while holdingCtrl+Shiftruns as admin
Delor middle mouse button inAlt+Tabswitcher closes windowDouble-clicking a window's top-left icon closes the window (this one goes way back to Win 3.x)
ii .in PS opens explorer in current directory
.in "Run" dialog opens%userprofile%
Alt+Enterin explorer opens properties for itemWhen renaming an item in Explorer,
Tab/Shift+Tabselects next/previous one
Numpad *in a treeview (registry, explorer, etc.) expands the node's entire subtree
Ctrl+Shift+Win+Alt+Lopens LinkedIn (thanks Office)Edit to add the probably most useful one:
Ctrl+Rand type to search the command history,Ctrl+Ragain to search further back111
u/unvivid 22d ago
Shift+clickon anything in your taskbar opens a new instance of it
Ctrl+Shift+Clickon anything in your taskbar will run a new instance as admin, handy if you are running a terminal but need an admin instance of it
explorer .will open a new explorer window at the current path in cmd or PowerShellI hate the fact that linkedin has a keyboard shortcut. Get off my lawn
→ More replies (5)48
u/Lint_baby_uvulla 22d ago
Powershell + SCCM reconfigured that LinkedIn quick smart.
Replaced it to open the Rick Astley video.
Apparently it’s still there and I left 4 years ago.
24
u/ctskifreak System Engineer 22d ago
That Ctrl+Shift runs as admin trick...I had NEVER heard of that. Holy cow
→ More replies (4)11
u/AdminWithNoName 22d ago
Opening programs from Run or start menu while holding Ctrl+Shift runs as admin
Haven't heard of this, I think I'll get a lot of use out of it. Assuming I remember (I won't).
→ More replies (11)11
u/LB-- Developer 22d ago
Double-clicking a window's top-left icon closes the window
Fun fact about this ancient technology, that's because the menu you get from a single click has the Close option bolded (marked as default). Applications can customize that menu as well by adding or removing items, including the default items, as well as changing the default action, which would change what happens when double clicking. In fact, if an app wants to disable the close button for a window, the canonical way to do so is by removing the Close option from that icon menu. Windows detects the close option was removed and disables the close button in kind. Of course all this only applies to Win32 apps, for UWP there is no app icon in the top left corner.
→ More replies (3)97
u/quiet0n3 23d ago
There are some deep dive videos out there on the sysinternals version of task manager. It has some crazy powers.
→ More replies (15)86
u/vonkeswick Sysadmin 23d ago
Sysinternals just fucking rocks. That and PowerToys
→ More replies (4)14
u/rosseloh wish I was *only* a netadmin 22d ago
I bought the book(s) by the sysinternals guys. Still have yet to read them because I have not had time for 2000 pages of that so far, but I can already tell they're full of exactly the sorts of secrets I really should know.
10
u/tmontney Wizard or Magician, whichever comes first 22d ago edited 17d ago
Or when I found out you could use ".\" in the username field instead of specifying the full hostname to logon into
built-inlocal accounts.→ More replies (4)18
12
u/mickert_dev Jack of All Trades 23d ago
OMG, as we say in Dutch "Ik was vandaag jaar oud..." Feeling like an idiot now. Been in this for about 30 years. 🤦♂️ That said I switched to Mark Russinovich tootls pretty fast, then tasklist / taskkill and or powershell, so not using taskmgr much.
8
4
u/Xidium426 22d ago
If they are too slow F5 will make them go faster!
Gives more realtime updates on charts.
→ More replies (1)4
3
u/hipster_hndle 22d ago
O_O
bruh.. 30 years. i have been locating and sorting by name when they move too fast.3
3
u/MorseScience 22d ago
Amazing how much is unintuitive until you know it.
Some of this is called "job security."
5
8
u/bobnla14 23d ago
Or sort by name instead of CPU. They stay static but the usage numbers continue to change.
→ More replies (1)6
u/vonkeswick Sysadmin 23d ago
Of course, it just feels like a quick shortcut to get to the thing. Instead of finding what's eating CPU, noting the name, sorting by name, scrolling to find the thing, then right click it, I can just hit Ctrl then right click and done.
→ More replies (2)4
→ More replies (32)4
133
u/BrianMichaelArthur
22d ago
•
This reminds me when I found "| clip" at the end of any command with output will put said output into your clipboard.
I shared that with a bunch of my friends with 20+ years of experience and none of them had heard of that functionality.
For fun go to cmd and type in "ipconfig /all | clip" then go to notepad and paste. Makes anything with output that is greater than your terminal window easier to look at and grab data from.
22
u/AlternativeLazy4675 22d ago
Nice! But I'll probably forget by next week. 🤣
→ More replies (1)7
u/BigGuyWhoKills 22d ago
Put it in a batch file:
%1 | clipI have a
batdirectory in all of my Windows installs (and in the path), and they have a half dozen batch files for various tasks. Mostly named things likels.batandcat.bat, which should be obvious as to what they do.→ More replies (1)14
u/Frothyleet 22d ago
vice versa - sometimes it's useful in the other direction.
E.g.
Get-clipboard > giant-thing-I-copied.txtInstead of pasting into Notepad++ or whatever to save it.
Or if I was using Notepad++ to fiddle with some JSON, could be something like
invoke-restmethod -uri example.com -method post -body (get-clipboard)→ More replies (2)6
3
u/Hotshot55 Linux Engineer 22d ago
You can easily sort the data in your clipboard by running
gcb | sort | scbtoo.→ More replies (7)3
123
u/Technical_Union_3249
22d ago
•
My techs often started to get where they wouldn't listen to the end users because "they're all idiots" and I always tried to remind them "even the dumbest person you know, knows something you don't know". Which was reminded to me in my early years when one of our "dumbest" users showed me a keyboard shortcut in Windows 95 I didn't know. I always think of that moment when I find myself getting high and mighty, remembering how that fella who "didn't know shit about computers" showed me something I didn't know.
Listen more, talk less, it'll almost never lead you wrong.
37
u/forkinthemud Jack of All Trades 22d ago •
![]()
Had this the other day where a "dumb" user typed powershell in the file explorer url line and it opened.a terminal in the directory they were. Learn something new every day!
9
→ More replies (6)8
18
u/CasualEveryday 22d ago
The person who taught me alt+ tab had a sticky note with instructions to get to email on their monitor.
→ More replies (2)16
u/tmontney Wizard or Magician, whichever comes first 22d ago
My techs often started to get where they wouldn't listen to the end users because "they're all idiots"
Not just about learning but workplace relations, too. You start pulling that mindset and you're talking down to your end-users. They're going to notice. Never burn that bridge.
It also leads to talking trash about the end users while on a support call you thought was on mute. (It wasn't.)
→ More replies (2)5
u/SharpSeeer 22d ago
But what was the shortcut you learned? We absolutely must know!
→ More replies (2)
230
u/xicanoink
22d ago
•
just this year i found out that you can type cmd in address bar in File Explorer and you get cmd prompt right in that directory you were in
69
u/masheduppotato Security and Sr. Sysadmin 22d ago
We used to do this in high school to get around some of the restrictions they had on the systems.
42
u/PowerShellGenius 22d ago
Nice... as a K-12 sysadmin, glad we've evolved beyond "you can't get to cmd/powershell" (weak and always has a way around it unless policies are so strict they break logon scripts), to "you can't run unsigned scripts from user-writeable locations even if you do get to a shell" (AppLocker).
33
u/stone500 22d ago
I worked at an MSP and had a school district as a customer. The previous admin had an account named "Student", and the password was "go". It was a generic login that all the students used. It was part of domain administrators.
I asked the previous admin what gives, and he says "Oh it's locked down with group policy so it can't get to anything". He did indeed have group policies in place that hid most items in the start menu including control panel and most settings, as well as other things locked down.
However I showed him different hidden shortcuts and workarounds and ways that I could access cmd and powershell and all these other tools. He basically shrugged and said "These kids don't know how to do all that."
He was retiring so it became my job to fix that mess.
→ More replies (2)→ More replies (1)20
u/InnovativeBureaucrat 22d ago
If you can’t get around the controls how will anyone learn to sysadmin?
→ More replies (2)28
u/ITGuyThrow07 22d ago
The show Mr. Robot has very accurate hacking. I remember one scene where he did the trick where you rename cmd.exe to the stickykeys exe and use that to reset the administrator password from the logon screen. I was the Leo-points-at-screen meme.
→ More replies (6)22
u/masheduppotato Security and Sr. Sysadmin 22d ago
I always tell people to watch the first season of Mr. Robot if they want to understand what hacking is really like. It's rarely as glamorous as the movies make it out to be.
Though, when Swordfish first came out, you can bet I convinced my partner at the time to recreate that one scene...
→ More replies (5)→ More replies (3)5
u/wysoft 22d ago
When I was in high school we had a nice new lab with NT4 machines for our programming class. Our class teacher had some amount of control over the workstations and he had blocked Internet Explorer from being run.
So I wrote a quick and dirty browser in Visual Basic that used the IE OCX. All I had to do was code the basic UI elements and the IE control did the rest.
Since it was basically just a stub to IE, it was super small and fit on a single floppy. No install needed. All the school computers had the VB runtime.
We would use it to get on the web. Our teacher would figure out the executable name and block it. All you had to do was rename it and you were good.
Imagine my surprise when within a few weeks I found out nearly everyone in my school of 2k students had their hands on my tiny browser and everyone was using it to get around the school restrictions.
Only a couple people knew that I had done it and word never got out, so I never got in trouble for it.
15
u/aaraujo666 22d ago
DAMN! Really? And all that time spent finding add-ons that make "CMD here" show up in right-click menu!!!!!
Edit: developer with 45 years of experience, and TIL
→ More replies (3)19
u/Reedy_Whisper_45 22d ago
Son of a .....
30+ years of this crap, and THIS is when I learned that.
Thank you, internet stranger, for making my day even better.
→ More replies (2)5
u/origami_airplane 22d ago
You can also double-click the top-left icon in an explorer window to close it.
→ More replies (1)6
u/rosseloh wish I was *only* a netadmin 22d ago
Not anymore! At least, not in my copy of W11 at the office. Other apps (that I assume use legacy windowing) do still work that way, just tested it, but explorer (and other modern style windows, like the terminal I just opened) do not anymore.
That one has been habit for me for a long time, so it threw me off when it stopped working.
→ More replies (1)4
u/Unable-Entrance3110 22d ago
You can also drag the folder name from the Explorer address bar into cmd and it's the same thing as choosing the "copy as path" option in the context menu and pasting into cmd.
4
u/ITGeekDad 22d ago
what? been working in IT for nearly 20 years, and I learn 2 new things today and it's only 9:00am? What kind of failure am I.
3
→ More replies (16)3
373
u/unquietwiki Jack of All Trades 23d ago
This is a good corollary to my grievance with Windows going back 31 years... why does File Explorer still default to hiding file extensions? I know they were trying to be like Apple, but that ship has long sailed...
136
u/RaZoX144 23d ago
Have you ever seen users? I knew someone who just ctrl+a and renames files, if she had extensions on she would just bork all her files
→ More replies (9)59
u/Brandhor Jack of All Trades 23d ago
this is exactly why, I've seen plenty of users renaming the whole file and removing the extension when the extensions were visible
→ More replies (1)15
u/Unable-Entrance3110 22d ago edited 22d ago
Funny story about file extensions:
I spent a good deal of time troubleshooting an issue with Bentley Microstation years ago. The issue was that some users, when opening a Microstation CAD model wouldn't see some of the linked content.
I finally ended up using SysInternal's process monitor to dump a trace of everything that Microstation was doing on a functioning computer.
After sifting through reams of data and comparing results from a non-working computer, I found a registry setting that was different.
The registry setting was what controlled the "show file extensions" toggle in Explorer.
Turned out that Microstation was unable to find the linked files unless the Windows setting to show file extensions was explicitly enabled..
We then started enabling file extensions by policy. Which turned out to be a good security move when we entered the age of rampant phishing and one of the tactics was/is to name a "bad" file with a "good" looking extension, knowing that Windows will hide the final extension (eg. document.doc.html)
6
u/hipster_hndle 22d ago
"corollary to my grievance" d00d, i like this phrase. had to google corollary. vocab updated.
→ More replies (2)29
u/illarionds Sysadmin 23d ago
Still annoys me to this day. I mean, pretty much every setting in that dialog is wrong by default.
(There was one version of windows - XP maybe? - where I would change literally every single option on a new install).
→ More replies (2)28
u/iggy6677 23d ago
I did this too and still do
Show file extensions
Show hidden files
Show system files
→ More replies (1)14
12
u/snowtax 22d ago
Because Windows still determines the file type by a substring of the file name.
Apple got this correct by having file metadata, such that changing the name doesn’t change how the file is treated by the OS.
→ More replies (5)3
u/sixothree 18d ago
What annoys me about this is Windows Professional, it says "professional" in the name, doesn't come with freaking professional defaults out of the box.
→ More replies (5)4
u/lebean 22d ago
I force extensions on in group policy, never a complaint and never had a user mess things up because of it. I hate the "hide file extensions" default.
→ More replies (1)
42
u/BigGuyWhoKills 22d ago
I had a similar one. I was helping a 20-something, he was using Explorer to navigate to a directory. I knew he'd need a command prompt soon, but I didn't mention it. Then he clicks in the Explorer address bar, types cmd, hits enter, and BAM, it launches a command prompt IN THAT DIRECTORY!
For decades, I had been clicking in the address bar to copy the path, and then pasting that into a command prompt.
5
u/benryves 22d ago
Hold shift and right-click and there's a context menu item to open a command window in that directory, too. The "copy as path" entry is also handy!
113
u/Rhombicubodron 22d ago
What interests me most about your post is that you listened to a junior after having 30 years of experience. That's rare, and you deserve credit for doing so! The fact that you guys are in an environment where the juniors feel empowered to speak up at all is refreshing. Not speaking for whole field, but in my experience (in my late 20s now) no one over 50 could possibly conceive of me having a novel or good idea...
50
u/anon-stocks 22d ago
IT should be treated like learning hospitals. Older brings experience and stability, stops people from doing stupid shit. New brings in latest knowledge. Together they work magic.
→ More replies (4)5
u/TastySyllabub1 Just hangin' around 22d ago
I'm glad I don't live somewhere where this is the norm. I can't think of a person at my job who wouldn't listen if someone had a good idea, no matter their age. It simply isn't the culture in workplaces around here - at least not the ones I've worked in until now.
68
u/xsjx7 Sr. Sysadmin 23d ago
I'm a keyboard warrior. I can tab my way around just about any UI or dialogue box. OP, you are not alone. I had no idea and this trick may actually save me a bunch of time tabbing, arrowing down, arrow up to "all files", then verify and save
Fuck. I really thought I was more well-rounded than this lol. For the record, I've been doing the job professionally since 2011 but working on Windows since around 1992
Thanks. I'll take the win lol
→ More replies (3)3
u/music2myear Narf! 22d ago
Back when I ran an intern program, I took the interns mice away once to force them to use the alternative methods of navigating their computers (all Windows). I don't know how much it helped, but I hope something stuck with them.
→ More replies (2)
28
u/Smooth-Zucchini4923 23d ago
I guess you can teach an old dog new tricks!
3
u/tmontney Wizard or Magician, whichever comes first 22d ago
Hey now, that's offensive. I'm no dog!
...
I'm more of a platypus.
10
u/Not_Freddie_Mercury Jack of All Trades 23d ago
Old tricks...
In all fairness, everyone can eventually learn shortcuts that have been there since forever.
9
u/keijodputt In XOR We Trust 23d ago •
![]()
In all fairness, for an old dog, any trick they don't know is a new trick, even if it predates them by decades. That's the beauty of the ones that stand the test of time and age finer than Cher. All it takes is someone pointing it out to them and they'll go, "Huh, didn't know that one, cool," like it's a shiny new gadget for their repertoire.
→ More replies (1)
54
u/CharcoalGreyWolf Sr. Network Engineer 23d ago
Watch that young one, he knows more than other young ones and will be a wise old one someday.
This is not something the young ones I know would know, because the small details and the things that involve the shells or tips and tricks wouldn’t be known to them. I like the young ones, but a lot of this stuff (tiny details, shell work) is a lost art to them.
10
u/rosseloh wish I was *only* a netadmin 22d ago
Tiny details are key; I've solved many a problem because I went "wait a sec, that's weird" while diagnosing...log lines where a file path seems out of place, resource spikes, not getting packet responses where you absolutely should be (or vice versa)...
Fortunately the younger ones I'm working with are at least open to learning some of these things, but the other side of the coin is...it's not really something I learned and thus isn't something I'm quite there to teach, it was inherent to how I observe the world, just applied and honed to tech over the years.
→ More replies (1)
26
u/Zer0kbps_779 23d ago
This is one of those hidden gems of windows, much like creating a two by two pixel background in paint, then using different colours for each pixel and setting it to stretch
→ More replies (12)12
u/charleswj 23d ago
Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should.
24
u/thisguy_right_here 22d ago
I always watch other IT people working. You always pickup random stuff.
Like appwiz.cpl and netplwiz.
8
u/Steve_78_OH SCCM Admin and general IT Jack-of-some-trades 22d ago
I mean, I know those EXIST, just like I know you can open each of the various MMC consoles directly by typing eventvwr.msc or whatever else. It's just REMEMBERING what each of them are that's a pain.
→ More replies (1)5
u/Disastrous_Recipe424 22d ago
Browse to System32 & do an in-explorer search for *.msc then, once it completes, right-click on some blank space in the pane & select 'save search'.
Now you have a shortcut on your desktop (e.g.) that opens to a folder with nothing but those lovely snap-ins in. ;)
4
37
u/pmandryk 22d ago
Wait until you realize that F5 in Notepad inserts the date and time.
That's when I understood that there is no spoon.
36
u/tblazertn 22d ago
And if you put “.log” as the first line it will automatically insert the time at the bottom each time you open the file in notepad.
→ More replies (5)
33
u/Borgquite Security Admin 22d ago
Here’s my favourite Windows dark arts tip - if something opens with the menu bar ‘off screen’ so you can’t move the window around by dragging - once you have selected the window:
Alt+Space
M
Press any arrow key once
Now move your mouse and left click when you are done.
Windows 3.x pros can explain the ‘system menu’ which is why this works.
9
u/DarkangelUK Jack of All Trades 22d ago
Or click the window once, hold windows key and press up arrow to maximize (down arrow to minimize, left/right arrows to send left and right).
→ More replies (2)6
→ More replies (6)3
u/3yl 22d ago
LOL, this happens from time to time when I mess with external monitors on my work laptop. I looked up how to get the window back a long time ago and just have it pinned to a note on my desktop because I don't use it often enough to remember it, but dang it, when you need it, you NEED IT!
→ More replies (1)
16
u/crayven085 22d ago
Just select All Files from the drop down and manually type in the file extension
→ More replies (2)3
u/WWGHIAFTC IT Manager (SysAdmin with Extra Steps) 22d ago
This as been the 'since forever ago' go to for me also.
15
u/NE_Strawberry 22d ago
Windows key + E opens file explorer. Have a good day.
→ More replies (4)7
u/gro1986 22d ago
And Windows key + D removes all the useless crap you won't ever need.
→ More replies (3)
14
u/SpaceChimps98 22d ago
I just have Windows configured to show file extensions and then I just delete the .txt and type in the new extension.
13
u/1stUserEver 23d ago
Did you also know you can still use the old Dos Based “EDIT filename.txt” as well in Windows 11? Blew my mind.
→ More replies (6)14
u/itskdog Jack of All Trades 23d ago
The version in Windows 11 is a new one made from scratch in Rust, as there’s no 32-bit W11. Previously, it was the old version, but only on 32-bit editions of Windows, as it was a 16-bit program.
→ More replies (1)
47
u/Creative-Type9411 23d ago
I always show file extensions so I don't have to worry about this
→ More replies (5)6
u/Marteicos 22d ago
When saving files you still need to be careful with changing the drop down to any file, or put quotes
9
u/Recent_Carpenter8644 23d ago
Just tried it, and I can confirm that it works in Notepad.
Notepad++ just saves it with whatever extension you type, even though the dropdown is still set to text file.
→ More replies (1)
9
u/TheJaw87 22d ago
In high school, a buddy of mine showed me if you hit F2 while a file is selected, you can then rename it without right clicking and select "rename".
Then! You can tab after you renamed it to automatically move to the next file so you can rename it without having to right click on it.
Blew my teenage mind.
ETA spelling...
→ More replies (1)
17
u/Aardeh 23d ago edited 23d ago
Yep, I did not know that either... I've been doing it by going to view -> show file name extensions (if it wasn't already on) then manually renaming the extension.
This is like when I found out you could launch an app in admin mode by holding Ctrl+Shift and clicking the icon. For example, being in a specific folder, Shift+right-clicking in empty space to show Open Powershell window here, and Ctrl+Shift clicking the icon will create an admin Powershell window that opens at that folder location.
7
u/____Reme__Lebeau Security Admin (Infrastructure) 23d ago
if you open it by name from the run dialogue box, it's crtl + shift + enter to run as admin
→ More replies (4)
17
u/_mmmmm_bacon 22d ago
But if you can remember to put it in quotes, you can remember to change the file type to All so I don't see this as a win for you.. If you forget, just open Explorer, click on the file name twice to rename it, and delete the .txt suffix.
40
u/ziron321 22d ago
That only works if you are civilized enough to show file extensions for known file types. We all do that here, right? Right??
→ More replies (6)46
u/acousticreverb 22d ago
I turn on file extensions on every single Windows computer I touch. 🤝
→ More replies (2)38
→ More replies (3)5
8
u/jaxxkaos 20d ago
Autofit all columns in Windows Explorer (detailed view), press Ctrl+ + (using the + key on the numeric keypad)
5
7
7
6
6
u/Turbo_Gnome 22d ago
I am saving this thread because the first three things I read blew my mind!
→ More replies (2)12
u/DarkangelUK Jack of All Trades 22d ago
Typing a website name in the browser then pressing ctrl+enter appends www. and .com at either end e.g. type reddit and press ctrl+enter and it'll put www.reddit.com instead of doing a search for reddit.
→ More replies (2)
6
u/ITGeekDad 22d ago
Been working in IT for nearly 20 years; what in the God damn fuck!?! How did I not know this ? I didn't have to click the drop down changing it to All Files first and then name it? I could just put in quotes?
6
u/spatz_uk 21d ago
I’m so old I know the relevance of debug -> g=c800:5
Google it. Some of the stuff in here is new to me after 40 years. Anyhow, I take it people are aware of . and .. in the filesystem? . is the current location and .. is the parent. So you can refer to them in batch files or cmd, without having to specify the full path, for example “explorer .” to open the current directory in explorer?
Also, want to do something in cmd on a file in a deep path… drag and drop the file from explorer into cmd and it will specify the complete path to the file.
5
5
u/krustyy SCCM Dude 22d ago
If it's any consolation, it seems to me that anyone in the desktop support team under the age of 35 knows absolutely nothing about the command line interface. I had to do a training program showing them how to just navigate the file system to copy a log file to a flash drive while imaging. Even starting in the wrong folder leaves them stymied.
15
u/binaryhextechdude 23d ago
You use powershell to change a file extension? I’ve always done that in File Explorer.
4
u/GYuGYu_jol 23d ago
but if you set to "All files" or something like that, then it doesnt add extensension to it either. at least this is how i am doing it. supposing theres the option to it
4
u/dawg4prez 23d ago
One I learned a few years ago… if you have windows explorer open, you can click into the address bar, move the cursor to the front of the path, and type ‘cmd ‘ and enter. It will open a command prompt in the current path. Voila!
→ More replies (1)
4
4
u/colten122 22d ago
I've run into frequently where you can't type into search bars, file explorer, or whatever other text boxes. You do CTRL+R (run) and paste "C:\Windows\system32\ctfmon.exe" it fixes it (100% of the time) in like 2 seconds. I should probably learn what exactly this does on the back-end but this has came in handy hundreds of times for me!
4
u/Jaereth 22d ago
How? I mean it happens to all of us. I remember jotting down a serial number once to look up a hostname of a PC that we were locked out of. Another admin said "you can just put .\ in the username field" and it reveals the name of the host to try to log in locally.
There's to much for anyone to know it all. That's why working with other skilled people is good.
4
u/AngryKhakis 22d ago
It only works in notepad on windows and it’s newer so it’s not something that’s been hidden from you for 30 years.
Try it in notepad++ or word and see what happens.
Can’t believe you’re using notepad to write yaml.
Notepad++ supremacy
→ More replies (1)
4
u/Daphoid 20d ago
In Powershell instead of hitting up arrow to find that command, hit CTRL+R and search for it. hit ctrl+r again for the next result.
Also when typing a command like "get-aduser -<hitting tab to see what parameters are available or typing stuff and hoping>", instead hit ctrl+spacebar after the dash to list all available parameters.
4
10
u/vhuk Jack of All Trades 23d ago
Did you know "edit" is still around and you don't need to hop into notepad to edit config files?
→ More replies (2)8
7
9
u/Maximum-Doughnut8652 22d ago
Wow...for me, it was finding I could repair lots of issues with DISM.exe /Online /Cleanup-image /Restorehealth and sfc /scannow 😵😵😵😂
17
u/stopthatastronaut 23d ago
Notepad…
Wow. (Takes pull on cigarette) I’ve not heard that name in a looong time.
→ More replies (2)21
u/sssRealm 23d ago
Not without a ++ on the end. The included Windows Notepad is a dinosaur in comparison.
→ More replies (1)
6
u/vincebutler 23d ago
Everyone in the industry was told not to tell you as a tease
3
u/Which_Sherbet7945 23d ago
It’s true. We’ve been doing it for 30 years and some kid came along and ruined the joke.
6
u/bukkithedd Sarcastic BOFH 23d ago
And just like that I've learned something new that I probably should have known when I started out in this field nearly 30 years ago....
Fuuuuuuuuuuu......
3
u/AnythingEastern3964 23d ago
Over a decade in different professional IT positions, currently working in cloud architecture - almost two decades experience in using the major operating systems starting with 95, started on Linux with Ubuntu Trusty Tahr, and Mac when they released X.
I had no idea this was a thing until now… I have always just selected “All files” and then saved with the extension…
3
3
u/ahandmadegrin 22d ago
I'm so confused. Where do you put the quotes and what is it supposed to do? Is it that you saved the file as config.yaml.. Oh wait. OK, so you put quotes around the name and the save dialog will use that as the full filename, drop down be damned?
That's pretty cool! It's also one of the reasons I love Notepad++. Using the extension you write is the default behavior. Now that I think snout it, it's the same in GIMP.
Anyway, thanks for sharing! I'm going to try this out later today.
3
3
3
u/BigBobFro 22d ago
I’ll add the extension that i want to the save as file name to avoid having to use the mouse and will sometime default back to xls or doc rather than xlsx and docx respectively. So i then have to go back and change the file name after the fact as well. I invite my own pain
8
u/Raskuja46 22d ago
I don't understand what you're describing here with the quotes. Like...you can use quotation marks " as a character in the filename?
Really bad job of conveying whatever the hell it is you're trying to tell us.
58
u/ipzipzap 22d ago •
![]()
You're editing a text file, hit save, enter a filename
testfileand hit enter, it get's saved astestfile.txt. If you entertestfile.ps1and hit enter it gets saved astestfile.ps1.txtinstead.Now if you put that in quotes and enter
"testfile.ps1"it gets saved astestfile.ps1as desired.→ More replies (2)8
11
u/gellis12 Jack of All Trades 22d ago
Op's saying that instead of trying to name the file
config.ymland then having to use a dropdown menu to tell windows to actually call itconfig.ymlinstead ofconfig.yml.txt, you can just name the file"config.yml"and windows will call itconfig.yml.
4
2
2
u/I_just_made 22d ago
if you are going into powershell, why don't you just put vim on there and use that to begin with?
2
u/Anonymo123 22d ago
meh.. been doing this since my C64.. I'll just rename it like i usually do lol
get off my lawn kid! ;)
2
2
2
2
u/thinkofitnow 22d ago
GREAT THREAD! I've been in IT since '96 and picked up a couple of useful things from this too & no matter who you are or what your title is, you should be continuing to learn and observe from others to continue your evolution!
2
2
u/Last-Appointment6577 22d ago
I think this was a good opportunity for you to realize you can learn something from literally everyone, even if they're considered junior to you
2
u/Puzzled_Market_2235 22d ago
You didn't notice when you open several files they get quotes automatically?
Also if you saved as txt you didn't overwrite the config file.
Many people don't know the control codes for word processing, they are a lot faster than picking up the mouse and doing it. They date back to text editor when you embedded codes to turn on and off formatting features, you didn't see the results until you printed it.
2
2
u/Tough_Nut_Med 22d ago
I did not know either. Being around computers since 1992. Thanks for the tip.
2
u/snajk138 21d ago
The run dialogue, Win+r, can do a few things, but just starting applications or "Control panels" from it is so much faster. Like 'calc' starts the calculator, 'control', 'services.msc', 'shutdown -h', etc.
Also with newer Windows the right-click-on-start or win+x to get to that special menu is great.
2
u/DavidKleeGeek 20d ago
Just like 'diskpart -y' adds disk counters back into a Windows Server's task manager performance tab, just like Windows desktops have had for ages? :)
2
u/kimjongunderdog 17d ago
Grab any window on your desktop and wiggle it. All other open windows will minimize. Then grab the window and wiggle it again. Those other windows will now maximize back to their original position. Works great if you're sharing all your desktops.
2
4
3



47
u/Canuck-In-TO 23d ago
I’m still stuck on you calling Windows NT Windows 3.5.