Skip to content

Kenneth Dalbjerg

Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus

Kenneth Dalbjerg

Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus

  • Home
  • Curriculum Vitae
    • Home
    • 2011
    • January
    • 27
Powershell

Powershell – Get all Security Groups from AD

admin Jan 27, 2011 0 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…

Powershell

Powershell – Export user/mailboxes to CSV file

admin Jan 27, 2011 2 Comments

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

Powershell

Powershell – Import users from CSV file

admin Jan 27, 2011 0 Comments

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

Powershell

Powershell – Show all users in DistributionGroup

admin Jan 27, 2011 0 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

Powershell – Show witch users have access to mailboxes

admin Jan 27, 2011 0 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

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

admin Jan 27, 2011 0 Comments

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

Powershell

Powershell – Get Mailbox permission search on title = InterneServices

admin Jan 27, 2011 0 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 } |…

Powershell

Powershell – Get-DistributionGroup with all email addressess

admin Jan 27, 2011 0 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 } } } |…

Kategori

  • Andet (36)
  • Computer (279)
    • Ahsay (7)
    • Certificate (3)
    • Cisco (7)
    • Dell (7)
    • ESXi (5)
    • HPE (1)
    • Linux (54)
      • Debian (23)
      • Kubuntu (4)
      • Postfix (5)
    • Nimble Storage (1)
    • Programmering (11)
      • PHP (1)
    • vmware (2)
    • VPN (4)
    • Windows (190)
      • Active Directory (3)
      • AppV (1)
      • AzureAD (1)
      • CA (2)
      • Citrix (27)
      • Exchange (44)
      • GPO (1)
      • HyperV (3)
      • MSSQL (30)
      • Office365 (6)
      • Powershell (31)
      • RDS / Terminal (6)
    • Xenserver (14)
  • kennethdalbjerg.dk (13)
  • MIG (51)
  • Sjovt (4)

Links

  • Andersvn.dk – A colleague
  • Collision.dk – A colleague
  • Frijsendal Friskole
  • Gratis mailhotel
  • Guldhammer
  • Heidi Qvistgaard
  • Hestehus.dk
  • HTC Desire HD
  • IPCalc
  • It-afdelingen A/S Århus
  • Labrador Hvalpe
  • Lbjerg.dk – Link Index
  • Maria & Jens
  • Mobilt internet
  • Nyt tag Herning
  • SMTP
  • SMTP Server
  • Tjen Penge

Arkiv

Kalender

January 2011
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Dec   Feb »

Tag Cloud

Active Directory Ahsay Andet AppV AzureAD CA Certificate Cisco Citrix Computer Debian Dell ESXi Exchange GPO HPE HyperV kennethdalbjerg.dk Kubuntu Linux MIG MSSQL Nimble Storage Office365 PHP Postfix Powershell Programmering RDS / Terminal Sjovt vmware VPN Windows Xenserver

cmu.edu

You Missed

PHP

Connect to 365 Exchange mailbox with IMAP and OAuth

MSSQL

Clear mssql cache

AzureAD Office365 Windows

Computer won’t join Azure AD

Andet

Veeam backup and Replication – Failed to call RPC function ‘Vss.TruncateSqlLogs’

Kenneth Dalbjerg

Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus

Copyright © All rights reserved | Blogus by Themeansar.

  • Home
  • Curriculum Vitae