Category: Powershell Page 1 of 20

DSC Resource Kit Release February 2018

We just released the DSC Resource Kit!

This release includes updates to 10 DSC resource modules. In these past 7 weeks, 83 pull requests have been merged and 70 issues have been closed, all thanks to our amazing community!

Dealing with Runspacepool Variable Scope Creep in PowerShell

Something that I had noticed a while back that I would receive some output values in my objects that shouldn’t have been there. Properties that should have been Null had values in them, and not just random values, but values …

Restoring the Default Malware Filter Policy in Exchange Online Protection

I stumbled across this little quirk while I was preparing some content for my upcoming Office 365 security course. In my demo tenant I wanted to reset the default malware filter policy in Exchange Online Protection to its original …

2018 PowerShell Resolutions

This As I did last year, and the years before that, I wanted to review my last PowerShell resolutions and see how well I did and then take a look at the coming year and pick a few things …

Cross-platform PowerShell remoting in action

Summary: Learn how to configure and use cross-platform PowerShell remoting in PowerShell Core.

I’m Christoph Bergmeister, a London-based full stack .NET software developer with a passion for DevOps. To enable product testing of .NET Core apps across non-Windows machines in …

Script Wars: The Farce Awakens (part V)

Summary: Rey is skilled in PowerShell, and new to Contoso Holly Jolly Hat Company. Already she has been a great boon to her new co-workers and had her sneakers become the subject of a hungry trash robot.

She was just …

Script Wars: The Farce Awakens (part IV)

Summary: A quick recap shall we? Newly graduated from IT training and future guru in the world of Windows PowerShell, Rey Skyworker has been hired on by her mentor, Ben Kerberosie. Already, she has helped peers from her team improve …

Script Wars: The Farce Awakens (part III)

Summary: When last we saw our hero, Rey Skyworker, she was aiding her new co-worker, Tin. They managed to implement better error trapping by using the “Try Catch” statement in Windows PowerShell. The fact they could do this so easily …

Script Wars: The Farce Awakens (part II)

Summary: Yesterday, we met a newly graduated IT professional, Rey Skyworker, as she discussed the ways of “The Farce.” It was during this discussion that her instructor, Ben Kerberosie, discovered she had a natural gift in understanding how to implement …

Script Wars: The Farce Awakens (part I)

Summary: Seven years ago, “Hey, Scripting Guy!” was approached by a member of the community to see if we would be interested in doing something a little fun for the holidays.  The result was a seven-part series called “A PowerShell …

PowerShell support for certificate credentials

Summary: It’s not a very well-known feature, but the PSCredential object, and the PowerShell Get-Credential cmdlet, both support certificate credentials (including PIN-protected certificates). In this post, we take a look at how a certificate credential is marshaled inside a PSCredential …

PowerShell Scripts for Office 365

As Office 365 admins we have the opportunity to use PowerShell for a wide variety of administration tasks. PowerShell scripts make it possible to automate complex and routine tasks, which saves time and reduces operator error.

You can find a …

DSC Resource Naming Guidelines

When DSC was announced at TechEd 2013, one of the goals was to “Create an ecosystem”.

The ecosystem for DSC has grown tremendously in the last 4 years.

At worldwide events for PowerShell (PowerShell + DevOps Global Summit,…

Unable to Turn Off User Overrides in Office 365 DLP Policies

During some recent testing of Office 365 DLP policies I encountered what I suspect is a bug in the Security & Compliance Center.

After creating a new DLP policy from a template, I could not disable the User overrides settings …

PowerShell: Listing Azure AD/Office 365 User Accounts with Directory Sync Status

User accounts for Office 365 are stored in Azure Active Directory. The accounts will either be cloud identities, or synced identities. Cloud identities are accounts that exist only in Office 365/Azure AD, whereas synced identities are those that exist in …

PowerShell Constrained Language Mode

PowerShell Constrained Language Mode

What is PowerShell Constrained Language?

PowerShell Constrained Language is a language mode of PowerShell designed to support day-to-day administrative tasks, yet restrict access to sensitive language elements that can be used to invoke arbitrary Windows APIs.

Reverse Desired State Configuration: How it works

Nik Charlebois is a Premier Field Engineer based out of Canada. He is the author of several books on SharePoint automation, and he writes blog posts on a regular basis about all things PowerShell. You can find out more about …

Navigate Azure Resources Just Like a File System

At Microsoft Ignite (around 8:15 min), we announced the Public Preview of PowerShell in Azure Cloud Shell.  A unique feature of PowerShell experience in Azure Cloud Shell is navigation of Azure resources via the Azure drive (

Polaris – simple Microservices using only PowerShell

Polaris – Simple Microservices using only PowerShell

Polaris is a cross-platform, minimalist web framework for PowerShell Core 6. With 6 lines of code, you have your very own webserver running and ready to accept requests – all within PowerShell:

New-GetRoute

The Importance of Updating the Exchange Online Remote PowerShell Module

A recent episode of the popular Risky Business infosec podcast titled “Good Microsoft, Bad Microsoft” discusses a security vulnerability in a PowerShell tool used to manage Exchange Online. I have listened to the podcast twice (once the first time, and …

Use Docker to automate testing of PowerShell Core scripts

 

Summary: Learn the basics about Docker, and see how to use it for PowerShell Core script testing on different operating systems.

I’m Dan Ward, a Boston-based .NET software engineer who is just plum crazy about PowerShell and automation. Earlier …

PowerShell in Azure Cloud Shell (Preview) is now publically available in Azure Portal

Yesterday, at IGNITE 2017, we announced the public availability of PowerShell in Azure Cloud Shell. With the addition of PowerShell in Cloud Shell, alongside Bash in Azure Cloud Shell, you now have the flexibility to choose the shell …

DSC Future Direction Update

PowerShell Core and DSC

PowerShell is open sourced and moving over to .Net Standard 2.0 for the reasons outlined in Jeffrey’s blog post. Like PowerShell, PowerShell Desired State configuration (DSC) needs to meet customers in this multi-platform, multi-cloud, multi-OS …

PowerTip: Remove calendar events from a mailbox

Summary: Remove calendar events within an Exchange Online mailbox.

Hey, Scripting Guy! Question Is there an easy way to remove calendar events from within an Exchange Online mailbox?

Hey, Scripting Guy! AnswerYes there is. There is a newly deployed cmdlet to Office 365 tenants: Remove-CalendarEvents. …

Windows PowerShell 2.0 Deprecation

We recently announced that Windows PowerShell 2.0 is being deprecated in the Windows 10 Fall Creators Update. Deprecation is a process whereby technologies or applications are marked as legacy, signalling to users that they may be removed in the

[Script Of Aug. 22] PS script to send emails for stopped Application Pool and start it automatically

Aug.
22
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/PS-script-to-send-emails-3247b2e0.

The sample powershell script will help in performing the recycling settings for application pool remotely. Also it will display its current value after modification.

You can find …

[Script Of Aug. 22] Powershell script to modify the recycling settings for application pool remotely

Aug.
22
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/Powershell-script-to-69d2444c.

The sample powershell script will help in performing the recycling settings for application pool remotely. Also it will display its current value after modification.

You can find …

Weekend Scripter: Exchange add-in module

Summary: Mike O’Neill, Microsoft Senior Premier Field Engineer, created an Exchange add-in module.

This is a PowerShell module for Exchange engineers. The module takes into account both on-premises and hybrid deployed Exchange environments.

It is a combination of several …

Recent Articles on MCPMag

I’ve been busy working on some articles for MCPMag.com and wanted to share a couple of stubs to my most recent articles.

Gathering Installed Software Using PowerShell

If there is one thing an administrator finds themselves doing, it is probably …

PowerShell Documentation Migration

 

Hi, I’m Zach Alexander and I’m a PM on the PowerShell Team working on documentation.

I wanted to let you know that there will be a brief downtime for online PowerShell documentation.

This downtime will occur on August 2…

PowerShell Script for TroubleShooting Exchange ActiveSync Devices

On a recent case I was investigating a mobile device that couldn’t connect to a mailbox over ActiveSync. After spending a few minutes collecting information about the mailbox and its associated devices I realized that this task could be …

Hey, Scripting Guy! update

Ed Wilson retired, but we are continuing his legacy of friendly tutorials on solving common problems. We will also help IT professionals expand their skill set beyond what might be their comfort zone. Examples of this include incorporating continuous integration/continuous …

PowerShell One-Liner: Get a Count of Exchange Server Mailboxes Per Database

When I’m planning Exchange Server migrations or just generally reporting on mailbox stats I use my Get-MailboxReport.ps1 script. But sometimes I just want a quick look at how many mailboxes are hosted on each database in the organization. To achieve …

PowerShell One-Liner: Summary of Mailbox Move Request Status

When you’ve got a lot of mailbox move requests running during an Exchange migration, it’s useful to be able to pull a quick summary of how they’re all going. You can achieve this by piping the Get-MoveRequest cmdlet to the …

PowerShell 6.0 Roadmap: CoreCLR, Backwards Compatibility, and More!

As we’ve made progress on open-source PowerShell, it’s time to start talking more in-depth about:
  • different editions of PowerShell
  • PowerShell’s relationship to .NET Core and .NET Standard
  • the future of PowerShell
  • when you might expect to start taking a dependency

DSC Resource Kit Release July 2017

We just released the DSC Resource Kit!This release includes updates to 12 DSC resource modules. In these past 6 weeks, 106 pull requests have been merged and 115 issues have been closed, all thanks to our amazing community! This

Quick Hits: Finding all Hyperlinks in an Excel Workbook

Recently, I had the need to pull out all of the hyperlinks from an excel worksheet that was given to me. While I could have gone the manual approach by looking through all of the cells in the worksheet and …

[Script Of Jun. 30] How to find duplicate files by checking MD5 in Windows 8

Jun.
30
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-find-duplicate-226f8af1.

The VBScript sample list all the duplicate files in user’s machine in a particular path providing details like file size and Date modified to compare.

You can …

Docker Swarm and Secret support with OMS Insight and Analytics – container monitoring solution

Hello all, this is Keiko, Program Manager from the OMS team.

The container monitoring solution, available as part of OMS Insight and Analytics, helps you get visibility into the inventory of containers in hosts, including images running in the them …

[Script Of Jun. 27] How to get .NET framework version of site running in IIS by PowerShell

Jun
27
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-get-NET-framework-4d7f7a45.

The sample code demonstrates how to get .NET framework version of site running in IIS by PowerShell.

You can find more All-In-One Script Framework script samples at …

[Script Of Jun. 27] How to disable Cortana on Windows 10 using PowerShell

Jun
27
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-disable-Cortana-on-b44924a4.

The sample code demonstrates how to disable Cortana on Windows 10 using PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Jun. 26] Powershell script to create website and modify the W3C logging fields

Jun.
26
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/Powershell-script-to-de323f02.

The sample script creates the website on IIS and modifies the W3C logging fields in IIS 7.X and higher using Powershell.

You can find more All-In-One Script …

[Script Of Jun. 23] How to list redirect destination URLs of IIS sites by PowerShell

Jun
23
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-list-redirect-d50a7cb9.

The sample code demonstrates how to list redirect destination URLs of IIS sites by PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Jun. 21] How to create a desktop shortcut to lock windows screen using PowerShell

Jun
21
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-create-a-desktop-a6f47ca2.

The sample code demonstrates how to create a desktop shortcut to lock windows screen using PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Jun. 19] Install the .NET Framework 3.5 in Windows 8 with a script (PowerShell)

Jun.
19
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/Install-NET-Framework-35-f791c035.

This script demo shows how to install the .NET Framework 3.5 in Windows 8.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Jun. 16] How to find out which process is locking a file or folder in Windows by VBScript

Jun.
16
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-find-out-which-6012b2ac.

The sample code demonstrates how to find out which process is locking a file or folder in Windows by VBScript.

You can find more All-In-One Script Framework …

Help Test V1.02 of the Office 365 Groups Report Script

The Office 365 Groups report script helps you track new, modified, and deleted Groups in your Office 365 tenant. When the script was first developed there was no method for recovering deleted Groups. That has since been added, along …

[Script Of Jun. 15] Runnable sample to introduce Typescript 2.4 new features

Jun.
15
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/Runnable-sample-to-dfa81d79.

The sample code demonstrates the Runnable sample to introduce Typescript 2.4 new features.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Jun. 13] How to add credentials to the Windows Vault

Jun.
13
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-add-credentials-to-90145dae.

The sample code demonstrates the VBScript sample to add credentials for specific users to access another domain automatically.

You can find more All-In-One Script Framework script samples …

[Script Of Jun. 12] How to create new Virtual Desktop in Windows 10 using PowerShell

Jun.
12
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-create-new-Virtual-0e972c8d.

The sample code demonstrates how to create new Virtual Desktop in Windows 10 using PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

Getting Started with PowerShell Core on Windows, Mac, and Linux

Today we have a guest post from Honorary Script Guy and Microsoft Premier Field Engineer Ashley McGlone, also known as GoateePFE.

This is deeper than Coke vs. Pepsi or Ford vs. Chevy. We are breaking down the barriers. Cats …

[Script Of Jun. 7] How to list all documents in a collection in Azure Cosmos DB by PowerShell

Jun
6
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-list-all-documents-bf6d2101.

The sample code demonstrates how to list all documents in a collection in Azure Cosmos DB by PowerShell.

You can find more All-In-One Script Framework script samples …

[Script Of Jun. 6] How to list all collections of database in Azure Cosmos DB by PowerShell

Jun
6
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-list-all-collections-03fd97e1.

The sample code demonstrates how to list all collections of database in Azure Cosmos DB by PowerShell.

You can find more All-In-One Script Framework script samples at …

[Script Of Jun. 6] How to close all Virtual Desktops at once in Windows 10

Jun
6
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-close-all-Virtual-b7eb8269.

The sample code demonstrates how to close all Virtual Desktops at once in Windows 10.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Jun. 2] How to change desktop icon size, color or border width

Jun.
2
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-change-desktop-icon-e57d3bf0.

This VBScript automatically changes desktop icon size, color or border width by manipulating registry key settings at the locations HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics and HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics.

You can find …

[Script Of Jun. 1] How to Enable IIS Remote Management In WMSVC on multiple servers for non-admins

Jun.
1
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-Enable-IIS-Remote-fdb21036.

The sample script provides the below functionality: 1. Remotely enable the RemoteManagement in WMSVC on all the specified server 2. Enable the IIS Manager Credentials and Windows …

[Script Of Jun. 1] How to determine if Windows shows file extensions by PowerShell

Jun
1
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-determine-if-93db8bff .

The sample code demonstrates how to determine if Windows shows file extensions by PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

DSC Resource Kit Release May 2017

We just released the DSC Resource Kit!This release includes updates to 10 DSC resource modules including 3 new resources. In these past 6 weeks, 60 pull requests have been merged and 58 issues have been closed, all thanks to

[Script Of May. 31] How to list all databases in Azure Cosmos DB by PowerShell

May.
31
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-list-all-databases-b07ac3d6.

The sample code demonstrates how to list all databases in Azure Cosmos DB by PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of May. 27] How to create a plan guide for SQL or PROC in a database

May.
27
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-create-a-plan-guide-28cca76c.

The sample code demonstrates how to create a plan guide for SQL or PROC in a database.

You can find more All-In-One Script Framework script samples at …

[Script Of May. 25] How to query Azure Cosmos DB resources using the REST API by PowerShell

May
25
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-query-Azure-Cosmos-0a9aa517.

The sample code demonstrates how to query Azure Cosmos DB resources using the REST API by PowerShell.

You can find more All-In-One Script Framework script samples at …

[Script Of May. 24] How to make SQL results to HTML document using PowerShell

May
24
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-make-SQL-results-to-52f7e330.

The sample code demonstrates how to make SQL results to HTML document using PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of May. 22] How to create a msdeploy package of all websites and copy to different location

May.
22
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-create-a-msdeploy-c7c09bd1.

1. This will package all sites using msdeploy without the site contents & includes just the configurations 2. It will move the AppPools into the package 3. …

Exchange Analyzer v0.2.5 Released

A new build of Exchange Analyzer is available, which includes the following fixes and improvements:

  • Rewritten .NET Framework test added back
  • Fix for bug in number formatting when reporting number of hours since last DB backup
  • Update to Wiki base

[Script Of May. 16] How to disable feature that opened port 445 on windows by PowerShell

May
16
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-disable-feature-49ac4d3e.

The sample code demonstrates how to disable feature that opened port 445 on windows by PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

Help Test the .NET Framework Checks for Exchange Analyzer

One of the tests that was developed earlier in the life of Exchange Analyzer looked at the version of .NET Framework installed on the server to determine if it was supported with the version of Exchange running on the server. …

[Script Of May. 15] How to Generate Azure Service Bus SAS key in Node.js

May
15
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-Generate-Azure-d740d179.

The sample code demonstrates how to Generate Azure Service Bus SAS key in Node.js.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

Announcing PowerShell for Visual Studio Code 1.0!

Today we are extremely excited to announce that the PowerShell extension for Visual Studio Code has reached version 1.0! We are shipping this update to line up with the PowerShell Core 6.0 Beta.1 release to provide the official PowerShell development

[Script Of May. 10] How to change Windows 10 Lock screen time format

May
10
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-change-Windows-10-1fe3a30b .

The sample code demonstrates how to change Windows 10 Lock screen time format.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

PowerShell Server Inventory, Part 3: Viewing the Inventory using a UI

This post is part 3 in a 3 part series on building your own server inventory system using PowerShell.

[Script Of May. 9] Runnable sample to introduce Typescript 2.3 features

May
09
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/Runnable-sample-to-ea074327.

The sample code demonstrates a runnable sample to introduce Typescript 2.3 features.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of May. 4] Runnable sample to introduce Typescript 2.2 features

May
04
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/Runnable-sample-to-bc19a346.

The sample code demonstrates a runnable sample to introduce Typescript 2.2 features.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of May. 3] How to create a desktop shortcut to start Edge for a specific URL

May
3
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-create-a-desktop-9b17ee36.

The sample code demonstrates how to create a desktop shortcut to start Edge for a specific URL.

You can find more All-In-One Script Framework script samples at …

Managing Office 365 Licenses with the Azure AD V2 PowerShell Module

In Office 365 we have three methods of managing license assignments for individual or multiple user accounts.

The Office 365 admin portal provides a simple web …

Speaking at the Tampa PowerShell User Group

On May 18th, I will be speaking remotely at the Tampa PowerShell User Group talking about using Runspaces. I don’t know if this will be open for remote users, but if you are local to the Tampa area, then …

DSC Configuration Sharing

The community around DSC Resources has been inspiring. The PowerShell Gallery now includes more than 2000 modules/scripts. 181 of those are modules focused on DSC, that collectively include 766 DSC Resources.

With this many building blocks available, it has …

First Steps: Configuring Office 365 Groups Settings

Groups are a collaboration feature of Office 365 that allow teams to work together using a shared mailbox, calendar, SharePoint file repository, and OneNote notebook. Office 365 Groups are also a membership service for other applications such as Planner, …

[Script Of Apr. 27] Runnable sample to introduce Typescript 2.1 features

Apr
27
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/Runnable-sample-to-fa53af59.

The sample code demonstrates a runnable sample to introduce Typescript 2.1 features.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Apr. 26] How to find out which process is locking a file or folder in Windows by PowerShell

Apr
18
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-find-out-which-c0d4e60e.

The sample code demonstrates how to find out which process is locking a file or folder in Windows by PowerShell.

You can find more All-In-One Script Framework …

DSC Resource Kit Release April 2017

We just released the DSC Resource Kit!

This release includes updates to 5 DSC resource modules, including 3 new DSC resources. In these past 6 weeks, 57 pull requests have been merged and 46 issues have been closed,

[Script Of Apr. 18] How to determine ASP.NET Core installation on a Windows Server by PowerShell

Apr
18
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-determine-ASPNET-512379b5.

The sample code demonstrates how to determine ASP.NET Core installation on a Windows Server by PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Apr. 18] How to create a shortcut to start Firefox in private mode by PowerShell

Apr
18
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-create-a-shortcut-e582f064.

The sample code demonstrates how to create a shortcut to start Firefox in private mode by PowerShell.

You can find more All-In-One Script Framework script samples at …

Reporting Office 365 Admin Role Group Members

Office 365 allows organizations to delegate administrative privileges in a granular fashion. There is an over-arching “Global Administrator” role, as well as a series of lower privilege roles for specific administrative tasks. A partial list of the admin roles is …

[Script Of Apr. 17] How to convert XLS to CSV by VBA

Apr.
17
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-convert-XLS-to-CSV-69829030.

The sample code demonstrates how the VBA module converts an excel file (.xlsx/.xls) to .csv format.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Apr. 14] How to find out how many users in enterprise are running what version of client

Apr.
14
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-find-out-how-many-a76d2914.

This T-SQL script will demonstrate how to find out how many users in the enterprise are running and what version of the client they are using.

You …

Test-ExchangeServerHealth.ps1 Has Been Updated to V1.16

A new version of Test-ExchangeServerHealth.ps1 is now available for download. This update contains the following fixes and improvements:

  • Shadow redundancy queues are no longer included in the transport queue size
  • Recovery DBs are now excluded from all Get-MailboxDatabase commands, to

[Script Of Apr. 13] How to create a shortcut to start Chrome in private mode by PowerShell

Apr
13
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-create-a-shortcut-2cdd6c87 .

The sample code demonstrates how to create a shortcut to start Chrome in private mode by PowerShell.

You can find more All-In-One Script Framework script samples at …

[Script Of Apr. 12] How to download recent files in PowerShell by WinSCP

Apr
12
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-recent-files-in-b2bff65b.

The sample code demonstrates how to download recent files in PowerShell by WinSCP.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Apr. 11] How to create a shortcut to start IE in private mode by PowerShell

Apr
11
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-create-a-shortcut-5ea4e42b.

The sample code demonstrates how to create a shortcut to start IE in private mode by PowerShell.

You can find more All-In-One Script Framework script samples at …

[Script Of Apr. 10] How to remove all network printers on a computer

Apr.
10
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-remove-all-network-d3979e18.

The sample code demonstrates how to remove all network printers on a computer.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of April. 7] How to change the Subsite URL property using PowerShell in SharePoint Online

April.
7
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-change-the-Subsite-6b8b7b04.

The sample code demonstrates how to change the Subsite URL property using PowerShell in SharePoint Online.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Apr. 6] How to start Microsoft Edge in private mode by PowerShell

Apr
6
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/ How-to-start-Edge-in-bfff2c34.

The sample code demonstrates how to start Microsoft Edge in private mode by PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

[Script Of Apr. 6th] How to disable/enable scheduled task in batch by PowerShell

Apr.
6
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-disableenable-501a2b8e.

The sample code demonstrates how to disable/enable scheduled task in batch by PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

New Pluralsight Course – Managing Exchange Mailboxes and Distribution Groups in PowerShell

I’m pleased to announce that my latest Pluralsight course, Managing Exchange Mailboxes and Distribution Groups in PowerShell, has emerged from the production cycle and is now available to watch.

I enjoyed creating this course because it brings together the …

[Script Of Apr. 5th] How to Invoke Azure Service Bus Queue RESTful API via PowerShell

Apr.
5
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-Invoke-Azure-e377956e.

The sample code demonstrates How to Invoke Azure Service Bus Queue RESTful API via PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

PowerShell Server Inventory, Part 2: Collecting and Sending Data

This will be at least a 3 part series in which I will go over each aspect of my build which will cover the following topics:

[Script Of Apr. 1]How to fix ‘no Remote Desktop License Servers available to provide a license’

Apr.
1
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-fix-no-Remote-e511efb0.

The sample code demonstrates how to fix ‘there are no Remote Desktop License Servers available to provide a license’ issue in Windows .

You can find more …

[Script Of Mar. 31] How to obtain versions of Internet Information Server (IIS) by PowerShell

Mar.
31
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-obtain-versions-of-7875ac84.

The sample code demonstrates how to obtain versions of Internet Information Server (IIS) by PowerShell.

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

Regular cadence for PowerShell Core Community Call

tl;dr: PowerShell Core Community Calls are on the third Thursday of every month at 9:30am Pacific Time (note, this is currently PDT). Use this .ics file to avoid missing one.

Hi everyone! After three successful PowerShell Core Community Calls,

[Script Of Mar. 30] How to convert Excel xlsx file to csv file in batch by PowerShell

Mar
30
image

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-convert-Excel-xlsx-d9521619.

The sample code demonstrates how to convert Excel xlsx file to csv file in batch by PowerShell.

You can find more All-In-One Script Framework script samples at …