SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


powershellad
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
powershellad [2013/07/09 14:56]
sjoerd [Connect to Different Domain]
powershellad [2013/07/09 14:56] (current)
sjoerd [Examples]
Line 69: Line 69:
  
 get-qadgroup -SizeLimit 0 | where {$_.ParentcontainerDN -ne "​CN=Builtin,​DC=newdomain"​} | where {$_.ParentcontainerDN -ne "​CN=Users,​DC=newdomain"​}| where {$_.ParentcontainerDN -ne "​OU=SMS,​DC=newdomain"​}| where {$_.groupscope -eq "​universal"​} | select Name | sort Name | Export-Csv -notypeinformation "​F:​\ad-groups-newdomain-universal.csv"​ get-qadgroup -SizeLimit 0 | where {$_.ParentcontainerDN -ne "​CN=Builtin,​DC=newdomain"​} | where {$_.ParentcontainerDN -ne "​CN=Users,​DC=newdomain"​}| where {$_.ParentcontainerDN -ne "​OU=SMS,​DC=newdomain"​}| where {$_.groupscope -eq "​universal"​} | select Name | sort Name | Export-Csv -notypeinformation "​F:​\ad-groups-newdomain-universal.csv"​
 +</​code>​
  
 {{tag>​scripts ad}} {{tag>​scripts ad}}
powershellad.txt ยท Last modified: 2013/07/09 14:56 by sjoerd