PowerShell for Windows Admins:

PowerShell


July 4, 2015  5:21 AM

Scripting Games July 2015 puzzle

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Head over to http://powershell.org/wp/2015/07/04/2015-july-scripting-games-puzzle/ for our inaugural Scripting Games puzzle. I’ll...

July 2, 2015  1:20 PM

Processing NULL AD values

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

Back in this post

    0 Comments     RSS Feed     Email a friend


July 1, 2015  10:51 AM

String startswith method

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
.NET, Powershell

If you look at the methods available on a string one of them is StartsWith(). It tests if a given string starts with another string   £> 'frgrughrugu'.StartsWith OverloadDefinitions ------------------- bool StartsWith(string value) bool StartsWith(string value,...


July 1, 2015  8:13 AM

Domain Admins password last set

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

A recent question on the forums asked about getting the date a password was last set and the password never expires status for the domain admins group This is one way of doing it Get-ADGroupMember -Identity 'Domain Admins' | foreach { Get-ADUser -Identity $psitem.samAccountName -Properties...


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 yesterdays 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...


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...


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...


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: