PowerShell – Telegram
PowerShell
819 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
Today's cmdlet ‣ ConvertFrom-Markdown
Convert the contents of a string or a file to a MarkdownInfo object.

Example's Remarks:
• The MarkdownInfo object is returned.
• The Tokens property has the AST of the converted content of the `README.md` file.
• The Html property has the HTML converted content of the `README.md` file.

#tutorial
👍2
How to run Docker commands in CMD/PowerShell from Docker using WSL2
By: Federico Navarrete

In the last tutorial, we learned how to create Docker images without Docker Desktop in Windows. However, this can break our daily duties, especially if we have automated anything. This can be fixed in three steps:
Link
Running commands in the shell
By: Sean Wheeler

PowerShell is a command-line shell and a noscripting language used for automation. Similar to other shells, like bash on Linux or the Windows Command Shell (cmd.exe), PowerShell lets you to run any command available on your system, not just PowerShell commands.
Link
👍1
Jeffrey Snover is leaving Microsoft
By: Jeffrey Snover

I'm sure like many of you, I own a big part of my career to this man. He certainly will be missed, and I wish him the best of luck!
Link
Today's cmdlet ‣ Set-ItemProperty
Creates or changes the value of a property of an item.

Example's Remarks:
• The first command creates the registry entry.
• It uses Path to specify the path of the `HKLM:` drive and the `Software\MyCompany` key.
• The command uses Name to specify the entry name and Value to specify a value.

#tutorial
👍2
Create a report on local DNS lookups using PowerShell
By: Harm Veenstra

When troubleshooting a system, you sometimes need to know what DNS lookups are being done. This will give you a good insight into traffic from the systems to the local network or internet. You can do this with DNS auditing on your Windows server or in your local Pihole server, but that's not always available
Link
PSTemperature
By: Dave Carroll

A simple PowerShell binary module used for conversion between Celsius, Fahrenheit, and Kelvin temperatures. Rankine temperature scale support is provided via PowerShell 7 Experimental Features. This module can be used as an example of a PowerShell binary/C# module and for PowerShell 7 Experimental Features.
Link
Today's cmdlet ‣ ConvertFrom-Json
Converts a JSON-formatted string to a custom object or a hash table.

Example's Remarks:
• You can also use the `Invoke-RestMethod` cmdlet, which automatically converts JSON content to objects.

#tutorial
👍2
AzBobbyTables
By: Emanuel Palm

A module that wraps the Azure Data Tables SDK. +1 just for the name alone!
Link
👍2
PowerShell for DBAs
By: Andreas Jordan

I don't want to build a product or module. I want to provide a proof of concept, a tutorial, a code example, maybe a guide or a source of ideas for your own implementation. This is about using publicly available software (like database clients or NuGet packages) and a few lines of PowerShell code to show database administrators how to work with PowerShell.
Link
Create a multiple-choice quiz using PowerShell
By: Harm Veenstra

Tomorrow I'm taking the AZ-800 (Administering Windows Server Hybrid Core Infrastructure) exam and I wanted to create a simple test exam quiz for myself with multiple-choice questions. This blog post will show you how to do that using an Excel file with questions and A, B, C, and D answers including the correct answer to check on.
Link
👍2
How to implement your PowerShell 7 Scripts in Task Scheduler
By: Patrick Gruenauer

So you're already working with the latest PowerShell version and wondering how to automate your PowerShell 7 noscripts with the task scheduler? Yes? Ok, then stay tuned I will show you
Link
Today's cmdlet ‣ New-PSDrive
Creates temporary and persistent drives that are associated with a location in an item data store.

Example's Remarks:
• To ensure that the drive is available outside of the noscript to must use the Scope parameter to create the drive in the Global scope.

#tutorial
👍1
Exchange PowerShell without basic auth?
By: Alexander Holmeset

On October 1st Microsoft states in this doc that they are starting to randomly disable Basic Auth in tenants. They even started to disable it last year for tenants that had not used it. It's a good thing they are taking this step to make our tenants more secure. The big questions though is,
Link
Today's tip ‣ Lexical structure: Real literals

”A real literal may contain a numeric-multiplier (kb, mb, gb, tb, pb).”

#tip
👍1
Today's cmdlet ‣ Push-Location
Adds the current location to the top of a location stack.

Example's Remarks:
• The first command pushes the current location onto a new stack named Stack2, and then changes the current location to the home directory, represented in the command by the tilde symbol (`~`), which when used on a FileSystem provider drives is equivalent to `$HOME` and `$env:USERPROFILE`.

#tutorial
👍1
Azure Bastion: Upgrade Basic SKU to Standard SKU with Azure PowerShell
By: wmatthyssen

This blog post will show you how you can upgrade Azure Bastion from the Basic SKU to the Standard SKU (Tier) via PowerShell
Link
Powershell: Citrix Hypervisor Count Function
By: Alain Assaf

Contents Contents Scenario Citrix Hypervisor and PowerShell? Conculsion Learning More Value for Value Scenario I've been hesitant to dive into Citrix Hypervisor PowerShell cmdlets, but there's no rational reason to not do it. Citrix continues to make great strides in expanding and updating PowerShell for its hypervisor, PVS, and XenDesktop.
Link
Upgrade of Teams Policy Cmdlets Enables Use in Azure Automation
By: Tony Redmond

This article explains how to make Teams policy assignments using an Azure Automation runbook and some of the modernized cmdlets available in the Teams PowerShell module. Not everything worked as smoothly as we'd like, but like most PowerShell scenarios, there's usually a workaround available to get the job done. It just needs to be found.
Link
👍1
Today's cmdlet ‣ Get-WinEvent
Gets events from event logs and event tracing log files on local and remote computers.

Example's Remarks:
• The `Get-WinEvent` cmdlet uses the ListLog parameter to specify the Setup log.
• The object is sent down the pipeline to the `Format-List` cmdlet.
• `Format-List` uses the Property parameter with the asterisk (`*`) wildcard to display each property.

#tutorial
👍3