PowerShell

Tip: Using PowerShell to Get the Running Windows 10 Power Plan

If you want to know the Power Plan that is running on a Windows 10 PC, use the following PowerShell query: Get-WmiObject -Namespace root\cimv2\power -Class win32_powerplan In the image example above, the Power Plan is Balanced. The following options are available: Balanced – Offers full performance when you need it and saves power when you don’t. This is the best power plan for most people. Power saver – Saves power by reducing PC performance and screen brightness. If you’re using a laptop, this plan can help you get the most from a single battery charge. High performance – Maximizes screen brightness and might increase PC performance. This plan uses a lot more energy, so your laptop battery won’t last as long between charges. Ultimate Performance –...

PowerShell Script Repository for Managing Intune

Microsoft has begun utilizing Github as a repository for Intune management PowerShell scripts. This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell. The following scripts are available now… Manage Applications – iOS, Android, Web App Protection Policy – Creation, Get and Delete Company Portal Branding – Get and Set Compliance Policy – Add, Get and Delete Corporate Device Enrollment – Get and Export Device Configuration – Add, Get and Delete Enrollment Restrictions – Get and Set Intune Data Export LOB Application – Add Managed Devices – Get, Overview and Device Action Paging – Get Intune R...

Reddit Rolls Out Beta Chat Room for the PowerShell Community

Reddit continues to be a great resource for many technology topics, including Azure, AWS, etc. One of the better technology resources is for PowerShell. This resource allows subscribers to ask questions and get answers, but those answers – like any web-based forum – come sporadically. Reddit has started beta testing real-time chat rooms for its mass of forums. The PowerShell community on Reddit has now been given a beta chat room. This chat room is intended to improve on peer support by inviting real-time answers to questions. Go here to join: PowerShell Live Neither of these options are new or inventive by any stretch, but its the size of the community that participates there that makes it work. Not a Redditor yet? Get started with this tip: Exposing Reddit RSS Feeds Looking f...

Tip: Uninstall Windows 10 apps using PowerShell

If you’d like to use PowerShell to uninstall apps on a Windows 10 device, first locate the list of installed apps using THIS method. From the list, identify the name of the app you want to uninstall. Then, run the following in an elevated PowerShell window and insert the app name you want to uninstall: Get-AppxPackage <app name> | Remove-AppxPackage The following example removes the Microsoft Xbox app: Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

Tip: Use PowerShell to Get the Listing of Installed Apps for Windows 10

If you want to get a listing of all the installed apps for the current user on a  Windows 10 device, run the following in an elevated PowerShell window: Get-AppxPackage To get the same listing, but for ALL users on the Windows 10 device, run the following in an elevated PowerShell window: Get-AppxPackage -AllUsers Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

Use PowerShell to Send Notifications to Microsoft Teams

A new PowerShell module is available to enable sending notifications to Microsoft Teams groups. This PowerShell Module allows to send notifications to Microsoft Teams. It’s pretty flexible and provides a bunch of options. While there are already 2 other modules related to sending notifications to Teams this one takes it a step further. More information and download: PSTeams Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

Manage SharePoint Online Subscriptions Using This PowerShell Module

Microsoft has made available an updated PowerShell module that enhances the Office 365 administrator’s ability to manage subscriptions. The SharePoint Online Management Shell has a new Windows PowerShell module that lets O365 administrators manage their SharePoint Online subscription using PowerShell. The focus is around site collection management. Download: SharePoint Online Management Shell Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

Microsoft Replacing Windows with Linux for PowerShell in the Cloud

Some saw this coming all along, but others thought it just wouldn’t happen. Microsoft is a Windows company, right? PowerShell for Azure is going all Linux, based on PowerShell Core 6. To ensure the best command-line tools experience while using Azure Cloud Shell, the PowerShell experience will be switching to a Linux container running PowerShell Core 6. This change will enable a consistent toolset experience across the PowerShell and Bash experiences in Cloud Shell. According to the announcement post, this will also help improve PowerShell performance. And, about Windows… In Azure Cloud Shell, there will no longer be a Windows-based experience. Since most of the operations from Cloud Shell happens against some service endpoints and there is little to no need to manage things in...

Windows 10 April 2018 Update “Trashes” PowerShell ISE

If you’re trying to use the PowerShell ISE with Microsoft’s latest feature update you can #fuggedaboutit. According to James O’Neill, Microsoft emeritus… Installed #Windows10April2018Update . Then discovered it trashes the #PowerShell ISE. (No intellisense drop downs, no snippets, ctrl Space crashes ISE). If this bothers you up vote https://t.co/nK4hWxMTs6 . @jsnover Curious how this slipped through — James O’Neill (@jamesoneill) May 12, 2018 James is wondering, like many of us, how so many bugs for this release were allowed to pass on through to customers. There are those that continue to defend Microsoft suggesting that the company can’t test every scenario or every driver, but at some point the finger pointing boomerangs back to quality control.  ...

Use PowerShell to Manage and Control WSUS

Here’s a cool tool to add to the PowerShell utility belt: a PowerShell module to manage Windows Server Update Services (WSUS). Created by Boe Prox, self-described PowerShell scripter and Microsoft Cloud and Datacenter MVP, the PowerShell module provides the ability to do things like update approval, WSUS configuration, updating sources, configuration of targeting, defining group memberships, getting sync and event history, downloading updates, and more. Available from GitHub: PoshWSUS   Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

Tip: Retrieving Windows Registry Information Using PowerShell

If you need to check values stored in the Windows Registry, use the following example: $Registry_Key = “HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” Get-ItemProperty -Path $Registry_Key -Name LastUsedUsername The example sets the registry key path and value and then retrieves the stored value for LastUsedUsername and also provides additional information about the registry. You can change the registry key and value to what you want to retrieve. Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

Tip: Prompting for User Information Using PowerShell

If you’d like to prompt a user for information to be added to a variable for use later on, here’s a quick way to do it. $FavMovie = Read-Host -Prompt ‘What is your favorite movie?’ $Name = Read-Host -Prompt ‘What is your name?’ $Date = Get-Date Write-Host “Hello, ‘$Name’. On ‘$Date’ your favorite movie was ‘$FavMovie'” This script asks the user for their favorite movie and name. It then uses this new information to deliver the output. This is a great example of using both the Read-Host (reading into a variable) and Write-Host (writing the stored variable) commands. Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!