PowerShell
773 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
PowerShell Podcast in 1 day of Lunch with Claudio Silva
By: The Powershell Podcast

In this podcast, Claudio shares his journey as a DBA and the massive role of PowerShell in that journey. He shares advice for DBAs who are just getting started with PowerShell and automation as well as some of the easiest ways to start taking advantage of dbatools. We learned about different methods for learning and how the book Learn dbatools in a Month of Lunches can be a great fit for those trying to get started with dbatools.
Link
👍1
PowerCLI and PowerShell cheat sheet
By: Piotr Tarnawski

Here are commands, every vSphere admin should know: List of available interfaces and physical network cards (vmkernel + vmnic): Adding another interface (vmkernel to vMotion)...
Link
Schedule and Run PowerShell Scripts for Azure VMs using Azure Automation
By: Thomas Maurer

A while ago I wrote a blog post on how you can run a PowerShell or Bash script against multiple Azure Virtual Machines (VMs) using Run Command. In this blog post we are going to have a look on how you can schedule and run PowerShell and Bash scripts against Azure virtual machines (VMs) using .
Link
Easy way to send emails using Microsoft Graph API (Office 365) with PowerShell
By: Przemyslaw Klys

When you're using Office 365 and want to send an email, you have two choices SMTP or Microsoft Graph API, which is a 'new' kid on the block. For some time, I've used Microsoft Graph exclusively to send emails in favor of SMTP as it's much easier to manage and generally works over HTTPS.
Link
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 scripting 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 scripts 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 script 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