PowerShell
772 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
Configure DHCP-Server-Role with PowerShell
By: Patrick Gruenauer

The Dynamic Host Control Protocol (DHCP) helps you manage your network by automatically assigning IP-Adresses to hosts. In this article I will show you how to configure a DHCP Server with a [...]
Link
Today's cmdlet ‣ Get-Culture
Gets the current culture set in the operating system.

Example's Remarks:
• This command displays information about the regional settings on the computer.

#tutorial
Today's tip ‣ Types: Common

”The void type cannot be instantiated. It provides a means to discard a value explicitly using the cast operator [].”

#tip
What command launched your session?
By: Jeff Hicks

What command launched your session?
Link
👍1
PowerShell QR Code Generator for WIFI Networks
By: Patrick Gruenauer

If you use QR codes instead of passwords, you increase the user experience. Did you know that you can create such a QR code with PowerShell without any 3rd party tools? No? [.]
Link
👍1
Today's cmdlet ‣ Set-Service
Starts, stops, and suspends a service, and changes its properties.

Example's Remarks:
• `Set-Service` uses the Name parameter to specify the service, WinRM .
• The Status parameter uses the value Running to start the service.
• The PassThru parameter outputs a ServiceController object that displays the results.

#tutorial
Setting Lifecycle Management Policy on Azure Storage using Azure PowerShell
By: Jorge Bernhardt

Following the thread of my last post, I want to show you how to take advantage of this functionality by configuring a data lifecycle management.
Link
Taking Your PowerShell Variables to the Next Level
By: Brien Posey

PowerShell allows you to do much more than just declare and use variables. In this article, you'll learn how to create constants and rename variables, taking your PowerShell variable usage to the next level.
Link
👍1
PowerBGInfo – PowerShell alternative to Sysinternals BGInfo
By: Przemyslaw Klys

When I created ImagePlayground, I thought about how to show its usefulness to the general community. On how to deliver what PowerShell can do. Then I saw on some forum people asking BGInfo to expand and allow running PowerShell scripts so that the data on the BGInfo Wallpaper can be gathered from PowerShell rather than VBS. I thought this was a great idea to create BGInfo using PowerShell without the necessity of using BGInfo at all.
Link
🔥1
Today's cmdlet ‣ Get-Process
Gets the processes that are running on the local computer.

Example's Remarks:
• These commands show how to use the `$PID` automatic variable to identify the process that is hosting the current PowerShell session.
• You can use this method to distinguish the host process from other PowerShell processes that you might want to stop or close.

#tutorial
The PowerShell Podcast at 40; Reflections, Ruminations, and Ramblings
By: The Powershell Podcast

In this laid-back episode, Jordan and Andrew take the opportunity to catch up on their PowerShell going-ons. Jordan tells us how he saved dozens of hours on a script and the benefits of helping out your friends. Andrew chats about terminal GUIs, his new OMG USB, PowerShell Summit, and being careful not to information overload people when teaching them PowerShell. All this, our usual charming banter, and more!
Link
Configure SysInternals EULA Acceptance
By: Jeffery Hicks

I just saw a very, very handy thing on Twitter where you can set a registry key that will automatically accept all EULA prompts for the SysInternals tools. I know there is a command-line switch I can use, but I never remember to use it. Setting the registry key appears to accept EULAs globally. Naturally,...
Link
Recovering Deleted Groups with the Graph PowerShell SDK
By: Tony Redmond

This article describes how to restore deleted Azure AD groups with PowerShell using cmdlets from the Microsoft Graph PowerShell SDK. Although options exist in the Microsoft 365 admin center and Azure AD admin center to restore deleted groups, it's nice to have the option to do the same with PowerShell.
Link
PSLog
By: AutomatedLab

Redirects stanard Write-* cmdlets to a log and offers some basic tracing functions
Link
Why is it “New-ADUser” not “Add-ADUser”?
By: u/d3lee3

I am trying to understand why this design decision was made. It seems a bit off from verb-object pattern.
Link
How to Craft a Modern PowerShell Message Box
By: Edem Afenyo

Discover all the modern ways to craft a PowerShell Message Box and get away from the VBScript methods of old in this updated how-to!
Link
Today's tip ‣ Basic concepts: Variables

”Variable objects are stored on drive Variable:.”

#tip
Today's cmdlet ‣ Get-Process
Gets the processes that are running on the local computer.

Example's Remarks:
• This command uses the Module parameter to get the modules that have been loaded by the process.
• This command gets the modules for the processes that have names that begin with `SQL`.

#tutorial