Posts RSS Comments RSS 244 Posts and 356 Comments till now

Powershell v2 Officially GA… XP/2003 just around the corner.

Well… yesterday was the day! With the GA (general availability) of Windows 7 Powershell v2 became official. To celebrate the Powerscripting Podcast guys had a launch party and it was awesome. The Distinguished Engineer formally known as Snover was there and let us in on some juicy info. I strongly recommend downloading the podcast when it become available… good stuff!

p.s. Look for XP/2003 release of Powershell v2 in the coming weeks (yes.. I said WEEKS!!!)

BSonPosh Module goes beta

I am releasing a beta of my BSonPosh module. This is a early release and may have some bugs that need to be tweaked. It may also be missing some functionality and help files. If you would like participate in the beta send me an email via my contact form and I will shoot you a copy.

I am looking for any feedback. Specifically if you think any thing is missing :)

Here is a list of the functions/cmdlets provided by the module:

—————————————-
ConvertTO-DistinguishedName
ConvertTo-DNSName
ConvertTo-Name
ConvertTo-NetbiosName
ConvertTo-Sid
ConvertTo-UACFLag
Format-XML
Get-ADACL
Get-ADSchema
Get-ADSchemaClass
Get-ADSchemaProperty
Get-Assemblies
Get-BSonPosh
Get-DC
Get-DCConnectionObject
Get-Forest
Get-RebootTime
Get-Routetable
Get-SiteLink
Get-SysInternals
Get-TraceFile
Get-Uptime
Get-WindowsUpdate
Import-BSonPosh
Invoke-uac
Invoke-WhoAmI
New-ADACE
Resolve-Host
Select-LargeFiles
Set-ADACL
Set-DCConnectionOption
Set-SiteLink
Start-TS
Test-ADReplication
Test-Host
Test-LdapFilter
Trace-LDAP
update-Gac

List of All Domain Controllers in Your Domain

The Scripting guys have a post over here: Hey, Scripting Guy! Can I Obtain a List of All Domain Controllers in My Domain?

That is one way but IMO this is easier and more DC specific data

[DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().DomainControllers

On a side note: The AD Replication Module will have a cmdlet so you will be able to just do this:

Get-ADRDomainController -domain MyDomain

Serverless binding with ADSI

joe and I were discussing this yesturday and he blog about it here So I used Serverless Binding with ADSI (or .NET), now what DC am I talking to?

On a side note… I think this is bad form. IMO you should be very deliberate with your code even with discovery. I would use rootDSE to do the discovery then stick with that server.

Re-Awarded the Microsoft MVP for Powershell.

I was very happy to get the email today. We (MVPs) generally feel we do enough but we are always concerned that MS thinks so :)

I would also like to welcome “Mr. Antoine Habert” to the Powershell MVP ranks. I *think* he is the only new one and I don’t believe we lost any.

Need Powershell v2 feedback ASAP!

Jeffrey and party are trying their darnedest to get this thing out the door but they need your help.

Please download: XP and W2K3 Release Candidate Versions of PowerShell are Now Available for Download and provide feedback asap!

How to find extended rights that apply to a schema class object (remix)

The AD guys posted a really cool post about getting extended rights via the schema. That post can be found here:
How to find extended rights that apply to a schema class object

If you dont have Windows 7, 2008 R2, or the Active Directory Management Gateway then you can get similar results by using my functions from here: Getting AD Schema information from Powershell. This works on all versions of AD.

Using these functions you can just do this:

Get-ADSchemaClass group | %{$_.DefaultObjectSecurityDescriptor} | %{$_.access} | ?{$_.ActiveDirectoryRights -eq "ExtendedRight"}

Heads up on an upcoming codeplex project.

Active Directory Replication Module

Purpose:
Provide administrators with simple task-based set of cmdlets to manage and trouble-shoot Active Directory Replication.

Overview:
This will provide several cmdlets for working with Active Directory focusing on Replication. As AD replication is build on domain/forest infrastructure we are also including a set of Domain and Forest management cmdlets.

Target:
Windows 2003 Domain and above (although most cmdlets will still work against 2000.)

Status:
Work as already begun on the project and I am hoping to release alpha code in the next month or so.

Example of cmdlets to be provided (not complete:)

  • Test-ADRReplication
  • Get-ADRDomain
  • Get-ADRDomainController
  • Get-ADRForest
  • Get-ADRGlobalCatalog
  • Get-ADRMetaData
  • Get/Set/Test-ADRProperty
  • Get/Set/New-ADRSite
  • Get/Set/New-ADRSiteLink
  • Get/Set/New-ADRSubNet

Please let us know if there is feature you would like to see or any general feedback.

blog: Heads up on an upcoming codeplex project.

Active Directory Replication Module

Purpose:
Provide administrators with simple task-based set of cmdlets to manage and trouble-shoot Active Directory Replication.

Overview:
This will provide several cmdlets for working with Active Directory focusing on Replication. As AD replication is build on domain/forest infrastructure we are also including a set of Domain and Forest management cmdlets.

Target:
Windows 2003 Domain and above (although most cmdlets will still work against 2000.)

Status:
Work as already begun on the project and I am hoping to release alpha code in the next month or so.

Example of cmdlets to be provided (not complete:)
  • Test-ADRReplication
  • Get-ADRDomain
  • Get-ADRDomainController
  • Get-ADRForest
  • Get-ADRGlobalCatalog
  • Get-ADRMetaData
  • Get/Set/Test-ADRProperty
  • Get/Set/New-ADRSite
  • Get/Set/New-ADRSiteLink
  • Get/Set/New-ADRSubNet

Please let us know if there is feature you would like to see or any general feedback.

List of 2008 R2 Group Policy cmdlets

Rick Sheikh asked me about the Windows 2008 R2 GP cmdlets on blog post Build Lab w/ Quest AD CMDLets.

Here is a list (you have to add it via features.) and how to find them

import-module GroupPolicy
Get-Command -Module GroupPolicy | %{$_.Name}

Backup-GPO
Copy-GPO
Get-GPInheritance
Get-GPO
Get-GPOReport
Get-GPPermissions
Get-GPPrefRegistryValue
Get-GPRegistryValue
Get-GPResultantSetOfPolicy
Get-GPStarterGPO
Import-GPO
New-GPLink
New-GPO
New-GPStarterGPO
Remove-GPLink
Remove-GPO
Remove-GPPrefRegistryValue
Remove-GPRegistryValue
Rename-GPO
Restore-GPO
Set-GPInheritance
Set-GPLink
Set-GPPermissions
Set-GPPrefRegistryValue
Set-GPRegistryValue

« Previous PageNext Page »