I have been using LDAP filters a lot recently. One thing that can cause subtle errors that are difficult to track down are LDAP filters.
As an example consider this code which discovers all objects with the creatorSID attribute set and then resolves that SID to discover the user who...
PowerShell is an incredible tool with the ability to automate a load of your mundane tasks. A frequent question is where do I start?
Now the obvious starting point is to learn a little PowerShell – PowerShell in a Month of Lunches is ideal if you are a complete beginner...
A question of the forum involved changing the file path for a folder. The original path was like this
$folder = "C:\FolderName\NextFolder\ThirdFolder"
The first attempt uses the –replace operator
PS> $newfolder = $folder -replace...
A bit more digging as a follow up to the previous post shows that the NTDS service is shown when PowerShell is run with elevated privileges i.e. Run as Administrator. That means we want to be able to test is PowerShell is running in that mode
The test-dcservicehealth function becomes...
The correct functioning of our AD domains depends on the services that are running on our domain controllers
A quick test for the services that could affect AD
A question on the forum asked about setting creation date on folders after they have been copied to match the source folder.
I created a source folder with three folders and modified the creation dates
Set-ItemProperty -Path c:\testsource\folder1 -Name CreationTime -Value...
When: Tuesday, Feb 28, 2012 7:30 PM (GMT)
SQL Server forms the core of many of our systems - how can we administer and access it using PowerShell
Richard Siddaway has invited you to attend an...
Continuing round the MicrosoftActiveDirectory namespace we get to the MSAD_ReplCursor class which provides inbound replication state information about all replicas of a Naming Context
Get-WmiObject -Namespace root\MicrosoftActiveDirectory -Class MSAD_ReplCursor | ...
Building on the recent post about testing replication I though a bit more automation was needed. Lets create a function to discover the domain controllers
function get-DomainControllerNames 0 Comments RSS Feed Email a friend