Yearly Archives: 2017

Virtual PowerShell Presentation Microsoft User Groups Singapore

Last Friday I presented at the PowerShell Meetup of the Microsoft User Groups based in Singapore. Having been a speakers at the PowerShell Conference Asia, which is also held in Singapore, for the past two years, it was nice to virtually be present in the Microsoft offices again. 

The session I prepared was on the topic of writing PowerShell code, what tools to use and how to leverage the strengths of those tools. I focused the presentation on using both Visual Studio Code, VSCode, and the PowerShell ISE in combination with ISESteroids.

I have uploaded all the materials I used during my presentation to my Events GitHub Repository, which is available here:

GitHub – Jaap Brasser – Events – MSUG Singapore

To get an impression of the event, the event organizer Sebastian Szumigalski was kind enough to provide me with these pictures of the event, be sure to check out his blog it contains a lot of great content. Here are some of the photos to give you an impression of the event.

The PowerPoint slides are also available on SlideShare:

Dutch PowerShell User Group – 10th Edition

Last Thursday we hosted the tenth Dutch PowerShell User Group at Rabobank in Utrecht. It was another full day event starting at 9AM and finishing at 6PM. For this event, we had a diverse range of speakers and as a highlight we had Jakub Jareš visit our user group and giving two presentations on proper testing with Pester and Continuous Deployment for PowerShell.

Due to the enthusiasm of Ben van Zanten, Bartek Bielawski and Daniel Both we had three surprise speakers that added to our already full day of session. Our complete program of the day consisted of the following:

BEGIN END SPEAKER TITLE
09:00 10:00 Jakub Jareš Continuous deployment pipeline for PowerShell modules
10:00 11:00 André Kamman Fighting SQL Server Configuration Drift with Dynamic Pester Tests
13:00 14:00 Jakub Jareš Biggest mistakes when testing with Pester
14:00 15:00 Ralph Eckhard & Sven van Rijen Keep up with NOW! Automate (re-)building your homelab – on steroids!
15:00 16:00 Ben van Zanten Splatting and building new AD forests
16:00 17:00 Jaap Brasser The best tool for the job: Working with VScode and ISE
17:00 17:30 Bartek Bielawski & Daniel Both Distributed configuration management and source control

I have uploaded all the materials I used during my presentation to my Events GitHub Repository, which is available here:

GitHub – Jaap Brasser – Events – DuPSUG 10

For the Dutch PowerShell User Group we maintain a separate repository which we keep updated with all presentation materials as they are made available by our presenters, this is available here:

GitHub – DuPSUG – DuPSUG 10

We would like to extend our thanks to our event sponsor, Rabobank for sponsoring us. The speakers and attendees alike for taking time out of their busy schedules to attend our meeting. To give you an impression of the event here are some pictures of the day:

 

PowerShell and Security – Presentation at iSense

As mentioned in the previous blog post I was invited to speak at iSense to talk about PowerShell and Security. This event was fully by sponsored by iSense who provided the attendees with a great experience. Before my session I was briefly interviewed and the interview, in Dutch, will be available soon.

Security is a topic that continues to make headlines around the world and as a result, PowerShell is mentioned more often either as an method to exploit or to prevent and secure your system. In this presentation I showed how PowerShell can be configured to provide insights in what scripts and tools are running in your environment and how to secure your PowerShell endpoints using Just Enough Administration, JEA.

The audience after 90 minutes of PowerShell and Security

The audience after 90 minutes of PowerShell and Security

After the presentation I received a lot of questions about PowerShell in general and the Dutch PowerShell User Group, we will soon be holding another PowerShell User Group meeting, for more information visit the following link: 10th DuPSUG Meeting, there are at the time of writing still a few tickets available for this event on the 9th of March.

Furthermore, at the Dutch PowerShell User Group we are working on putting out some events that are a bit more beginner oriented. For anyone who is interested in learning more about PowerShell stay tuned as we have a lot of good interesting stuff in the works.

The presentation deck and the slides are as always available on GitHub:
GitHub – Jaap Brasser – Events – iSense2017

For more information I have provided an overview of all the links in this article:

PowerShell and Security @ iSense
GitHub – Slides and code
iSense
Dutch PowerShell User Group
IT Future Lab – PowerShell and Security

Next week: Presenting at iSense on PowerShell and Security

Recently I was invited by iSense to come and speak at one of their technical evenings. On the 16th of February I will be speaking on PowerShell and Security. To quote a short excerpt from the iSense website:

This demo-rich session goes into detail on some best practices on securing PowerShell and highlights and the steps that have been taken in PowerShell 5.0 that allow you to do so. In the first section of this evening we will touch some of the basic concepts of security that we have available to us in PowerShell. Then Jaap will go into detail how you can correctly implement them by demoing the functionality.

For more information on this head over to:
PowerShell and Security – The how, what and why

There are still tickets available, so if you are interested in PowerShell, Security or a combination of both I would be more than happy to meet you there.

Configure Storage Sense using PowerShell

Recently the Storage Sense functionality has been added to Windows. Unfortunately there are no PowerShell commands available to manage this so I decided to write this function to be able to manage the different settings that are available in regards to Storage Sense.

There are a number of settings that can be configured in the Settings > Storage > Storage sense, settings menu. The settings that can be configured are as follows:

By clicking: Change how we free up space, the following options become available:

So in order to configure this using PowerShell I have created the Set-StorageSense function with the following parameters:

  • EnableStorageSense
  • DisableStorageSense
  • RemoveAppFiles
  • ClearRecycleBin

So if you would like to disable this functionality and not have Windows automatically clear out temporarily and otherwise obsolete files you can run the following command:

1
Set-StorageSense -DisableStorageSense

Alternatively the other options can also be configured, the following command Enables Storage Sense and configures all cleanup options to true while displaying verbose output:

1
2
Set-StorageSense -EnableStorageSense -RemoveAppFiles $true`
-ClearRecycleBin $true -Verbose

This would of course not be complete without being able to query this data as well, which is possible using the Get-StorageSense function:

Although I looked into manually triggering the Clean Up job, this is something that did not seem possible, I used Sysinternals Procmon to determine which command is associated with that. But even when running this as the System account it did not appear to clean anything. I will provide the execution in case it is of value for anyone else:

c:\windows\system32\svchost.exe -k localsystemnetworkrestricted -s StorSvc

Let me know if PowerShell functions like these are useful to you and if it works as expected. Do note that this functionality is only available in recent builds of Windows 10.

Links in this Article
GitHub – Get-StorageSense
GitHub – Set-StorageSense
GitHub – CustomizeWindows10 Module
PowerShellGallery – CustomizeWindows10 Module

 

MS Cloud Summit Paris – Slides and Code

On the 23rd of January I had the opportunity to speak at the MS Cloud Summit Paris pre-conference. Together with the dbatools / dbareports legends, Chrissy LeMaire and Rob Sewell we covered an entire day of PowerShell, Azure and SQL Server. The event itself has been really great and well organized, so I would like to thank the organization for putting together such a fantastic event for the European technical community!

As always I have made the code and slides available on GitHub, so if you are interested in the content that I delivered have a look over here:

GitHub – Jaap Brasser – Events – MSCloudSummitParis2017

For more information about the event please visit the following links:

MS Cloud Summit Paris 2017
GitHub – Slides and code
MS Cloud Summit Paris website
MSCloudSummit – Speaker page – Jaap Brasser
MSCloudSummit – Twitter

 

Full day of Cloud, PowerShell and SQL Server in Paris

On the 23rd of January, I will be presenting, together with Chrissy Lemaire and Rob Sewell, at the MS Cloud Summit in Paris. Together we will be taking you through the basics of PowerShell Automation, Azure and SQL Server. Rob and Chrissy will be showcasing the capabilities of the DbaTools PowerShell module.

The MS Cloud Summit Paris is a sold-out community event with over 600 attendees and speakers from all over the world. Here is a short summary of the event:

  • 1 day pre-conference workshops
  • 2 days of conference
  • 600 attendees expected
  • Passionated audience
  • 6 tracks – 60 sessions
  • Microsoft Cloud technologies (Azure, Office 365, Data Platform)
  • Microsoft Hybrid technologies (SQL Server, SharePoint, etc.)
  • Valuable international and french speakers

There are currently only tickets available for the pre-conference sessions, so if you did not decide yet there is still a change to join us there.