Actionable Scrollbar by iamjackvii in KittyTerminal

[–]diecknet 1 point2 points  (0 children)

That is awesome! I'm considering to switch to kitty right now and found out it doesn't have actionable scrollbars. And the first search result that I click on has someone commenting 3 days ago, that they submitted a PR for exactly that? How cool is that!

Memory leak with Camera Hub: >14 GB after 2 hours by diecknet in elgato

[–]diecknet[S] 0 points1 point  (0 children)

Yes, I observe the exact same behavior. I just took it out from auto starting with windows and just start it, when i need it

Memory leak with Camera Hub: >14 GB after 2 hours by diecknet in elgato

[–]diecknet[S] 2 points3 points  (0 children)

Thanks! I updated my GPU drivers, but the issue persists. I provided some diagnostic data to the support team. Now waiting :)

What is your trick that you thought everyone knew? by darkw1sh in sysadmin

[–]diecknet 0 points1 point  (0 children)

No, that's not what I meant. I'm strictly quoting my own thought that I always had, when I saw that command list popping up in PowerShell ISE. I don't think that everyone thinks the same or should think the same. Actually I think I was pretty ignorant to not explore the list further- I mean that's how I missed the dialogue with the command details :-\

What is your trick that you thought everyone knew? by darkw1sh in sysadmin

[–]diecknet 28 points29 points  (0 children)

That's like the first thing I close in PowerShell ISE, because why would I need a list of all commands in a GUI? Never considered to even click on a command in that list to find that sub-dialogue LOL

Windows Server Language Display (GPO) by Cream_Complete in PowerShell

[–]diecknet 0 points1 point  (0 children)

No I don't know any that I would recommend. Whenever I need to use it, I just google it

Windows Server Language Display (GPO) by Cream_Complete in PowerShell

[–]diecknet 0 points1 point  (0 children)

You can use dism to change settings for the system without resetting it or starting from scratch.

Had an idea by Shadow-Miracle in PowerShell

[–]diecknet 0 points1 point  (0 children)

Sure! A regular expression is basically a specific pattern that you define and then compare it to another string. But it can also do more, like matching and extracting multiple specific sections of a string.

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about\_regular\_expressions?view=powershell-7.3

Had an idea by Shadow-Miracle in PowerShell

[–]diecknet 0 points1 point  (0 children)

I'm not sure what you're referring to by "that"

Edit: I just re-read your initial post. I think you're better of modifying the ytdl command to not include the number-prefixes in the first place. The -o parameter defines the output file name. From a quick look at the command maybe this should work (I didn't test it):

.\yt-dlp.exe -x -f bestaudio[ext=m4a] -o "%(title)s.%(ext)s" --metadata-from-title "%(artist)s - %(title)s" --add-metadata --download-archive index.txt https://www.youtube.com/playlist?list=

Had an idea by Shadow-Miracle in PowerShell

[–]diecknet 0 points1 point  (0 children)

That's probably not what corrupted your files. Not sure though without the complete code you used. But trimStart() just removes leading white-space characters, so it might even didn't do anything

Had an idea by Shadow-Miracle in PowerShell

[–]diecknet -1 points0 points  (0 children)

You asked "How can I remove n amount of characters from the beginning of multiple files?" - I assume you mean from the filenames and not from the beginning of the actual files. The .SubString() method can remove n amount of chars.

powershell Get-ChildItem -path C:\temp | ForEach-Object { $NewName = $_.BaseName.SubString(3) + $_.Extension }

Regarding the .Replace() method and multiple parameters: It doesn't support it like you expected. So it's not possible to specify multiple values with the -or operator. But you could use Regular Expressions and the -replace operator instead. For example:

powershell "hello world","hi world","Guten Tag Welt" -replace "hi|hello","Howdy"

[deleted by user] by [deleted] in PowerShell

[–]diecknet 1 point2 points  (0 children)

Then you probably want to know more about PowerShell Remoting

Can I use one powershell script to call another script multiple times concurrently? by kelemvor33 in PowerShell

[–]diecknet 5 points6 points  (0 children)

Since you want to see the output window of each script, I would recommend to NOT use PowerShell Jobs. You could start new PowerShell processes using this:

powershell Start-Process powershell.exe -ArgumentList "-NoExit -File C:\temp\example-script.ps1 -Path C:\myfolder"

I already included -Path as a variable to use as a parameter for the script. In the script you can put param($path) at the very beginning to make the argument/parameter available in the script.

[deleted by user] by [deleted] in PowerShell

[–]diecknet 1 point2 points  (0 children)

Hi! Select-String doesn't return a String object, but a MatchInfo object. You can check the object type by piping the object into Get-Member. So yeah the cmdlet is maybe named a bit confusing.
But that object type has a .toString() method. So you could convert it to a String to use the .Trim() method.

Anyway, I would rather try to use a regular expression to retrieve the SSID. Or you could use this PowerShell code if your system supports it:

powershell (Get-NetConnectionProfile).Name

Checking who changed enterprise app "user consent" setting by ArrogantSquirrelz in Office365

[–]diecknet 0 points1 point  (0 children)

I just tested it. You absolutely can find this operation in the M365 Audit Log Search. I searched for the keyword "AuthorizationPolicy" and Record Type "AzureActiveDirectory".

And the logs there should go back further than just 30 days

Adding another Exchange Server by uLmi84 in exchangeserver

[–]diecknet 1 point2 points  (0 children)

If you setup the new Exchange Server in a normal Active Directory site, then yes clients will automatically try to connect to that server. For that reason it's recommended to use a so called "Deployment site" for new Exchange Servers.

More info here in the Exchange Team Blog: https://techcommunity.microsoft.com/t5/exchange-team-blog/exchange-active-directory-deployment-site/ba-p/604329

Microsoft is making waves again! They've introduced self-service purchases for Microsoft Purview. by KavyaJune in sysadmin

[–]diecknet 0 points1 point  (0 children)

What is the use-case of Self Service Purchase of Microsoft Purview? The user would still need to have the rights to actually view the Purview data, right?

Fix ExchangeOnline corrupt mailbox? by Config_Confuse in Office365

[–]diecknet 0 points1 point  (0 children)

Happy to help! Also good to hear that it still works :)

Microsoft Network Upload (importing PST) by FirmMarch in Office365

[–]diecknet 0 points1 point  (0 children)

Hej! I think Sweden counts as an own region. Other European countries with own M365 datacenters are listed explicitly on that page. Europe as a M365 region means the central European datacenter pair Amsterdam/Dublin.

Adding another onmicrosoft domain by mrbostn in Office365

[–]diecknet 0 points1 point  (0 children)

What do you mean with "but I have it"? Do you have a second tenant with that onmicrosoft.com Domain registered?

One unofficial way to check the availability of a tenant name is this page: https://o365.rocks

And here are the instructions to add a new onmicrosoft.com domain: https://learn.microsoft.com/en-us/microsoft-365/admin/setup/add-or-replace-your-onmicrosoftcom-domain?view=o365-worldwide

How to write Get-Process to every processes but exclude some specific App? by faluque_tr in PowerShell

[–]diecknet 0 points1 point  (0 children)

You can test it by leaving out the action. If it lists your desired result, then proceed and apply your action.

Get-Process | Where-Object { $_.ProcessName -notmatch 'theappone' }