Powershell – How to Remove user from all groups except domain users

First step – get groups that domain user is in… Get-ADPrincipalGroupMembership -Identity  user | Format-Table -Property name Second step – remove member from all groups accept domain users $ADgroups = Get-ADPrincipalGroupMembership -Identity  user | where {$_.Name -ne “Domain Users”} Remove-ADPrincipalGroupMembership […]

read more →

Docker – Save/Build image

The simplest and most dependable way to build any kind of container image is to use a Dockerfile and docker build. Both of these work great with Docker Windows containers. Details here: https://msdn.microsoft.com/en-us/virtualization/windowscontainers/docker/manage_windows_dockerfile https://msdn.microsoft.com/en-us/virtualization/windowscontainers/docker/optimize_windows_dockerfile

read more →