PowerShell for Windows Admins:

June, 2015


June 30, 2015  10:00 AM

Removing HomeDrive and HomeFolder settings

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

Back in this post 0 Comments     RSS Feed     Email a friend

June 29, 2015  12:06 PM

CIM filters

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

I was looking up Win32_SystemDriver on the MSDN site and noticed there was some PowerShell example code Get-WmiObject -Class Win32_SystemDriver | Where-Object -FilterScript {$_.State -eq "Running"} | Where-Object -FilterScript {$_.StartMode -eq "Manual"} | Format-Table -Property...


June 29, 2015  9:12 AM

Parsing ipconfig /displaydns with regular expressions

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
DNS, Powershell

In yesterday's post I used a series of split operations to parse the strings produced by ipconfig /displaydns Regular expressions should give a more power full way to perform this task. Not being a big fan of regular expressions I tend not to use them but for the sake of experimentation I...


June 28, 2015  1:53 PM

Parsing ipconfig /displaydns

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
DNS, Powershell

A recent question on the forum asked how you could get the contents on Windows 7 machines and earlier. On later machines – Windows 8 and above -  its easy because you can use Get-DnsClientCache from the DnsClient module. This module is based on CIM classes that aren’t present on Windows 7...


June 27, 2015  10:50 AM

Scripting Games

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

See what’s happening with the Scripting Games -  0 Comments     RSS Feed     Email a friend


June 27, 2015  9:58 AM

Multiple LDAP filters

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

Continuing our look at LDAP filters – remember the data set in use: £> Get-ADUser -SearchBase ‘OU=Testing,DC=Manticore,DC=org’  -Properties * -Filter * | select Name Name ---- Dave Green Dave Brown Dave White Jo Daven Fred Green Dale Greensmith Dave Greenly Individual...


June 26, 2015  2:16 PM

AD module cmdlets accepting LDAPfilter

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

In case you were wondering which cmdlets in the Active Directory module allowed you to use LDAP filters £> Get-Command -Module ActiveDirectory -ParameterName...


June 26, 2015  2:10 PM

Basic LDAP filters

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

I recently showed how to create an LDAP filter for an attribute that wasn’t set.  I thought it would be useful to show some other LDAP filters. The examples are from a testing OU in my AD £> Get-ADUser -SearchBase ‘OU=Testing,DC=Manticore,DC=org’  -Properties * -Filter * | select...


June 24, 2015  1:47 PM

DSC resources

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

New DSC resources are available on the PowerShell gallery.  See 0 Comments     RSS Feed     Email a friend


June 23, 2015  2:46 PM

LDAP filter for a property that isn’t set

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

Filtering on a particular LDAP property is straight forward Get-ADUser -SearchBase 'OU=Testing,DC=Manticore,DC=org'  -Properties * -Filter {Title -eq 'Boss'} You can also use an LDAP filter Get-ADUser -SearchBase 'OU=Testing,DC=Manticore,DC=org'  -Properties * -LDAPFilter...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: