You could try click right now to gain a decent amount of casino bonuses. You could try ugambleonline real money right now to gain a decent amount of casino bonuses. Casinos on the internet gambling black jack games with click best gambling craps no deposit. On-line casinos attempt giving us all the very best baccarat microgaming casinos blackjack. online gambeling bonuses player just which deposit. ranong three card poker online craps casinos craps kit for pool table

play online casino on mac Play canadian friendly online casinos no deposit casino canadian casino winnings in u s. joueur de bonus juste qui se déposent.


Remove Exchange Inherited permissions to Mailboxes

Posted by paris on Nov 20, 2014 in Random

140257-thumb_exchange_original[1]So I had to go through and remove some legacy permissions from Exchange. This can be added at multiple levels so it’s aways a diagnostic trail to where this was added. Go through each of these and if IsInherited is set to False you’ve found out where it’s being applied from

1) Get-MailBoxPermission domain\user

2) Get-MailboxDatabase | Get-ADPermission -user domain\user

3) Get-ExchangeServer | Get-ADPermission -user domain\user

4) Get-OrganizationConfig | Get-ADPermission -user domain\user

Remove the Permissions per level with

(Get-OrganizationConfig / Get-OrganizationConfig  / Get-OrganizationConfig) Choose one of these depending where the permissions are inherited from  | Remove-ADPermission -user domain\username -AccessRights GenericAll

Some of the permissions where also added from AD.

Open up ADSI Edit and Navigate to these :

In “Domain NC” OU=Microsoft Exchange Security Groups,DC=mydomain,DC=com
In “Domain NC” CN=
Microsoft Exchange System Objects
In “Configuration Container” CN=Microsoft Exchange,CN=Services,CN=Configuration,

Make sure the user is not in any of these

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: , , ,


How to Renew/Replace SSL Certificate on Mobile Iron MDM Server

Posted by paris on Nov 19, 2014 in Random

0608d9febb596d76b881b3c767ef1832_400x400[1]Login to Mobile Iron Mics

Go to Security then Certificate Mgmt

Click Manage Certificates , then Choose Generate CSR , Enter Details and use correct Key Length with the Certificate Provider. After Clicking Generate , copy the CSR Request as well as the private key text into Notepad

Use the CSR to generate a Certificate Request from a Third Party e.g. Digicert.

Download the .CER from the Provider as well as any Root Certs ( DigiCert there is one )

Edit the .CER File in Windows Notepad and add the Private Key Text to the top , as well as the Root Cert text in Order e..g


<—-Private key Start—–>

<—-Private key End—–>

<—-Root key Cert Start—–>

<—-Root key Cert End—–>

<—-MDM Certificate key Cert Start—–>

<—-MDM Certificate key Cert Close—–>

Save this as Cert without a file type

Upload this to Mobile Iron’s Client TLS and Portal HTTPS


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: , , , , , , , , ,


Citrix Error When Opening Application

Posted by paris on Nov 18, 2014 in Random

CitrixErrorWhen opening a Citrix Application the below error shows up

System.Runtime.JnteropServices.COMException (Ox80004005): Error HRESULT E_FAIL has been returned from a cal to a COM component.
at System. Windows.Forms.UnsafeNatiVeMethods.CoCreatelnstance(Guld& clsld, Object punkOuter, Int32 context, Guld& Ud)
at System. Windows.Forms.AxHost.CreateWithoutlicense( Guld clsid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guld clsid} at System.Windows.Forms.AxHost.CreatelnstanceCore(Guld clsld)
at System.Windows.Forms.AxHost.CreateinstanceO
at System. Windows.Forms.AxHost.GetOcxCreateO
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System. Windows.Forms.AxHost.CreateHandleO
at System. Windows.Forms.Control.CreateControl(Boolean flgnoreVisible)
at System. Windows.Forms.Control.CreateControl(Boolean flgnoreVlsible)
at System. Windows.Forms.Control.CreateControlQ
at System.Windows.Forms.Control.Contro!Colled:ion.Add(Control value)
at Citrix.DesktopViewer.MainWindow.StartConnectionQ
at Citrix.DesktopViewer.MainWindow.MainWindow_Shown(Object sender, EventArgs e) OK

Reboot the machine , after installing Citrix Reciever the computer needs rebooting even though it does not ask for it ( especially if it’s been installed to a single user )

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)


Printer Backup and Restore via VBS Script to TXT file

Posted by paris on Nov 14, 2014 in Code

Rebuilding profiles can sometimes be time consuming especially documenting settings. I created a script to backup the current printers the User had and wrote it to a test file ( including Default Printer ) so that this could be run to backup , then restored from this file in the Restore Script

Backup Printer List

Const ForWriting = 2
Set objNetwork = CreateObject("Wscript.Network")
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set DefPrinters = objWMIService.ExecQuery _
     ("Select * from Win32_Printer Where Local = FALSE AND Default = True")
For Each DefPrinter in DefPrinters
    strText = strText & "Default : " & DefPrinter.Name & vbCrLf
Set colPrinters = objWMIService.ExecQuery _
    ("Select * From Win32_Printer Where Local = FALSE AND Default = False")
For Each objPrinter in colPrinters
    strText = strText & objPrinter.Name & vbCrLf
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile _
    ("h:\Printers.txt", ForWriting, True)
objFile.Write strText


Restore Printer List


Const ForReading = 1
Const TristateUseDefault=-2
Set wshnet = CreateObject("Wscript.Network")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile ("h:\Printers.txt", ForReading, True, TristateUseDefault)
Do Until objFile.AtEndOfStream
	strNextLine = objFile.Readline
	if left(strNextLine,10) = "Default : " THEN
		strNextLine = replace(strNextLine, "Default : ", "")	
		wshnet.AddWindowsPrinterConnection strNextLine
		wshnet.SetDefaultPrinter strNextLine
	wshnet.AddWindowsPrinterConnection strNextLine


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: , , , ,


Getting a list of Citrix Servers from an Application in Powershell

Posted by paris on Nov 13, 2014 in Code

I was trying to get a list of servers from an application via qfarm /app ‘ApplicationName’ however the output it gave me was text rather then an array.

Below is how to get an array into powershell using the Citrix Powershell Snapin Instead

Add-PSSnapin Citrix*
$servers = Get-XAServer -BrowserName 'Application Name'| select ServerName
foreach ($server in $servers) {
#do Something per server
Write-Host $server.ServerName


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)



Delete Items from a specific folder with Exchange Powershell EWS within Date Range

Posted by paris on Nov 12, 2014 in Code

Below is the command to extract ( Archive ) emails from a particular folder into a PST

#Archive Items from a certain folder
New-MailboxExportRequest -mailbox %mailboxname% -IncludeFolders "path/to/folder/ -ContentFilter {(Received -lt '08/01/2014')} -FilePath \\path\to\pstfile.pst

However due to Exchange updates , the MailboxExport command does not work anymore ( which had the -deletecontent command) and Search-Mailbox does not have any functionality to Include just specific folders. So we have to use powershell EWS below

Note - By default ItemView has a limit of 1000 in exchange, the command below you will probably want to increase this say to 10,000 or even 50,000 so you don’t have to rerun this lots of times. After each run it will tell you how many items it has deleleted. You need to run the powershell script with a useraccount that has a throttling policy set above 1000.

e.g. Set-ThrottlingPolicy PolicyName -EWSFindCountLimit 50000

Set-Mailbox useraccount -ThrottlingPolicy PolicyName

$mailbox = Get-Mailbox %mailboxname%
$mailAddress = $mailbox.PrimarySmtpAddress.ToString();
[Reflection.Assembly]::LoadFile("C:\Program Files (x86)\Microsoft\Exchange\Web Services\2.1\Microsoft.Exchange.WebServices.dll") | Out-Null
$s = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010)
$ItemView = New-Object Microsoft.Exchange.WebServices.Data.ItemView(10000)
$MailboxRootid = new-object  Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::MsgFolderRoot,$mailAddress)
$MailboxRoot = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($s,$MailboxRootid)
# Get Folder ID from Path
Function GetFolder()
	# Return a reference to a folder specified by path
	$RootFolder, $FolderPath = $args[0];
	$Folder = $RootFolder;
	if ($FolderPath -ne '\')
		$PathElements = $FolderPath -split '\\';
		For ($i=0; $i -lt $PathElements.Count; $i++)
			if ($PathElements[$i])
				$View = New-Object  Microsoft.Exchange.WebServices.Data.FolderView(2,0);
				$View.Traversal = [Microsoft.Exchange.WebServices.Data.FolderTraversal]::Deep;
				$View.PropertySet = [Microsoft.Exchange.WebServices.Data.BasePropertySet]::IdOnly;
				$SearchFilter = New-Object Microsoft.Exchange.WebServices.Data.SearchFilter+IsEqualTo([Microsoft.Exchange.WebServices.Data.FolderSchema]::DisplayName, $PathElements[$i]);
				$FolderResults = $Folder.FindFolders($SearchFilter, $View);
				if ($FolderResults.TotalCount -ne 1)
					# We have either none or more than one folder returned... Either way, we can't continue
					$Folder = $null;
					Write-Host "Failed to find " $PathElements[$i];
					Write-Host "Requested folder path: " $FolderPath;
				$Folder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($s, $FolderResults.Folders[0].Id)
try {
	$FolderObject = GetFolder($MailboxRoot, "path\folder\");
#Date from and To
    $findItemResults = $FolderObject.FindItems("System.Message.DateReceived:01/01/2014..01/08/2014",$ItemView)
        foreach ($item in $findItemResults.Items) {
                try {
#Comment Below out to not delete
                    $Deleted ++
#Uncomment below to list before deleting
					#Write-host $item.DateTimeReceived 
                } catch {
                    Write-warning "Unable to delete item, $($item.subject).  $($Error[0].Exception.Message)"
    if ($Deleted -gt 0) { Write-host "$Deleted mail items deleted from the Inbox." }
} catch {
    Write-warning "Could not connect to Inbox.  $( $_.exception.message )"
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: , , , , , , ,


cannot find an overload for “delete” and the argument count 0

Posted by paris on Nov 11, 2014 in Research

In Exchange EWS when trying to delete an item you get the following error : cannot find an overload for “delete” and the argument count 0 using



You need to give it a an enumeration e.g.

They can be found here :



VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: , , ,


C&C False Call Back Detections to

Posted by paris on Oct 31, 2014 in Random


  1. Overview


On October 30, 2014, at approximately 6 AM (GMT time), Trend Micro started to receive several customer reports regarding a false detection of Command and Control (C&C) callbacks as alerted by Trend Micro Command and Control Contact Alert (CCCA) service.


Trend Micro’s CCCA service provides enhanced detection and alert capabilities to mitigate the damage caused by advanced persistent threats and targeted attacks. CCAC services integrate with Trend Micro’s Web Reputation Services (WRS) which determine the action taken on detected callback addresses based on the web reputation security level.


The C&C IP list further enhances C&C callback detections using the Network Content Inspection Engine (NCIE) to identify C&C contacts through any network channel.


The reports indicated that contacts to certain IP addresses, most notably, were causing the false detection hence populating the associated logs with this faulty C&C alert information. This was found to be caused by some changes made in CCCA pattern version 1.10077.


  1. Resolution


The false detection issue was resolved by dropping the incorrect IP addresses in CCCA pattern version 1.10079, which was released on October 30, 2014, at approximately 6:51 AM (GMT).


Some additional preventive measures were added in CCCA pattern version 1.10081, which was also released on October 30, at approximately 9:42 AM (GMT).


Trend Micro is currently conducting a full root cause analysis (RCA) to determine how and why the incorrect IP addresses were originally added and ways to prevent similar issues from happening again in the future.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: , , , ,


Batch Import Public Holidays into All Users Mailboxes with Exchange EWS Powershell

Posted by paris on Oct 23, 2014 in Code

I based this script off of one referenced here :

However I modified Adding a Category to the item, as well as adding this to All Users of a AD Group recursively instead of a single user. This will add a list of Holidays to Users Calendars across an organisation. If run again it will not import duplicates and have fields there to delete the duplicate Calendar enteries if needed

The user running this will need the impersonation role setup see this :

New users can then have an email sent to them automatically ( ) with a .HOL file to run

#Import file of Holidays Set Out with Country,Date, Holiday Titles
$file = Import-Csv -Path "C:\scripts\publicholiday2015.csv"
#Declare Country to Import
$Country = "Australia"
# set Group Name to Import to
$group = "#All Melbourne Offic"
  #Recursive Group Search due to Issue of Groups Inside of Groups for Melboure
    function getMembership($group) {
        $searchGroup = Get-DistributionGroupMember $group -ResultSize Unlimited
        foreach ($member in $searchGroup) {
            if ($member.RecipientTypeDetails-match "Group" -and $member.DisplayName -ne "") {
            else {
                if ($member.DisplayName -ne "") {
      $mailAddress = $member.PrimarySmtpAddress.ToString();
      Write-Host "Accessing mailbox" $mailAddress
      Write-Output "Accessing mailbox $mailAddress"
      Write-Host "Importing holidays for" $Country
      Write-Output "Importing holidays for $Country"
      [String] $dllPath = "C:\Program Files (x86)\Microsoft\Exchange\Web Services
      [Void] [Reflection.Assembly]::LoadFile($dllPath)
      $Service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService
      #$Service.AutodiscoverUrl($mbxName, {$True})
      $Service.ImpersonatedUserId = New-Object
      #$Service.UseDefaultCredentials = true;
      $Service.Url = new-Object Uri
      # This is the root folder from where we want to start searching for the
folder we want to delete.
      # Once we find it, then we will go recursively down that folder.
      # Other option would be to get the FolderID and start the search straight
from there
      $CalendarFolderId = new-object Microsoft.Exchange.WebServices.Data.FolderId
([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Calendar, $mailAddress)
      #$RootFolderID = new-object Microsoft.Exchange.WebServices.Data.FolderId
([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Root, $mbxName)
      $CalendarFolder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind
($Service, $CalendarFolderId)
      foreach ($line in $file)
       if ($line.Country -eq $Country)
       Write-Host "Holiday name and date: " $line.Holiday $line.Date
       Write-Output "Holiday name and date:" $line.Holiday $line.Date
        $SearchFilterCollection = New-Object
        $SearchFilter1 = new-object
        $Start = new-object System.DateTime
          $Start = $Start = [System.DateTime]::Parse($line.Date)
        $SearchFilter2 = new-object
        $itemView = new-object
        $itemView.PropertySet = new-object
        $findResults = $Service.FindItems
        if ($findResults.Items.Count -eq 0)
         $Appointment = New-Object
Microsoft.Exchange.WebServices.Data.Appointment -ArgumentList $service  
         #Set Subject  
         $Appointment.Subject = $line.Holiday
         #Set Start Time  
         $Appointment.Start = [System.DateTime]::Parse
         #Set Start Time  
         $Appointment.End = [System.DateTime]::Parse
         #Mark as all day event 
         $Appointment.IsAllDayEvent = $true;
         #Add Country to Item
         $Appointment.Location = $line.Country
         #Change Category to Holiday
         #Show as free
         $Appointment.LegacyFreeBusyStatus =
         #Create Appointment will save to the default
         Write-Host "Element created!"
         Write-Output "Element created!"
         Write-Host "Holiday exists!"
         Write-Output "Holiday exists!"
         #Uncomment Below to delete Holidays in Users
Calendar if they exist
        #foreach($item in $findResults.Items)
         #    $item.Load()
         #    $item.Delete
         #    Write-Host "Element deleted!"
         #    Write-Output "Element deleted!"
## Run the function
$findResults = $null
$itemView = $null
$SearchFilter1 = $null
$SearchFilter2 = $null
$SearchFilderCollection = $null
$CalendarFolder = $null
$CalendarFolderId = $null
$Service = $null



VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: , , , , , , ,


Send on behalf of from drafts folder in outlook 2010 shows from From Entry

Posted by paris on Oct 13, 2014 in Fixes


- Manager saves unsent email to his Drafts folder in Outlook 2010
- Secretary has manager’s mailbox listed in her Outlook 2010 folders list.
- Secretary accesses her manager’s Drafts folder and sends the email for him with his credentials in the From field (email sends without issue).

Per Outlook 2003 this is a known fault

However Outlook 2010 it should not do this


Go to the From Field and delete all the autocompleted From Fields

Remove the Show From Field and Close Outlook

Reopen Outlook and try again

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: , ,

Copyright © 2014 Welcome to All rights reserved. Theme by Laptop Geek. Privacy Policy