About Terminal Server, Citrix, Delphi and other stuff
16 Jan
After reading Andy Morgan’s (excellent) blog post about Removing Screen Resolution and Personalize shell extensions from a users desktop session I couldn’t help it.
I had to write a PowerShell script to take ownership of the mentioned registry keys. So here goes:
2 Dec
I needed to read out the Maximum Password age with a PowerShell script in a Windows 2003 domain.
Reading out the maxPwdAge attribute is a trivial task in PowerShell (I am re-using the function AdsLargeIntegerToInt64):
In my case this returns the value -78624000000000 but how do we interpret this?
2 Dec
I was creating a small dialog in an .hta file and to make a little prettier for the user I included a company logo:
But I wanted to deploy the .hta as a single file.
1 Dec
Some Active Directory attributes return an 8 byte integer in the form of an IADsLargeInteger interface. An example is the pwdLastSet attribute from a user object.
Because the IADsLargeInteger object doesn’t provide type information PowerShell cannot read the HighPart and LowPart properties.
So I wrote the function below to get the Int64 value of an IADsLargeInteger:
8 Nov
Today one of my collegues asked me to write a script that performs two actions for all users of a certain Organizational Unit:
Sounds like a PowerShell job right?
I reused my function to set NTFS Permissions by SID:
4 Nov
For a script I needed to create an AQS (Advanced Query Syntax) Query that contained a date range.
An example of such is a range is: date:11/05/04..11/10/04
However we need to account for regional settings where for example the data seperator and the order of day and month may be different.
In my example I wanted to match any data that is 30 days or older so let’s do this in PowerShell:
28 Sep
In Part 2 I showed some details about Mailbox Rule corruptions that can disturb Mailbox Moves.
For this part the topic is Mailbox size, which can be an important factor in deciding which mailboxes you want to move first.
In my case the mailbox size was important because we agreed to move smaller mailboxes during the day but larger mailboxes only outside working hours.
For Exchange 2010 mailboxes it’s very easy to obtain the size using PowerShell.
Example:
| DisplayName | ItemCount | TotalItemSize |
| Remko Weijnen | 313 | 34.87 MB (36,564,183 bytes |
But how can we get the Mailbox Size for Exchange 2003 mailboxes?
28 Sep
Sometimes I want to process a list of “things” easily in PowerShell where the list is not in an external file but in the script itself.
Ideally this list would not be separated by e.g. a comma so it can be easily copy/pasted from external data sources.
Something like this:
2 Sep
I am currently creating a PowerShell script that creates a user with all needed Active Directory attributes, Exchange mailbox, (TS) Home- and Profile directories and so on.
In such a script you can easily get failures because of Active Directory replication.
2 Sep
Function below can be used to check if a given Username exists in Active Directory:
$objDomain = New-Object System.DirectoryServices.DirectoryEntry
$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = $objDomain
$objSearcher.PageSize = 1000
$objSearcher.Filter = $strFilter
$objSearcher.SearchScope = "Subtree"
$colResults = $objSearcher.FindAll()
return [bool]($colResults -ne $null)
}
Active Directory Altiris bug Citrix Dell Delphi Exchange Exchange2003 Exchange2010 Hewlett-Packard HP iOS Jailbreak Java LinkedIn Linux MSI MySQL Navigation Objects Office Outlook Passat PowerPoint PowerShell referall was returned RNS315 RNS510 SasLibEx script slow Terminal Server ThinApp TSAdmin TSAdminEx VBS VCDS Vista VMWare Volkswagen Windows PE WLAN Wordpress WTSWaitSystemEvent wts_event_flush
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.