Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
Active Directory
DFS target changes via powershell ?
Last Post 31 Jan 2011 07:27 AM by
Richard Grainger
. 2 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
guv
New Member
Posts:1
30 Jul 2010 07:30 AM
I wanted to find out if in powershell you can make changes to DFS links. We have hundreds of DFS links and I wanted to make changes to the DFS targets of the many links we have setup. At the moment the targets of our links are setups as :
\\servername\directory\.......
I want to change the servername of the target to the full path name, such as servername.domain.com, so the target would read :
\\servername.domain.com\directory.
I have been told by our IT peers access will be quicker then.
Doing this manually will take ages as we have hundreds of links and targets.
Is there anyway in powershell you can run a script which can make this dfs change.
Shaun
New Member
Posts:21
12 Oct 2010 04:14 PM
Only way I do this is to use cmd dfscmd, a Windows command line tool.
Call from pshell
Shaun
Richard Grainger
New Member
Posts:1
31 Jan 2011 07:27 AM
Hi
I've created a a PowerShell module for manipulating DFS using a combination of WMI and native API calls. It is still a work in progress, but check it out and feel free to contribute:
http://dfscommands.codeplex.com/
Regards
Richard
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
Active Directory
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2