Update to PSCloudPc

Stefan Dingemanse and I made an update to our PowerShell module called PSCloudPc. This PowerShell module enables you to manage Windows 365 via PowerShell with easy to use command lets. The MSGraph powershell module requires you to construct JSON body’s. We made this in to easy to use “one-liners”

Check out our Project website.

And our Github repository.

Install the module:

Install-Module -Name PSCloudPc

If you feel like you want to contribute or when your have suggestion for improvements please post a feature request on our Github.

Updates

We created a couple of new commands and we made updates to others. The new commands are all around cloud apps. The new feature that was released (preview) a couple of week ago. Microsoft Learn.

This are new commands:

  • Get-CloudApp
  • Invoke-CPCPublishCloudApp
  • Invoke-CPCUnpublishCloudApp

These commands help you to setup cloud apps for your users. For example:

Get-CloudApp:

You can then use a pipe ( | ) to publish an app using Invoke-CPCPublishCloudApp. For example:

And after that, in the portal:

This of course also counts for the un publish command ( Invoke-CPCUnPublishCloudApp ):

And, the portal then shows that the app is not published anymore:

This are the updated commands:

  • Get-CPCProvisioningPolicy
  • New-CPCProvisioningPolicy
  • Set-CPCProvisioningPolicyAssignment

We needed to update some command lets to keep up with the changes Microsoft made to Graph. Firstly, when creating a frontline provisioning policy you needed to provide an assignment right away. This changed, so we removed that part from New-CPCProvisioningPolicy and made the assignment part for Frontline to Set-CPCProvisioningPolicyAssignment.

Also, Microsoft added new graph configuration parts for autopatch, autopilot, userExperienceType, and userSettingsPersistenceEnabled. Some are clear what they do and some we still must figure out. We made room for that in the New-CPCProvisioningPolicy.

The Get-CPCProvisioningPolicy was updated with a new set of information to make available.

More to come!

We have plans to update the module.

The Set-CPCProvisioningPolicyAssignment is now able to 1 frontline assignment but multiple enterprise assignments. We want that the frontline assignment also supports multiple assignments and keeps the current assignments.

You must be able to select a Autopilot Device Preparation profile when creating a new provisioning policy or update an existing policy.

Autopatch groups must be supported when creating or editing a provisioning policy.

We must figure out what we can do with the userSettingsPersistenceEnabled option.

Now some info is returned by the “Get” commands, we want to always return all info so you can decide what info you need.

Add pipeline support for all command lets.

And lots more!

So, we have our work cut out for us, haha!

See you at the next one.

Other Posts

Automate Applocker configuration for Intune

Leave a Comment