Om Jakob Gottlieb Svendsen

Twitter: @JakobGSvendsen

Jakob Gottlieb Svendsen is a Microsoft Cloud and Data Center Management MVP (http://mvp.microsoft.com/en-us/default.aspx), Working as Global Lead Developer, Senior Consultant and Trainer at CTGlobal, where he is one of the driving forces in keeping CTGlobal a System Center Gold Partner and member of the System Center Alliance.

Since he started at Coretech in 2007, he has focused on Scripting and Development, primarily developing tools, extensions and scripts for the System Center Suite. His main area is Automation (including OMS/Azure Automation, Service Management Automation, PowerShell and Orchestrator). Another area is Windows Azure Pack / Azure Stack, where he does implementation, development, workshops and presentations. He is a world-wide renowned voice in the Automation field.

He is passionately devoted to the community, to which he contributes by being a moderator at TechNet and sharing his knowledge at https://blog.ctglobalservices.com/jgs

  • Co-founder: PowerShell User Group Denmark
  • Speaker at MMS 2016, Minneapolis (www.mmsmoa.com)
  • SCU Europe 2014, 2015, 2016 (www.systemcenteruniverse.ch)
  • Microsoft TechEd North America 2014, Houston
  • NIC 2012,2013,2014,2015, Oslo (www.nic.com)
  • Microsoft CampusDays 2011, 2013, Copenhagen
  • Microsoft TechDays 2015, Sweden (www.techdays.se)
  • Microsoft Partner Event: New in SC2012 SP1
  • User group meetings (PSUG.DK , SCUG.DK/BE/NO, AZMUG + more)
  • Microsoft Certified Trainer.
  • Microsoft Scripting Guys Forum Moderator

Main working areas:

  • Automation (Azure Automation, SMA, SCO)
  • Windows Azure Pack / Azure Stack
  • System CenterVisual Studio Team Services / Team Foundation Server
  • Development:C#.Net, VB.NET, VBScript, PowerShell, Service Manager, OpsMgr, ConfigMgr
  • Orchestrator
  • Windows Azure Pack / Azure Stack

Training:

  • Azure Automation
  • Service Management Automation
  • System Center Orchestrator
  • PowerShell, VBScript, C#.Net, VB.Net
  • Windows Azure Pack / Azure Stack Development Workshops

Adding users to Configuration Manager 2007 with specific Class Permissions via VBScript

[download id="41"] The Configuration Manager 2007 SDK, has a lot of missing examples and parts that are not well documented. One of them is the part about User permissions and how to add them. During the development of the install script for our HTA solution, I had to create a HTA user, with special permissions for the different classes on the site server. I create function called "SetConfigMgrPermission" for this specific purpose. It is actually a quite simple function. I requires: Connection: this is a standard configmgr connection, created by the connect function from the SDK. The downloadable script contains [...]

By |2011-05-31T16:02:37+01:00maj 31st, 2011|Configuration Manager (SCCM), Scripting & Development|Kommentarer lukket til Adding users to Configuration Manager 2007 with specific Class Permissions via VBScript

VBScript: Cleanup all computer objects for local PC

[download id="40"] When we are deploying OS via ConfigMgr, we usually do a cleanup of all old objects before creating the new object. This helps prevent errors and mistakes, and is pretty easy to do. We are able to use both SMBOIS GUID and Mac addresses for the cleanup. usually I recommend using mac addresses, since I have experienced that laptops who have had their mainboard exchanged, have the BIOS GUID of "0000-00000-0000-0000", this happens because the repair shop forgets to write in the GUID after the repair. The mac addresses are always usable , since they are not typed [...]

Coretech Package Source Changer 0.3.0.0 Beta

[download id="39"] This is the post that describes the tool and configuration. Please view  this guide https://blog.ctglobalservices.com/kea/updating-the-package-source-in-configuration-manager-2007/ by my colleague Kent Agerlunds, on how to use it in a ConfigMgr Migration 1. Introduction   As we start migrating from CM2007 to CM2012 one of the requirements is that the package source used for packages must be a UNC. I have seen many site installations where the package source is either a local source on the site server or a UNC pointing to the site server. In either case, you must somehow update the package source before starting the migration. This utility [...]

Tool for Installing the Opalis Operator’s Console Automatically !

  Hello Everyone In the last few weeks, I have been working with Opalis, the new player in the System Center Suite. A lot of the configuration wizards/gui, and documentation have not been easy at all. Some parts of opalis is very hard to setup, and requires a lot of reading and manually changing files/downloading files etc. Especially the Opalis Operator's Console, which is a web based console for monitoring the status, or running Opalis Runbooks (Policies). This console in running on a java webserver with a lot of different jboss .jar files and other components needed. I tried to [...]

By |2011-04-27T13:53:09+01:00april 27th, 2011|Automation|Kommentarer lukket til Tool for Installing the Opalis Operator’s Console Automatically !

Coretech SCCM Manager 1.0.4 – Freeware Download

[download id="32"] This week a customer contacted us, claiming that the tool did not work on sundays! I thought that was pretty strange, so I asked for log file/event log messages, and it was true. It did fail! It was even “Kernelbase.dll” or “kernel32.dll” that was throwing the exception! I tested it on our test environment, and got the same errors.! I turned out to be an old Visual Basic function, that is used to retrieve the name of the current day, that was failing on sundays. This new version has an updated logfile writer, which writes the correct format [...]

Outlook 2010: Auto Export Body of new e-mails

This macro is made for a opsmgr management pack, soon to be published on this blog. It is written in VBA in outlook 2010 (could work in other version too, but it is not tested). It shows how to create a macro function, that is usable in a rule. 1. Enable Developer Ribbon to be able to create scripts 2. Open visual Basic 3. Select “ThisOutlookSession” 4. Type/ this Sub into Visual Basic. Changed the strExportPath to the folder you want to use. Sub SaveMessageOnRule(Item As Outlook.MailItem) Dim strExportPath As String strExportPath = "C:\Temp\Mails\" Dim FileName As String FileName = [...]

By |2017-08-21T21:17:06+01:00marts 28th, 2011|Scripting & Development|10 Comments

How to fix ConfigMgr 2007 Console Error: “MMC cannot initialize the snap-in”

Today I was working in my test environment, my colleague had been testing some backup/restore of the site software. This had resulted in the console not working. this error appeared, when I tried to start it: “MMC cannot initialize the snap-in” I searched the net and found this article: ConfigMgr 2007: Unable to open Configuration Manager Console, error: MMC Cannot Initialize the Snap-in It helped me a lot in finding the installation log and testing the error. I had the problem in the installation log, but when I ran the commandline test: “C:\windows\Microsoft.Net\Framework\v2.0.50727\installutil.exe "Drive:\Program Files\Microsoft Configuration Manager Console\AdminUI\bin\AdminUI.ResourceExplorerConsole.dll" /logfile=C:\inst.log  /showcallstack” [...]

By |2010-12-29T13:04:38+01:00december 29th, 2010|Configuration Manager (SCCM)|1 Kommentar

Include other files in VBScript

Have you ever wanted to include another .vbs file with all your common functions in a script? Many people I have met thought it wasn’t possible. But it is actually pretty easy to do with “ExecuteGlobal” to make it even easier, I have created a small function which you can put in your scripts and use a simple Include("C:\functions.vbs") I have made 2 small example scripts to show you how to use it: Functions.vbs: Sub WriteLog(strMessage) Const FOR_APPENDING = 8 strFileName = "C:\test.txt" Set objFS = CreateObject("Scripting.FileSystemObject") If objFS.FileExists(strFileName) Then Set oFile = objFS.OpenTextFile(strFileName, FOR_APPENDING) Else Set oFile = objFS.CreateTextFile(strFileName) [...]

By |2010-12-17T14:36:03+01:00december 17th, 2010|Scripting & Development|5 Comments

Coretech SCCM Manager 1.0.3.1 – Freeware Download

New Version out! 1.0.4! Get it here: https://blog.ctglobalservices.com/?p=2852 Since we found a minor bug in the 1.0.3 version, we have decided to release version 1.0.3.1. This has fixed the bug that cause distribution points that did have “-“ in the name, not to show up in the list of DPs. We are still working on a newer version, but can not give any info about when it will be released, since we don’t know. Changelog / What’s New 1.0.3 -> 1.0.3.1 Fixed bug that caused DP’s that had “-“ in their name, not to show up in the list. 1.0 RC1 [...]

Serializing System.Net.IPAddress to XML

  Working on a project today, i needed to serialize one of my classes that included at System.Net.IPAddress property. Problem problem is that IPAddress does not support XML Serialization since it does not implement a parameterless constructor! I tried to search the net, but couldnt find a complete guide, therefore i am posting this, hoping to help others in the same situation! My solution is to serialize the IPAddresses as a string, and later parse them top ip adresses again. public class IPRange : IComparable, IXmlSerializable { public IPAddress StartIP { get; set; } public IPAddress EndIP { get; set; [...]

By |2010-06-22T12:01:29+01:00juni 22nd, 2010|Scripting & Development|Kommentarer lukket til Serializing System.Net.IPAddress to XML

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+01:00april 20th, 2010|Powershell, Scripting & Development|Kommentarer lukket til Microsoft Scripting Games 2010

.NET Links and Books (2956B/2957B)

Exam: 70-536: http://www.microsoft.com/learning/en/us/Exam.aspx?ID=70-536&Locale=en-us Second shot (valid until June 30, 2010): http://www.prometric.com/Microsoft/SS_MCP_form.htm?s=ssm MOC 2956B: Delegates and Events in C# / .NET http://www.akadia.com/services/dotnet_delegates_and_events.html DotNetZip - Zip Class Library http://dotnetzip.codeplex.com/ Prefix-casting versus as-casting in C#: http://gen5.info/q/2008/06/13/prefix-casting-versus-as-casting-in-c/ MOC 2957B: Hatchbrush shapes: http://www.java2s.com/Tutorial/CSharp/0480__2D/HatchBrushStyle.htm Manual Double buffering: http://www.bobpowell.net/doublebuffer.htm String Format 101: http://blogs.msdn.com/kathykam/archive/2006/03/29/564426.aspx Regex Lib: http://www.regexlib.com RegexBuddy: http://www.regexbuddy.com/ Service Custom Commands http://arcanecode.com/2007/05/30/windows-services-in-c-sending-commands-to-your-windows-service-part-7/ IPC Channel communication http://www.codeguru.com/csharp/csharp/cs_syntax/remoting/article.php/c9251 Automation Compatible Types: (not complete) http://dragona79.springnote.com/pages/97595 Other: From WinForm to WPF: A Quick Reference guide http://www.simple-talk.com/dotnet/.net-framework/from-winform-to-wpf-a-quick-reference-guide/ ReSharper http://www.jetbrains.com/resharper/buy/index.jsp

By |2010-03-29T10:19:11+01:00marts 29th, 2010|Scripting & Development|6 Comments

VBScript: Move computer object to another OU via Command line parameter

[download id="19"] UPDATE: New improved script 0.0.3 uploaded. Thanks to Nico_ at Technet Forums! Hello everyone My collegue Michael Petersen, needed a script to move computers to another OU, after re-installing them via SCCM/ConfigMgr. He have written a blog post to show how to use it in a Task Sequence: https://blog.ctglobalservices.com/mip/using-ts-variables-when-running-a-script-under-a-different-account/ therefore i developed this small script All you needs to do is to run it with the CN for the new OU (without the LDAP://) in the commandline like this: cscript.exe MoveOU.vbs "OU=HQ,dc=woodgrovebank,dc=com" ' //*************************************************************************** ' //*************************************************************************** ' // ***** Script Header ***** ' // ' // Solution: ConfigMgr [...]

By |2010-03-17T16:30:33+01:00marts 17th, 2010|Scripting & Development|75 Comments

OpsMgr 2007 R2: Script Unit Monitor Comparison Problems!

  While making my last Management Pack , I discovered a problem in the Operations Console of OpsMgr. Problem:   When i created the Critical/Unhealthy/Healthy Expressions i had to compare to a Integer that was returned by the Script. The problem was that when i compared 50 with 100, it acted like 50 was more than 100 !! I was kind of baffled and did not know what was going on. Solution: So i exported the Management Pack to XML and took at closer look in the details: This is a snippet from the XML, it is only one of [...]

By |2009-10-22T15:11:52+01:00oktober 22nd, 2009|Operations Manager (SCOM)|1 Kommentar

OpsMgr 2007 R2 (SCOM): Coretech Coffee Monitor Management Pack – 0.0.0.1

Download: [download id="16"] The file has included test examples and vlc player. The Management Pack is 32Kb Intro: This management packs can be used to keep track of the level of coffee in left in the pot. With this management pack, you will never run dry of, what we all know, is the most important part of a productive environment! This is mostly made as a proof of concept, as this technique can be transferred to other monitor types. It could be expanded with other types of sensors, like a weight to check the level of coffee instead of a [...]

By |2009-10-21T11:59:42+01:00oktober 21st, 2009|Operations Manager (SCOM)|47 Comments

MOC Lab Launcher Fixer for Windows 7

[download id="14"] Windows 7 has arrived, and everything is fine! We only have one problem. Many of the MOC Course Material is using the "Lab Launcher". The MSI for the "Lab Launcher" is not supported by Windows 7. To Fix this problem a Hack/Edit of the MSI is needed. Read this blog post for info about how to do it manually: http://tfl09.blogspot.com/2009/08/windows-7-and-virtual-server.html Big Thanks to Thomas Lee for the great tutorial!   I am facing the same problem as him a lot these days, and i usually did the Edit manually. Therefore i decided to make a small utility that [...]

OpsMgr 2007 (SCOM): Coretech Certificates Expire checker Management Pack – 0.0.0.1

Download: [download id="13"] Intro: This management packs can be used to check the expire date on all or specific certificates in the client/servers certificates store. It uses the event log on the local client, to alert the OpsMgr unit monitor . It is supposed to check once every day, and make a warning in the opsmgr if any certificates are close to the expire date. This is the very first version. It has been tested in my test environments, and will soon be tested in production. Please do not hesitate to report any bugs and please send suggestions for the [...]

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

Download Script: [download id="12"] 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 [...]