Category: PowerShell
-

Automatically download and import applications to MDT
I finally had some time left so I wrote this small script to help me build my lab environment (and help me automate at customer sites) instead of building it manually. The script will not replace any hydration script instead it may interact with an existing MDT environment. It will download the source from a…
-
Reinstall Windows 10 Apps
Are you one of the IT pros that uninstall all or some of the built-in apps in Windows 10 and now changed your mind? This is how you remove them and get them back with PowerShell! Remove an app Get-AppxPackage *windowsmaps* | Remove-AppxPackage Remove the provisioned app Get-AppxProvisionedPackage -Online | ? {$_.DisplayName -like…
-
Update: Download Microsoft Ignite 2016 Slidedecks
[UPDATE]Unfortunately my first version didn’t work as expected due to the fact that the RSS only holds 20 posts. So I had to rewrite the script a bit to enumerate all sessions instead. I took a couple of minutes to write a script to download all slidedecks from Ignite 2016, perfect for having on the…
-
List Group Policy Client Side Extensions, CSEs, from Windows 10
I simply discovered from earlier posts that there was no list of the CSEs of Windows 10 available, so what did I do? I simple created a list. First of all, I installed a Windows 10 Enterprise 64-bit operating system in my Hyper-V lab and added some applications that my customers generally use. Microsoft Visual…
-
Nice old trick, Create reports of Group Policy Objects
Just a quick post of how to create HTML or XML reports of your Group Policy Objects with PowerShell. First make sure you are logged onto a host where the Group Policy Management, GPMC, and Active Directory Cmdlets are installed. First define the logged on current domain $domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() To create the reports use…
-

PowerShell can I use balloons, toasts and notifications?
Ever wondered if you can do any notifications, balloons or toasts with Windows 10 and PowerShell? Lets say that instead of waiting for a script to finish you can just add a notification when it is done. The only thing I haven’t solved is the toast to stay in the Action Center in Windows 10,…
-
Add virtual TPM in Windows 10 Hyper-V guest with PowerShell
You may have noticed or heard that in the new release of Windows 10 build 10586 you have an option to add virtual TPM in your Hyper-V guests. This is really interesting and gives you a whole new level when it comes to testing things depended on the TPM chip. I will not in this…
-
Change all firewall rules to apply to domain profile only
Does your firewall rules look like this? Some rules applies to all profiles and some to some others? If you need to streamline the rules to just apply to one profile, PowerShell is your friend here! Use the following PowerShell command to list all the rules that are enabled Get-NetFirewallRule -Enabled True To change a…
-
How to clear EventLog with PowerShell or wevtutil
I got a question from Joe how to delete all administrative events in the Windows event log earlier today, there are actually (at least) two ways of doing this. PowerShell or with the built-in command for administrate Windows event log, lets start with PowerShell… Just for the record I have tested this on Windows 10…