Wednesday, August 10, 2016

Windows 10 deployment and management lab kit


The Windows 10 Deployment and Management Lab Kit includes everything you need to review the new in-place upgrade option plus traditional deployment methods and other management tools.

Just get the lab here


Monday, August 8, 2016

Count number of GPOs using Powershell

Hi guys,

today I want to show you, how to count your GPOs. I also want to show you how to create filters that could be useful...

This script will show you the number of all GPOs in your domain:

$GPOCOunt = ((Get-GPO -All).count)
Write-Host "Number of GPOs: $GPOCOunt"

If you have a naming convention in place, you could filter and count these GPOs.
For example you name GPOs based on location shortcuts like US.
So lets get all GPOs starting with "US":

# Get all GPOs that are starts with US
$GPOCOuntUS = ((Get-GPO -All | where{($_.displayname –like “US*”)}))
# Count them
$GPOCOuntUS2 = $GPOCOuntUS.count
# Write output
Write-Host "Number of GPOs for US: $GPOCOuntUS2"

Another good filter (almost all use it I think...) is test
So lets get all GPOs that include the word test:
$GPOCOuntTest = ((Get-GPO -All | where{($_.displayname –like “*test*”)}))
$GPOCOuntTest2 = $GPOCOuntTest.count
Write-Host "Number of your TEST GPOs: $GPOCOuntTest2"

Tuesday, August 2, 2016

Hide a Windows Update in Windows 10

  1. Just download wushowhide.diagcab
  2. Run wushowhide.diagcab
  3. Click on Next
  4. Click Hide updates
  5. Select the updates you want to hide
  6. Click on Next and Close

Wednesday, June 8, 2016

Powershell: Get a list of your Domain Controllers including Name, IPv4Address, OS and Site

The following PS one liner will export all your Domain Controllers to a text file including information like:

Name,IPv4,OS,Site

The text file will look like the following example:

 

Script:

Get-ADDomainController -Filter * | Select Name, ipv4Address, OperatingSystem, site | Sort-Object -Property Name >C:\DC_Overview.txt 

If you remove >C:\DC_Overview.txt the output will be displayed in Powershell.

Get-ADDomainController -Filter * | Select Name, ipv4Address, OperatingSystem, site | Sort-Object -Property Name
 
Have fun!

Technet Link:
https://gallery.technet.microsoft.com/PS-Get-a-list-of-your-121f6086