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 | |
Allow a microsoft 2007 exchange enabled mailbox user the ability to send as | |
an alias | |
.DESCRIPTION | |
From time to time customers want to have the ability to add an extra email | |
address to their mail service at no extra cost. This can be accomplished | |
by creating a new distribution group, subscribing the existing mailbox | |
to the new distributino group and giving the AD user object send-as permission | |
over the group object. |
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
Function Set-AllMsExchRequireAuthToSendToNull | |
{ | |
Param( | |
[Parameter(Mandatory=$true)] | |
[String[]]$HostingContainerDn | |
) | |
foreach ($container in $HostingContainerDn) | |
{ | |
$ou = Get-QADObject $container |
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
import glob | |
fileNames = glob.glob("/var/log/mail*") | |
recipient = "username@example.com" | |
greylistEntries = [] | |
for fileName in fileNames: | |
for line in open(fileName).xreadlines(): |
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
Param( | |
[Parameter(Mandatory=$true)] | |
$FilePath | |
) | |
$computername=$env:COMPUTERNAME | |
$uninstallKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall" | |
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $computername) |
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
<html> | |
<head> | |
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script> | |
<script src='http://malsup.github.com/jquery.cycle.all.js'></script> | |
</head> | |
<body> | |
<div id='slideshow'> | |
<div>Morons</div> | |
<div>Not Morons</div> |
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
rm -r *.ext |
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
[DCINSTALL] | |
InstallDNS=yes | |
NewDomain=forest | |
NewDomainDNSName=au.sky | |
DomainNetBiosName=au | |
ReplicaOrNewDomain=domain | |
ForestLevel=4 | |
DomainLevel=4 | |
DatabasePath=%systemroot%\ntds | |
LogPath=%systemroot%\ntds |
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
/** | |
* Created with IntelliJ IDEA. | |
* User: luke.muccillo.admin | |
* Date: 26/07/12 | |
* Time: 4:18 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
public class EntryPoint { | |
public static void main(String[] args) | |
{ |
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
Function Get-EmailAddresses | |
{ | |
Param( | |
[Parameter(Mandatory=$true)] | |
$Identity) | |
$mailbox = Get-Mailbox $Identity | |
$aliases = @() | |
$addresses = $mailbox.EmailAddresses | % { $_.addressString } | |
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 | |
Get-UserLoginActivity lists user log in and log out events for a given NTAccountName | |
.Example | |
Get-UserLoginActivity -ServerName "." -NTAccountName "contoso\username" | |
Gets all user log on and log off events on the current server for the | |
user with ntAccountName - contoso\username. |
OlderNewer