Export and Import AD Groups

Get Group from AD Get-QADGroupMember oldMoep\WRF-universal | select ntaccountname > C:\ad\WRF-universal.txt Remove spaces get-Content .\WRF-universal.txt | Foreach {$_.TrimEnd()} | Set-Content .\WRF-universal1.txt Import TXT into AD Groups Get-Content .\WRF-universal1.txt | Add-QADGroupMember -identity Moep\WRF-universal

powershell suchen und ersetzen in datei in unterordner

Morgen Zusammen, wie mache ich so etwas am besten? Per Notepad++ geht so etwas auch Per Powershell geht so etwas auch $txtFiles=get-childitem C:test *.xml -recurse foreach ($file in $txtFiles) { (Get-Content $file.PSPath) | Foreach-Object {$_ -replace "Wolf", "Katze} | Set-Content $file.PSPath } http://www.gehbeez.com/replacing-strings-in-multiple-files-in-folder-and-subfolders/

Sammel Links zu interessanten Themen der IT

Reset Outlook Foldernames in OWA http://blog.icewolf.ch/archive/2012/12/06/reset-outlook-foldernames-in-owa.aspx What happens to Outlook 2010 Mailtips if client is offline http://blog.icewolf.ch/archive/2012/12/05/what-happens-to-outlook-2010-mailtips-if-client-is-offline.aspx Powershell and SQL commands / SQL transactions http://blog.icewolf.ch/archive/2012/11/29/powershell-and-sql-commands-sql-transactions.aspx Group Policies, Group Policy Preferences, Tattooing http://blog.icewolf.ch/archive/2012/11/13/group-policies-group-policy-preferences-tattooing.aspx Outlook 2010 Autocomplete http://blog.icewolf.ch/archive/2012/11/09/outlook-2010-autocomplete.aspx Windows Active Directory Group Membership Limitation http://blog.icewolf.ch/archive/2012/10/11/windows-active-directory-group-membership-limitation.aspx Reset Active Directory User Password with Powershell http://blog.icewolf.ch/archive/2012/08/14/reset-active-directory-user-password-with-powershell.aspx Boot Logging with Sysinternals … Continue reading Sammel Links zu interessanten Themen der IT