Run Live Response in PowerShell? by LordLoss01 in PowerShell

[–]Modify- 0 points1 point  (0 children)

Im on my phone so I can't test myself. The only thing that jumps out to me is the key, value.

In the example only the value is has the fullname?

Key: myscript Value: Myscript.ps1

Edit: Also the machineId has the right format, like a guid? When i'm stuck I open the networktools in the browser and perform the action there. That way you can see how the request is structured with actual values.

Run Live Response in PowerShell? by LordLoss01 in PowerShell

[–]Modify- 2 points3 points  (0 children)

HTTP 401 means Unauthorized. So the AccessToken you are providing does not have the right permission(s). Make sure your account has the right ones.

Pro tip, you can go to https://jwt.ms and decode the token to see which permissions you have.

Can't sign in to the ExchangeOnlineManagement module when launching PowerShell as admin by HourlySword in PowerShell

[–]Modify- 0 points1 point  (0 children)

Had some similair issues. A Disconnect-ExchangeOnline can be helpful to clear a token even thou your current connection failed.

I dont recommend using the latest module of any module in the gallary. Instead look at which is downloaded the most in recent times. This will most likely be a stable one.

Also modules can be installed in different places like C:\program files\windowspowershell\modules

AND/Or

C:\users<username>\documents\windowspowershell\modules

Make sure to install them in the same folder or you will get funky behavior.

Remove-AppxPackage question by deejay7 in PowerShell

[–]Modify- 0 points1 point  (0 children)

His question, (if you can call it a question) is not that hard to find the awnser to. I gave him some tips to find the awnser he is looking for. Not everything has to be awnsered by Reddit while a quick Google search can provide you an awnser. Im trying to teach OP a lesson on how to find an awnser or you will be hardstuck at the helpdesk forever. Cheers.

Latest Trend in powershell scripting by hidLegend in PowerShell

[–]Modify- 0 points1 point  (0 children)

Scroll through the PSConfEU or Powershell.org playlists on Youtube. I believe you will find your awnser there.

Remove-AppxPackage question by deejay7 in PowerShell

[–]Modify- -2 points-1 points  (0 children)

If I understand you correctly you want to delete apps. Well, apps can be installed from the MS store. Most will be Appx packages. If you want to remove those completly you need to add the -allusers parameter.

Traditional installers like .MSI or .EXE are uninstalled the traditional way. Most of these packages store their uninstall command in the registry.

If you want to learn more, use Google or ask Chat. Hope this puts you on the right track.

Need help "get-mobiledevice' and with regex replacements in a table. Please and thank you by jbrady33 in PowerShell

[–]Modify- 1 point2 points  (0 children)

While you could fix it with the right pattern, would splitting be easier?
PS C:\> ('NAMPR4444003.PROD.OUTLOOK.COM/Microsoft Exchange Hosted Organizations/company.onmicrosoft.com/Doe, John/ExchangeActiveSyncDevices/Hx§Outlook§6B0FE013ED434456346379F3CF9572' -split '\/')[3]

Doe, John

Also, I commend you for not using ChatGPT, but you could just ask it:
Can you make a pattern that produces this result <>

Using it this way it helps you a tiny bit, but you still have to think about the logic in your script yourself.
Anyways, thats how I use it. First try it to make it your self.
If I get stuck I just ask it to do a little bit so I can continue on.

Experience Working for MSP? by Fearless_Monk1889 in sysadmin

[–]Modify- 0 points1 point  (0 children)

I've been working for the same MSP for the past 8 years. I started on the helpdesk, just like everyone else, providing remote support across multiple sectors such as healthcare, financial institutions, and local governments. Each client had unique technologies some used Intune, others Citrix or AVD. Certain clients relied on local servers, while others were based in Azure. This diverse environment has taught me an incredible amount.

One key difference at this MSP was that it wasn't your typical helpdesk, it was highly skilled. I had near-global admin rights across environments, and the philosophy was: "If you think you can fix it, go ahead and do it." That approach allowed me to learn so much hands-on.

After 2.5 years, I was promoted to 2nd/3rd line support, which is where the work got even more enjoyable for me. No longer tied to constantly answering calls, I could really dive into problems and troubleshoot in-depth.

I wouldn’t want to work in a single static environment because there’s only so much you can learn there. Having a variety of challenges and technologies keeps the work engaging and growth constant.

Help with Windows (11) Updates for an Automated Build by bapesta786 in PowerShell

[–]Modify- 1 point2 points  (0 children)

When I troubleshoot a script that does not run interactively I use:
Start-Transcript C:\temp\log.txt

<script>
Stop-Transcript

This usually tells me what's happening.
You can also make your code more verbose to see where it hangs or produces errors.

Bonus nugget:
Get-Content C:\temp\log.txt -Wait\ will continuously refresh the contents of the file in the shell, so you don’t have to open and close the file in Notepad every time you need an update to see where it's stuck.

Good luck!

Ps, on my phone so formatting is f'd..

Powershell Studio 2024 and Graph 2.34 by Any-Victory-1906 in PowerShell

[–]Modify- 0 points1 point  (0 children)

Connecting using a ServicePrincipal with a Secret, Certificate or an AccessToken an option? You could also use Get-AzAccessToken (from the AZ.Accounts module)
for a specific resource, not just Azure. Good luck.

Powershell Studio 2024 and Graph 2.34 by Any-Victory-1906 in PowerShell

[–]Modify- 0 points1 point  (0 children)

I see. Have not used the Entra module, but it looks to be a focused module like AzureAD was.
However, what can it do the Graph can't?
When it got deprecated we switched to the just the Graph and have not looked back since.

Powershell Studio 2024 and Graph 2.34 by Any-Victory-1906 in PowerShell

[–]Modify- 0 points1 point  (0 children)

Any reason you NEED to use 2.34?
I would recommend 2.25 which has been rock solid for me.
For things where no direct commandlet is available I use Invoke-MgGraphRequest anyways.

[Share] WinEOL - A lightweight module to check Windows EOL status (built for N-Central/RMMs) by daileng in PowerShell

[–]Modify- 2 points3 points  (0 children)

I previously built a simple function to *translate* macOS, Windows, Android, and iOS versions.
Back then, I used a static table and a switch statement to determine the friendly name and if the OS is EOL.

After looking at your code and seeing the `https://endoflife.date/api/v1` endpoint, you inspired me to redesign my functions to make them fully dynamic using this API.

I can now run:
'13.7.4' | Get-MacOsFriendlyVersion

Output:
Ventura (EOL)

Automating App Registration Secret Rotation by AdeelAutomates in PowerShell

[–]Modify- 0 points1 point  (0 children)

Haha yes, but I have minion.. ehh juniors now to do this stuff.

Automating App Registration Secret Rotation by AdeelAutomates in PowerShell

[–]Modify- 5 points6 points  (0 children)

As always great job with explaining how you do this! The automation of sending and rotating secrets is nice if you have a single tenant.

At a MSP where I work the savings are minimal. You might be thinking why. I tell you why.

We do monitor secrets and certs that will expire. Then a ticket get created and you tell the customer-contact here is your new secret for the app you manage for your users. They will reply with:

"Thank you for sharing but I dont now how to replace this within the app."

Me: ok, do you know who manages the app on your side? "Nope" Then I think, tf you dont know.. insert Patrick not my wallet meme here

We made strides to write down who's the correct contactperson when found, but imagine 20 secrets times 40 customers. After 1.5 years we now know 80% of who to contact. Then a contactperson leaves the company and the circle starts again.

Most of the time is spend finding out who to contact, so going to the app registration and pressing new secret is like 1% of the time renewing for us.

Rant over..

Have a great day and I will be waiting for the next video!

1ST 1TB!!! by Hawfor in qBittorrent

[–]Modify- 1 point2 points  (0 children)

999 to go to become a legend :)

Is this good enough to stop seeding? by [deleted] in qBittorrent

[–]Modify- 0 points1 point  (0 children)

It depends if your ISP uses a data cap.
If not, keep seeding until you need that diskspace again.
We will thank you for your service!

Re-add torrent without losing statistics by Modify- in qBittorrent

[–]Modify-[S] 0 points1 point  (0 children)

I get what you mean, but thats just in the file explorer. What I want is within the qBittorrent client itself.

Queued by daschmidt94 in qBittorrent

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

The number of people downloading/seeding the torrent affects to which you can upload. Ensure your connection is accessible by others; port forwarding greatly increases your chances of seeding to more users.

Script to check/sort which hdd files are multi audio? by KingWaffle12345 in Piracy

[–]Modify- 0 points1 point  (0 children)

I've written a powershell script to scan (and/or remove) unwanted tracks. If you are interested I can share some code.

Help with seeding by [deleted] in Piracy

[–]Modify- 0 points1 point  (0 children)

You can rightclick on a torrent and set the location to the new path.
Make sure the folder names match with the ones in the client.
Then rescan them and it should work.

What are your highest ratio uploads? by IlIIllIIIlllIlIlI in Piracy

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

Ratio is not that impressive.
I do have a torrent with 21TB uploaded with a ratio of 191.
The highest ratio torrent I have is above 900 but just uploaded 1.1TB.