All Questions
Tagged with powershell strings
7 questions
2
votes
1
answer
128
views
Any issue with this as a password generator?
Was trying to create a password generator like the one Bitwarden has...
Curious if anyone sees any issues with this? (wordlist shortened for readability)
There perhaps there's a more efficient way I'...
3
votes
2
answers
723
views
Smartly joining possibly empty strings
I want to join two fragments into one string with a separator, but when one of the fragments is empty I only want one of them.
I have two implementations. The first is long and slightly repetitive, ...
0
votes
2
answers
2k
views
Search files content fast in powershell
I need to search a large repository of files for a specific resource, and return it only if it is used or not.
It is working as expected, but it is very time consuming. To search for 50 resource ...
2
votes
1
answer
177
views
Get Levenshtein Distance
Logic based of this site which had a VB example I used as a base.
...
9
votes
2
answers
994
views
Convert a password to a phonetic string for end users
As much as I hate it, sometimes providing passwords to people has to be done electronically. When I do that I try to remove any ambiguity that might be created by the font, user etc. and provide a ...
-2
votes
1
answer
466
views
Extracting first initial and last name [closed]
How can I do this better?
$a = "Tom Smith" ; $e = $a.substring(0,1)
$ee = ($a).split(" "); $y = $e + $ee[1]; $y
TSmith
6
votes
1
answer
1k
views
Convert list of parameters to a string that can be invoked
My PowerShell scripting skills are pretty poor, but I've managed to hobble together got this script:
...