#!/bin/powershell
On mac and linux I usually use "#!/bin/env pwsh". For the uninitiated "powershell" is for Windows PowerShell <= 5.1 while "pwsh" is for the cross-platform powershell (versions > 6)
November 10, 2025 at 2:31 PM
#powershell tip for those using Linux - you don't have to use test-path to verify a command is installed (e.g. test-path "/usr/bin/ffmpeg"), you can use get-command as well. Like: (get-command -name "ffmpeg") as long as it's in the default path list
October 11, 2025 at 7:54 PM
I've been automating my job with powershell very visibly for 8 years now and my boss still acts like I just pulled a toy out the fisher price bin.
October 11, 2025 at 12:46 PM
Bin au niveau pro, je fais :
-Admin réseau
-Admin de matos "exotiques" du style badgeuses, linutop, supervision etc
- gestion de projets
- développements (powershell, vba, python, PHP, js/typescript...)
- lowcode (powerapps, power automate)
- admin serveurs intranet
- assistance utilisateurs niv3
September 25, 2024 at 1:03 PM
Unlock the power of SharePoint with Pnp Powershell! Check out my new blog post for tips on restoring files from the recycle bin.
www.menzel.it/post/2023/10...
October 16, 2023 at 7:43 PM
"Why don't you just use xxd, why #​embed, the old tools are fine—"

Because I like not having a file that's 4-5x as large generated by some shitty makefile build system while also spending 2 seconds putting data into my executable instead of 70+ seconds, thanks!
October 9, 2023 at 3:25 AM
Am kommenden Montag/Dienstag findet die Spotlight-Konferenz (online) statt. Ich bin dabei mit einem 1-Tages-Workshop zur PowerShell mit dem Schwerpunkt Microsoft.Graph-API. Lust auf 1 ganzen Tag Druckbetankung?

www.rheinwerk-verlag.de/konferenzen/microsoft-365-fuer-admins
May 29, 2024 at 12:39 PM
I really do not like bash much... but I am very fond of these three lines (excluding the 1 line of whitespace!):

#!/bin/bash

pwsh -noprofile -File "$0.ps1"
exit $?

Which mean I can very easily setup git hooks in powershell 😁 (I don't need to customise anything, just copy and rename)
October 9, 2025 at 11:27 AM
Can you simplify by setting the shebang to "/bin/env pwsh" and putting your powershell code in the same file? I haven't used git hooks much.
October 9, 2025 at 2:50 PM
Powershell und Oracle Datenbank verstehen sich noch nicht. Soll aber möglich sein. Ich bin noch bei der Analyse 🧐
November 21, 2023 at 5:30 AM
A guy in my department consulted ChatGPT for a PowerShell script to get a list of AD objects with no changes in the past month, instead it provided one that would have dumped every object older than 30 days in the recycle bin. Good reminder to run third-party code past someone else before executing.
October 23, 2024 at 2:46 PM
完整指南:在台灣使用PyCharm找到終端機位置

在台灣的專案現場,熟悉 PyCharm 的終端機位置能提升效率。終端機常在底部工具視窗,亦可 View > Tool Windows > Terminal 開啟。快捷鍵:Windows/Linux Alt+F12、macOS Option+F12。若要自訂,Settings/Preferences > Tools > Terminal,改 Shell path 為 cmd.exe、PowerShell、WSL 或 /bin/bash。對使用 WSL 的開發者尤為方便。
完整指南:在台灣使用PyCharm找到終端機位置
在台灣的專案現場,熟悉 PyCharm 的終端機位置能提升效率。終端機常在底部工具視窗,亦可 View &gt; Tool Windows &gt; Terminal 開啟。快捷鍵:Windows/Linux Alt+F12、macOS Option+F12。若要自訂,Settings/Preferences &gt; Tools &gt; Terminal,改 Shell path 為 cmd.exe、PowerShell、WSL 或 /bin/bash。對使用 WSL 的開發者尤為方便。
www.isuperman.tw
August 13, 2025 at 5:06 AM
#MSXFAQ Benutzerzertifikate im AD www.msxfaq.de/signcrypt/us... - Ich bin ja kein Freund von SMIME innerhalb einer Firma sondern nutze #NoSpamProxy als S/MIME Gateway nach extern. Aber mit Copilot hatte ich in 1 Min ein PowerShell Skript zum Import von CER Dateien an die ADUser fertig.
May 23, 2025 at 7:36 AM
Let's start with setting up Neovim in Windows

github.com/neovim/neovi...

Use the winget command and not the choco command please (run powershell as admin)

Add the ~/Program Files/Neovim/bin to your user PATH in system settings

Open powershell, type nvim
April 4, 2025 at 11:42 PM
How would I go about creating a File Explorer context menu item that would run a Powershell script?

I want to be able to delete all bin and obj folder starting at a top level folder.
November 19, 2024 at 10:43 PM
Bin ja nicht so oberspitze beim Skripten, aber wenn ich mir PowerShell ansehe, will ich Bash zurück.

Will sagen: Fühle.
April 16, 2025 at 6:49 PM
As I prep for my first #PowerShell presentation, I found a thing or 2 to that would be helpful. So I made one of them, now 365AutomatedLab can easily remove all deleted #SharePoint sites from recycle bin. clatent.com/2024/01/365a...
365Automatedlab V2.4.0 Released!
Sorry I haven’t posted much, things have been a bit hectic, and I wish I could say a lot of behind the scene things for 365Automatedlab were because of it, but sadly it isn’t. Overall t…
clatent.com
January 20, 2024 at 2:29 PM
New Blog: Want to set an initial start menu for end users using Intune but without downloading start menu files? Then check this post that configures a start menu once with just one script and no other start2.bin downloads
#intune #automation #powershell
rozemuller.com/deploy-initi...
Deploy initial start menu during Intune enrollment without files
All about Identity, AVD, Automation, DevOps, Monitoring, Intune and Security
rozemuller.com
June 11, 2025 at 9:24 AM
curl -L github.com/PowerShell/P... -o /tmp/powershell.tar.gz
sudo mkdir -p /opt/microsoft/powershell/7
sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7
sudo chmod +x /opt/microsoft/powershell/7/pwsh
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
November 28, 2024 at 8:26 PM
Just had to do that this week in Powershell. Virus scanner or something kept blocking me from deleting bin and debug unless they were empty. I'll try this next time 👍
March 6, 2025 at 6:58 PM
Powershell c'est vraiment le /bin/sh du pauvre 🙄
March 12, 2025 at 4:03 PM
November 10, 2025 at 1:16 PM
I recently had to do something like this with PowerShell. Managed to reclaim so many GBs from old bin/obj directories
March 9, 2025 at 8:07 AM
Day 2 of December🎄, Did you know that to permanently remove a Microsoft 365 Group from your tenant that you have to wait 90 days or use #powershell for each group? I created a function that removes all 365 Groups in the recycle bin github.com/DevClate/365...
365AutomatedLab/Functions/Public/Remove-CT365AllDeletedM365Groups.ps1 at main · DevClate/365Automat...
This module will create a Microsoft 365 Test Environment - DevClate/365AutomatedLab
github.com
December 2, 2023 at 12:38 PM
Powershell Rat

#!/usr/bin/env python3'''This tool allows to exfiltrate data using screen capture of a user activity.Author: Viral Maniar Twitter: os, sysimport subprocessfrom subprocess import check_output def logo(): logo = ''' __ ___ // ) ___--"" "-. \ |,"( /`--"" `. _ _ _ _ _ _ _ _ _ _ _ _ _…
Powershell Rat
#!/usr/bin/env python3'''This tool allows to exfiltrate data using screen capture of a user activity.Author: Viral Maniar Twitter: os, sysimport subprocessfrom subprocess import check_output def logo(): logo = ''' __ ___ // ) ___--"" "-. \ |,"( /`--"" `. _ _ _ _ _ _ _ _ _ _ _ _ _&hellip;
cybershafarat.com
March 21, 2025 at 4:44 AM