This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Discover all VMs in a specific vSphere Cluster | |
$AllVMs = Get-Cluster PROD | Get-VM | ? { $_.Name -notlike 'vCLS*' } | |
### Create empty hash table | |
$hashtable = @{} | |
### Fill hash table with a mapping VM <> host | |
foreach ($i in $AllVMs) { | |
$hashtable.add($i.name, $i.vmhost) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Get events | |
$Event = Get-EventLog -LogName Security -InstanceId 4720 -Newest 1 | |
#get some details | |
$User = $Event.ReplacementStrings[0] | |
$Creator = $Event.ReplacementStrings[4] | |
$Domain = $Event.ReplacementStrings[5] | |
# smtp server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Get events | |
$Event = Get-EventLog -LogName Security -InstanceId 4756 -Newest 1 | |
#get some details | |
$User = $Event.ReplacementStrings[0] | |
$Antragsteller = $Event.ReplacementStrings[6] | |
$Gruppe = $Event.ReplacementStrings[2] | |
# smtp server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Get events | |
$Event = Get-EventLog -LogName Security -InstanceId 4732 -Newest 1 | |
#get some details | |
$User = $Event.ReplacementStrings[0] | |
$Antragsteller = $Event.ReplacementStrings[6] | |
$Gruppe = $Event.ReplacementStrings[2] | |
# smtp server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Get events | |
$Event = Get-EventLog -LogName Security -InstanceId 4728 -Newest 1 | |
#get some details | |
$User = $Event.ReplacementStrings[0] | |
$Antragsteller = $Event.ReplacementStrings[6] | |
$Gruppe = $Event.ReplacementStrings[2] | |
# smtp server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Get events | |
$Event = Get-EventLog -LogName Security -InstanceId 4740 -Newest 1 | |
#get some details | |
$User = $Event.ReplacementStrings[0] | |
$Computer = $Event.ReplacementStrings[1] | |
$Domain = $Event.ReplacementStrings[5] | |
# smtp server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Liste aller Mailboxen | |
$Mailboxes = Get-Mailbox -OrganizationalUnit "OU=lamadrama,DC=domain,DC=local" | Sort-Object -Property Alias | |
# Liste der fehlgeschlagenen Mailboxen | |
$FailedMailboxes = @() | |
# Begrenzt die Anzahl der zu verarbeitenden Mailboxen | |
# $Mailboxes = $Mailboxes[0..4] | |
# Hier passiert die Magie... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace srv_exchange with the desired server name and ip address | |
# Add one server object for each of your Exchange servers | |
add server srv_exchange1 x.x.x.x | |
add server srv_exchange2 x.x.x.y | |
# Replace x.x.x.x with the desired IP address | |
add cs vserver cs_vsrv_exchange SSL x.x.x.x 443 -cltTimeout 180 -caseSensitive OFF | |
add lb vserver lb_vsrv_exchange_owa SSL 0.0.0.0 0 -persistenceType NONE -cltTimeout 180 | |
add lb vserver lb_vsrv_exchange_ecp SSL 0.0.0.0 0 -persistenceType NONE -cltTimeout 180 | |
add lb vserver lb_vsrv_exchange_ews SSL 0.0.0.0 0 -persistenceType NONE -cltTimeout 180 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install apt-transport-https ca-certificates -y | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
sudo apt-get update | |
sudo apt-get purge lxc-docker | |
sudo apt-get install linux-image-extra-$(uname -r) -y | |
sudo apt-get install docker-engine cgroup-lite apparmor -y | |
sudo usermod -a -G docker $USER | |
sudo service docker start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
This script checks if the iovDisableIR setting is set to FALSE. If not, it will set iovDisableIR to FALSE. | |
.DESCRIPTION | |
The script checks the current setting of the Intel IOMMU interrupt remapper (iovDisableIR) and changes the setting | |
if necessary. | |
The script needs a single parameter: | |
NewerOlder