Exchange and Activesync: Limiting the mailbox to sync with only one device

Just came back from a customer which needed to limit the number of mobile device to one per mailbox. For this implementation the customer used all kind of smart phones, so the challange was also to find the unique Device ID from the Smartphone and add it to a Active Directory Attribute called: msExchMobileAllowedDeviceIDs. I created a Powershell script which read a text file and add the ID to AD. The script is also adding a dummy ID for all other mailboxes. It could also be disabled but the customer was more satisfied with the error from a wrong device [...]

By | 2011-05-17T12:04:59+00:00 May 17th, 2011|Powershell|0 Comments

Technet Julekalender d. 22. december 2010 (opdateret med svar)

Technet julekalenderen er godt igang og undertegnet deltager med spørgsmålet d. 22. december. Der er masser af spændende præmier i spil og en masse interessante spørgsmål. Spørgsmålet som findes nederst i denne blog post (fra d. 22. december kl. 09:00), kan besvares fra d. 22. december, når Bjarne Dollerup har givet startskuet, dette kan følgende på hans blog eller på Twitter (@ bdollerup). Svaret skal sendes som email Den første som svarer rigtigt bliver kontaktet, og vinderen vil denne blive annonceret på bloggen. Spørgsmålet burde kunne besvares enten fra almindelig viden, eller ved at søge lidt på min blog. [...]

By | 2017-08-22T13:09:43+00:00 December 21st, 2010|Powershell|2 Comments

Microsoft Scripting Games 2010

  It is almost time for the annual Scripting Games at Microsoft Scripting Guys! Scripting games is a fun “competition” with a lot of different scripting challenges. This year it is held from April, 26 – May 7. I suggest all scripters to join the fun!, it is good practice for both newcomers and hardcore scripting guys!, since there is both a basic and advanced part of the challenges! All challenges can be solved in VBScript or Powershell. This year i have been selected to make one of the expert solutions, so check out my solution at VBScript: Advanced event [...]

By | 2010-04-20T12:50:29+00:00 April 20th, 2010|Powershell, Scripting & Development|0 Comments

Automate your group creation with Powershell

One of our very good customers are managing servers with an dedicated internal administrator as a primary contact for each server. They are managing this one to one relation with an Excel sheet. A while ago we talked about automating this group creation with powershell, so the last time Jacob and I was discussing Powershell in Operations Manager we found a solution - Jacob who is the best Danish Powershell Guru of cause did a superoptimization of my first script and now its up to you to test it on your own. Please change the first lines of the script to [...]

Powershell – WMI: Working with Shares – Part 1: Creating a Share with Custom Permissions

Download Script: Intro: Last week, i was teaching a Powershell course (MOC6434), when a student asked me, how to create a share with custom permissions via WMI. I tried to find an answer for him, but could not really find any examples, cmdlets or functions for it. I found some examples and help in vbscript, so i decided to make some powershell functions of my own. I Created these functions that uses the Win32_Share class of WMI. They support remote creation and multiple permissions. New-Share is for creating a share. New-ACE is for creating one or more ACEs [...]

Powershell Acticvesync wipe

In this Powershell sample (created with ASE) - its possible to create a simple form to let Helpdesk manage Activesync Devices, this is done by finding and wipe/unwipe the device. Feel free to change and clean-up ;-) - Try ASE - - Its a great editor. [crayon-5a12c3383cac5396971981/]

By | 2009-02-11T17:05:46+00:00 February 11th, 2009|Powershell|1 Comment

Usefull Powershell Links and Books.

Links: Microsoft Scripting guys! Forum: Usually you will get very quick replys and help in there Powershell 2.0 and others for All Windows (Windows Management Framework) Writing Help for Windows Modules Importing / Exporting Credentials in Powershell (Manually create Credential object) Working wth ODBC: Create Custom Inputbox: Working with Arrays: Change Error Message Colors: PowerBoots - Interface for creating WPF GUI's in powershell Powershell SDK: Free PowerShell Commands for Active Directory Blog: ADPowershell: Outputting Calculated Coloumns in Powershell: The Scripting Guys: How does the RemoteSigned execution policy [...]

By | 2009-01-09T17:22:40+00:00 January 9th, 2009|Powershell, Scripting & Development|1 Comment