Showing results for March 2021 - PowerShell Community

Mar 24, 2021
2
0

Can I Enable the Caps Lock Key?

@DoctorDNS
@DoctorDNS

Q: I have a script where users enter some information. This information needs to be entered in all capital letters, so my instructions say, “Please make sure the Caps Lock key is on before entering the information.” They don’t always do that, however. Is there a way to turn the Caps Lock key on and off using a script? A: I don't know how to ...

Caps LockstringToUpper()
Mar 13, 2021
2
2

Determine if a folder exists

Fabian Baumanis
Fabian Baumanis

Q: Is there any way to determine whether or not a specific folder exists on a computer? A: There are loads of ways you can do this. The Test-Path Cmdlet The easiest way to do this is to use the cmdlet. It looks for a given path and returns if it exists, otherwise it returns . You could evaluate the result of the like in the code snippet below...

Scripting Guys UpdateFileTest-Path
Mar 5, 2021
5
1

Reading a text file bottom up

@DoctorDNS
@DoctorDNS

Q: I have a log file in which new data is appended to the end of the file. That means the most recent entries are at the end of the file. I’d like to be able to read the file starting with the last line and then ending with the first line, but I can’t figure out how to do that. A: There are loads of ways you can do this. A simple way is to use...

Scripting Guys UpdateArray
Mar 1, 2021
3
0

Lightning Fast and Easy Provisioning of Git with SSH Key Authentication on Windows

DarwinJS
DarwinJS

Maybe you have a team of Windows developers that are onboarding for your new Git server installation or maybe you've decided to drop http password authentication to your existing Git server (due to it's many problems). Your next steps may well be into a rough and rocky rabbit hole when you were holding out hope for simplicity (you know the kind you...

GitDevOps