Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Featured Posts
Dreaming in PowerShell
Don Jones
Code MarkUp Tool
Directory
All Tags
»
GetCurrentForest
(
RSS
)
Browse Blog Posts by Tags
Showing related tags and posts for the
Blogs
application. See
all tags in the site
ADSI
PowerShell
PowerShell Scripts
scripts
system.directoryservices.activedirectory.forest
Get-Forest.ps1
# Get-Forest.ps1 # Shows use of GetCurrentForest to return information about the forest # Thomas Lee - tfl@psp.co.uk $forest = [System.DirectoryServices.ActiveDirectory.Forest] :: GetCurrentForest() " You are connected to the {0} forest " -f $forest .name This script produces the following...
Posted to
Thomas Lee's PowerShell Scripts
by
PowerShell Scripts
on 11-28-2008
Filed under:
Filed under:
PowerShell Scripts
,
PowerShell
,
scripts
,
system.directoryservices.activedirectory.forest
,
ADSI
,
GetCurrentForest
Page 1 of 1 (1 items)
Copyright 2012 PowerShell.com. All rights reserved.