PowerShell – Telegram
PowerShell
820 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
How to Use Microsoft PowerShell Core on Linux Virtual Machines
By: Brien Posey

PowerShell was designed as a Windows management tool, but Microsoft has created cross-platform versions of PowerShell. That way, you can use a standard command line interface to manage a variety of system types. This article explains how to install PowerShell on a Linux virtual machine as well as the differences between PowerShell and PowerShell Core.
Link
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-Date` cmdlet uses the AddDays method to get a date that is seven days before the current date.
• The date object is stored in the `$StartTime` variable.

#tutorial
A WPF Countdown Timer
By: Jeffery Hicks

Last year I released a PowerShell module called PSClock. The module contains a command to create a transparent WPF form displaying a clock. Shortly after, someone posted a request for a countdown timer. Not an unreasonable request and one I finally got around to implementing.
Link
🤮1
Enable Microsoft Sentinel Analytics Rules at Scale
By: Charbel Nemnom

Microsoft Sentinel comes with analytics rule built-in templates that you can turn into active rules by effectively creating a copy of them - that's what happens when you create a rule from a template.
Link
Audit Events in Your Azure Subnoscription with PowerShell
By: Trevor Jones

Update! v.1.1 released fixing a bug where the most recent events were not being returned (2022-09-13) A quick post - I just published a new noscript for retrieving activity log events for an Azure subnoscription as the current options for searching and retrieving events didn't satisfy me.
Link
Today's cmdlet ‣ Compress-Archive
Creates a compressed archive, or zipped file, from specified files and directories.

Example's Remarks:
• The Path parameter accepts specific file names and file names with wildcards, `*.vsd`.
• The Path uses a comma-separated list to get files from different directories.
• The compression level is Fastest to reduce processing time.
• The DestinationPath parameter specifies the location for the `Draft.zip` file.
• The `Draft.zip` file contains `Draftdoc.docx` and all the files with a `.vsd` extension.

#tutorial
PowerShell Secrets Management – Part 4: Backup/Export/Migrate Secrets
By: Roman Stadlmair

The PowerShell Secrets Management Module became one of my must-haves on every computer i use with PowerShell. I already wrote a couple of posts about it. First Look into the beta module 1-Introduction 2-Installation and first steps 3-Use secrets in noscripts Recently i tested a Macbooc Air M1 and wanted to use the secrets i had on my main Windows machine. The approac was to simply generate a CSV-file from the secrets and import it on the Mac. As a reminder, lets summarize what Secrets Managemt Architecture is about. Secrets are stored in Vaults Secrets may occur in the form
Link
HTML Reporting with Powershell Part 1 Creating the Basic Report
By: Chasse TAC

In tis video, we look at how to create an html report in powershell. This will shows the basics of how to create a multiple fragment body and why it's needed for more complex reports.
Link
👍1
Updating and setting primary attributes in SuccessFactors with PowerShell
By: Darren Robinson

Approximately five years ago I rolled through a number of Identity and Access lifecycle management projects that used SAP SuccessFactors as the source of authority for user data. It isn't uncommon to use a HRM solution to source identity data, but it is never a one way street.
Link
Install, remove, list, and set default printer with PowerShell
By: Emanuel Halapciuc

With PowerShell, you can easily install a printer driver, add a printer to the repository, and then add a local or shared network printer to your Windows installation. In this post, I will also explain how you can list printers, add a printer port, set the default printer, and remove a printer with PowerShell.
Link
👍1
PsInfo: Get disk space, installed applications, and other information about local and remote Windows systems
By: Leos Marek

PsInfo, a command-line tool that is part of the Sysinternals suite, gets key information about Windows systems, such as the type of installation, available disk space, installed applications, kernel build number, uptime, registered owner, and the number of processors.
Link
Format time and date output of PowerShell New-TimeSpan
By: Emanuel Halapciuc

My function, Get-TimespanPretty, allows you to view the time span-the difference between two time points or dates-in a compact, user-friendly format. It is built on top of the New-TimeSpan cmdlet, which offers details as output that you usually need. With Get-TimespanPretty, you can simply pipe the output (TimeSpan object) of New-TimeSpan or Measure-Command to Get-TimespanPretty. It's easy to use, and there's no need for complex reworking of noscripts that may include such commands.
Link
🔥1
Today's cmdlet ‣ Get-Alias
Gets the aliases for the current session.

Example's Remarks:
• This example gets aliases for commands that have names that end in "-PSSession", except for those that begin with "e".

#tutorial
Using PowerShell on chromeOS Flex
By: Harm Veenstra

On an older laptop, I use chromeOS Flex. Easy to install, and for simple web browsing, it's a perfect solution without any license requirement. But yeah... I also wanted to use PowerShell on that, this blog post will show you how to install and use PowerShell on chromeOS Flex.
Link
Today's tip ‣ Arrays: Arrays as reference types

”As array types are reference types, a variable designating an array can be made to refer to any array of any rank, length, and element type.”
$a = 10,20 # $a refers to an array of length 2
$a = 10,20,30 # $a refers to a different array, of length 3
$a = "red",10.6 # $a refers to a different array, of length 2
$a = New-Object 'int[,]' 2,3 # $a refers to an array of rank 2

#tip
AzExpression 0.2.0
By: Simon Wahlin

Small module with functions that let you run Azure ARM template functions from PowerShell
Link
Today's cmdlet ‣ Get-Alias
Gets the aliases for the current session.

Example's Remarks:
• This command gets the aliases for the `Get-ChildItem` cmdlet.

#tutorial
How do you schedule your PS noscripts?
By: u/Distinct_Ship_3152

Im with two small IT help desk/ ops teams located in two different manufacturing plants.
Link
How to add BGP routes to AWS security groups
By: Alex Neihaus

PowerShell's Compare-Object makes it easy to compare two collections of objects
Link