PowerShell – Telegram
PowerShell
820 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
Today's cmdlet: Restart-Computer
Restarts the operating system on local and remote computers.

Example's Remarks:
• `Restart-Computer` uses the ComputerName parameter to specify the remote computer, Server01 .
• The WsmanAuthentication parameter specifies the authentication method as Kerberos .

#tutorial
How to Restore a Deleted Power Automate Flow via PowerShell, Power Automate and Power Apps – YouTube
By: Damien Bird

If you've ever deleted a flow and required assistance from Microsoft to restore it, you're in luck. Non solution aware flows can now be restored via PowerShell but in this video I demonstrate how you can turn a PowerShell noscript into an Azure RunBook, which in turn can be called from Power Automate and Power Apps.
Link
Adding color to bracket pairs
By: Mads Kristensen

When dealing with deeply nested brackets in Visual Studio, it can be hard to figure out which brackets match and which do not. For people with color blindness or other optic maladies, the problem can be even worse. By color-coding bracket pairs,
Link
Using the Get-TeamAllChannel Cmdlet
By: Tony Redmond

Version 4.6 of the Microsoft Teams PowerShell module includes the Get-TeamAllChannel cmdlet. As the name implies, the cmdlet returns details of all channels in a team (regular, private, and shared). To see what it does, we wrote a noscript to report all the channels in teams in a tenant.
Link
How do I Un-Join, Reboot then Join my Domain via Powershell?
By: u/mudderfudden

My question is, how can I convert these steps to Powershell? Once I enter the correct code and press Enter, will I be prompted for MyAdmin password? I saw a few examples but they don't seem to be quite what I'm looking for. I would be performing this on an individual station, therefore I don't think I would need to specify a computer name.
Link
Using Exchange Online PowerShell with Azure Automation Managed Identities
By: Tony Redmond

Microsoft doesn't support using an Azure Automation managed identity and Exchange Online PowerShell. However, that doesn't mean the two can't work together. In this article we explore how to use Exchange Online PowerShell with Azure Automation while waiting for Microsoft to deliver a full solution.
Link
Find all .iso files in VMware datastores with PowerCLI
By: u/Ottetal

Hello /r/Powershell. I've been lurking for some time now, and have decided to share some of my noscripts with this wonderful community.
Link
👍1
Today's cmdlet: Move-Item
Moves an item from one location to another.

Example's Remarks:
• The LiteralPath parameter is used instead of Path , because the original directory name includes left bracket and right bracket characters (`[` and `]`).
• The path is also enclosed in single quotation marks (`'`), so that the backtick symbol (`` ` ``) is not misinterpreted.

#tutorial
Automating Azure Abuse Research – Part 2
By: Andy Robbins

In this second and final part of this series, we are going to dive into the BloodHound Attack Research Kit (BARK). We will explain how the BloodHound Enterprise team uses BARK to perform so-called “continuous abuse primitive validation”. We will also explain how BARK can make your own Azure abuse research easier, faster, and more accurate.
Link
👍1
PowerShell 2022: State of the Art / Hack / Infection
By: Jason Fossen

Why has PowerShell become so popular for ransomware, hacking tools, cloud computing, and security automation? Isn't PowerShell just another command shell? No! Attend this talk by SANS Faculty Fellow Jason Fossen to see what PowerShell really is, how it's being used (and abused) today, and future trends.
Link
👍1
Power On HPE Server Using PowerShell
By: Jimmy Liew

You may need to download the HP iLO Cmdlets for Windows PowerShell (x64) from HPE support portal and install it on the server/machine you wish you execute the PowerShell command. COMMAND Below is the PowerShell command to power on/off the server.
Link
Today's cmdlet: Format-Table
Formats the output as a table.

Example's Remarks:
• The `Get-Process` cmdlet gets objects that represent each process on the computer and sends them down the pipeline to `Sort-Object`.
• The objects are sorted in the order of their BasePriority property.

#tutorial
PoshTaskbarItem: module to make simple UIs on the Windows taskbar
By: u/mdgrs-mei

Some months ago, I shared a noscript here that notifies you of unread Outlook emails by badge notifications on the taskbar. I got some positive comments and decided to make a module for the taskbar handling part so that anyone can quickly make their tools.
Link
Best practice to use function keyword in single purpose noscript?
By: u/jeffwcpa

When creating a single purpose PS1 noscript, what is the benefit of using to the function keyword as opposed to simply naming the PS1 noscript verb-noun without using the function keyword?
Link
👎1
Today's cmdlet: ConvertTo-Json
Converts an object to a JSON-formatted string.

Example's Remarks:
• This example uses the `ConvertTo-Json` cmdlet to convert a System.DateTime object from the `Get-Date` cmdlet to a JSON-formatted string.
• The command uses the `Select-Object` cmdlet to get all (` `) of the properties of the DateTime * object.
• The output shows the JSON string that `ConvertTo-Json` returned.

#tutorial
Set-WallpaperClock 1.3.1
By: Psychosapien

A PS Module that sets your desktop background to show the current time.
Link
Today's cmdlet: Compress-Archive
Creates a compressed archive, or zipped file, from specified files and directories.

Example's Remarks:
• The command updates `Draft.Zip` with newer versions of existing files in the `C:\Reference` directory and its subdirectories.
• And, new files that were added to `C:\Reference` or its subdirectories are included in the updated `Draft.Zip` archive.

#tutorial