Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus
Citrix Certified

Archive for the ‘Windows’ Category

Howto to Push local administrators into domain member computers with GPO

Friday, February 4th, 2011 Posted in Andet, Windows | No Comments »

Security Groups First create a Security groups in you Active directory. I call it IT-Admins. And add members to it. There members hive will be granted locally administrators rights on member computers. Group Policy Create a GPO in the OU where you member computers ...

Backup of Exchange 2010 database level and document level with Ahsay

Friday, February 4th, 2011 Posted in Ahsay, Exchange, Windows | 4 Comments »

Installation of the Ashay Client: Download the Ahsay Client: http://eval.ahsay.com/obs/download/obm-win.exe After the installation please apply the latest hotfix. http://download.ahsay.com/support/hot-fixes/55/obm-win-hotfix.zip Put the content of the hotfix into the folder: c:\program files\ahsayobm\ Disable Continous Backup services Database level: To backup the database level, just select Exchange Database Level, and ...

Powershell – Get all Security Groups from AD

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

First install http://www.quest.com/powershell/activeroles-server.aspx Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue $File = “C:\ita\securitygroups.txt” $AllGroups = get-qadgroup -grouptype "Security" | select name, Description $AllGroups | Foreach { echo "" echo "" echo $_.name echo $_.description } | out-File $File

Powershell – Export user/mailboxes to CSV file

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

get-mailbox | select name, alias, samaccountname, RecipientType, RecipientTypeDetails, displayname | export-csv C:\ITA\usersexport.csv -encoding unicode

Powershell – Import users from CSV file

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

import-csv user.csv | foreach-object { echo $_.Displayname New-Mailbox -name ( $_.Name)` -Alias $_.Alias` -SamAccountName $_.SamAccountName` -RecipientType $_.RecipientType` -RecipientTypeDetails $_.RecipientTypeDetails` -Displayname $_.Displayname` }

Powershell – Show all users in DistributionGroup

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

$File = "C:\ita\groupslog.txt" $Mailboxes = Get-DistributionGroup | select name , alias ,displayname,EmailAddresses $Mailboxes | ForEach { echo "" echo "" echo $_.name Get-DistributionGroupMember -id $_.alias } | out-File $File

Powershell – Show witch users have access to mailboxes

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

$file =  "C:\ita\fulladgang.txt" $AllUsers = get-mailbox  | select SamAccountName, name, alias $AllUsers | Foreach { echo "" echo "" echo "" echo $_.name get-mailboxfolderpermission -identity $Mailbox } | out-File $File

Powershell get all users with title = “Interneservices” – Search on title on get-user

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

get-user -filter {Title -eq "InterneServices"} | select name

Powershell – Get Mailbox permission search on title = InterneServices

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

$File = "C:\ita\fulldadgang-services.txt" $AllUsers = get-user -filter {Title -eq "InterneServices"} | select name $AllUsers | Foreach { echo "" echo "" echo "" echo $_.name Get-MailboxPermission -identity $_.name } | out-File $File

Powershell – Get-DistributionGroup with all email addressess

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

$File = "C:\ita\groupslog.txt" Get-DistributionGroup | select name , alias ,displayname,EmailAddresses | foreach { “Name: “+$_.name “Alias: “+$_.alias “Displayname“ +$_.displayname $_.EmailAddresses | foreach { if($_.SmtpAddress){ “SmtpAddress: “+$_.SmtpAddress } } } | out-File $File