Generated by All in One SEO v5.0.1.1, this is an llms.txt file, used by LLMs to index the site. # Vatland -MS Stuff- ## Sitemaps - [XML Sitemap](https://www.vatland.no/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [My 'simple' keg scale](https://www.vatland.no/index.php/my-simple-keg-scale/) - Since Plaato is retiring their Keg scale in 2024/25 I had to find a new solution. Searching the web lead me to GitHub - Callwater/Beerkeg-load-cell. Since I had some ESP and loadcells at my hands it was very quick to setup. Had some wood and a router in my 'workshop' so made the base in - [List NordPool electric prices using powershell.](https://www.vatland.no/index.php/list-nordpool-electric-prices-using-powershell/) - This is a small script using nordpoolgroup api to get todays electric prices for Kr.sand - Norway. This is the same API as their webpage uses. All the urls and parameters can be found using developermode in the browser. This code is only to demonstrate that it can be done. It all started when i - [Windows 11 update error 0x80070002](https://www.vatland.no/index.php/windows-11-update-error-0x80070002/) - Have been struggling with this error for some time. I was stuck with some old build in the developer channel. It was the CU updates that failed, almost all others installed ok. Hoping that a new build would manage to install, but no. I decided to finally to a inplace-upgrade to latest build, Downloaded the - [SIlly powershell TXT Fractal animation](https://www.vatland.no/index.php/silly-powershell-txt-fractal-animation/) - Found some c# code drawing a Mandelbrot fractal (I'am so sorry I cant remember where or who) and thought that would be fun to do in powershell. Ended up doing a little animation of the fractal. All done in ASCII. This will not work if you run it in ISE or VS Code terminal. param( - [Import user licenses from CSP using CSP api and graph.](https://www.vatland.no/index.php/import-user-licenses-from-csp-using-csp-api-and-graph/) - Hi,there.This is also quiet simple. I want to get all users and what licenses they have been assigned. All this should do, is retrieve information using a csp token.After some attempts this is my best one. The "goodlooking" argument will not work when run from ISE.I'am still using the same database. The table is called - [PS 2.x convertfrom-json](https://www.vatland.no/index.php/ps-2-x-convertfrom-json/) - Powershell 2 does not have a convertfrom-json function and I like to use json files for storing configuration. Searching the web gives almost zero results. Converting a multilevel json structure to hashtable would be very complicated. Since my config files are only one level the easiest way of doing it was using regex. Input is - [List users and licenses in Database](https://www.vatland.no/index.php/list-user-and-license-in-database/) - Now that we have a database containing user, tenant and license it would be nice to have a function/command to list this. Took me a while to figure it out but thanks to Bing, I prefer Bing before google. I sync my database on a schedule once a day. This way my data is new. - [Use get-tenantlicsindb after syncing them to our local db.](https://www.vatland.no/index.php/use-get-tenantlicsindb-after-syncing-them-to-our-local-db/) - Ok, Now that we have syncronized our customers licenes to a local DB, we have this new commandlet to list them. This is a easy one, no advanced tokens setup to connect to Microsoft endpoint, only local database. [cc language=powershell] function get-tenantlics { [CmdletBinding()] param( [int]$lastndays = 1 ) DynamicParam { $ParameterName = "tenant" $RuntimeParameterDictionary - [Add tenant licenses from csp to database.](https://www.vatland.no/index.php/add-tenant-licenses-from-csp-to-database/) - This is a followup from previus post. In this post I will populate the database with what licenses a tenant has aquired. This will add records of what aquired skus and 'usage'. For me this is how many license are bought versus how many are assigned. This does not account for senarios other than CSP. - [Powershell 2.0 Json to Hash](https://www.vatland.no/index.php/powershell-2-0-json-to-hash/) - Resonse from webrequests are normally in Json format and converting back and forth is no problem using convertto/from-json. Only this time some computers did run Powershell 2.0 and did not have any "new" .NET framework installed. So I ran to a halt at this Json converting. Since my data did have predefined data structure I - [Get-tenantlistindb (from previous post)](https://www.vatland.no/index.php/get-tenantlistindb-from-previous-post/) - Now that we have our tenants listed in a database table, listing them is quite easy. Added a switch that allow you to also list deleted/removed tenants. [cc language="powershell"] function get-tenantlistindb { param( [switch]$all ) $SQLInstance = "localhost\SQLExpress" $SQLDatabase = "Microsoft365" $sqlqr = "select * from [Microsoft365].[dbo].[tenants]" if (-not $all) { $sqlqr += " where - [Log tenants from office 365 to local Db](https://www.vatland.no/index.php/log-tenants-from-office-365-to-local-db/) - Hi, I like to keep control of how many licenses our cutomers use versus how many have been purchased. Here is 1st part my PS script to copy the info from csp to the DB. I will start creating a database and table to keep a list of all the tenants in the csp. You - [Hash tables in powershell](https://www.vatland.no/index.php/hash-tables-in-powershell/) - We all have the need to store data in some kind of arrays. I use hashtables a lot. Preferred use is as a lookup table, I can use 'contains' instead of looping through each item or reference an object by name instead of index number. Lookup table for licenses is where I use it the - [SecretServer(Thycotic) plugin for powershell SecretsManagement module.](https://www.vatland.no/index.php/secretservertycotic-plugin-for-powershell-secretsmanagement-module/) - With the new powershell module SecretsManagement it is possible to add plugins. The new module is used to get/add/remove credentials. I created a plugin for secretserver to this module. To get started you will have to install secretsmanagement: Install-Module -Name Microsoft.Powershell.SecretsManagement -AllowPrerelease If -AllowPrerelase is not an option you would have to update PowershellGet first. - [Simple Powershell MRU list](https://www.vatland.no/index.php/simple-powershell-mru-list/) - When using using my secret server powershell functions I got tired of constantly searching for secret ID's. I had to do a new search just because I could not remember the ID's. So I added some kind of MRU to my get-secretID function. This code block creates to classes mruitem and mrulist. The mrulist has - [Get Secretserver secret](https://www.vatland.no/index.php/get-secretserver-secret/) - Since we are using SecretServer as our credential store it is of great help to be able to get credentials directly from powershell. This is a small function that connects to secretserver webservices and retrieve a secret based on secred ID. The function will connect to the webservice as the signedin user or by a - [CSP access to tenants using powershell. Part 4](https://www.vatland.no/index.php/csp-access-to-tenants-using-powershell-part-4/) - This is a small script that connects to partnercenter list all customers tenants and let you select one. When one is selected it connects to azuread and az for that customer. All my credentials are stored in SecretServer . I use a web service request to get those credentials. I will show these modules in - [Use powershell to get external IP address](https://www.vatland.no/index.php/use-powershell-to-get-external-ip-address/) - How can you get your external IP address from powershell? I use a simple script to query an external public web service. The service I'm using is hosted by ipinfo.io . I have created a small function that is placed in my powershell library. All my modules are loaded by using powershell profiles. This simple - [CSP access to tenants using powershell. Part 3](https://www.vatland.no/index.php/csp-access-to-tenants-using-powershell-part-3/) - In this part 3 of CSP and powershell I will show how you can connect to azureAD of a customer tenant using your CSP app credentials and refreshtoken. This is almost the same procedure as we use to connect to az. We will start with the same variables as in part 2. Remember to keep - [CSP access to tenants using powershell. Part 2](https://www.vatland.no/index.php/csp-access-to-tenants-using-powershell-part-2/) - In part 1 we created the Azure Enterprise App for Partnercenter and used this information to connect using powershell and connect-partnercenter. Now we will use this to connect to one of our customers tenants. First we will use AZ module and connect-azaccount. We will use the AZ module and the partnercenter module. So if those - [CSP access to tenants using powershell. Part 1](https://www.vatland.no/index.php/csp-access-to-tenants-using-powershell-part-1/) - A short explanation of how to access customer tenant using a CSP tenant SPN credential connectiong to AzureAD and AZ. Have been struggling for a while to manage all our customers tenants using powershell scripts. It can be complicated to organize all the credentials, tenant domain, tenant id's password expiry. First step is to be - [Make sure you have the correct CSP for Your CA](https://www.vatland.no/index.php/make-sure-you-have-the-correct-csp-for-your-ca/) - Got some weird errors on our new Skype for Business server install. After a straight forward install users was unable to login from external and some issues regarding conferences. Skype services seemed to start but ended up running with unknown details when get-windowsservices. Also we had one error in the eventviewer on frontende server. The - [Powershell to get DirectAccess connection history.](https://www.vatland.no/index.php/powershell-to-get-directaccess-connection-history/) - This is a simple powershell to get data from the DirectAccess database. It reguired some serious Bing'ing (and google) to get the time field. You will have to configure reporting database in DirectAccess config. I used windows internal database. $server="\.\pipe\MICROSOFT##WID\tsql\query" $database="RaAcctDb" #$table="connectiontable" $table="sessiontable" #$table="endpointsaccessedtable" #$table="serverendpointtable" $cs="server=$server;database=$database;Integrated Security=True;" $connection=New-Object System.Data.SqlClient.SqlConnection $connection.ConnectionString=$cs $connection.Open() #$query="Select * from $table" - [Use Powershell to get LeakedCredentials from Azure using Graph](https://www.vatland.no/index.php/use-powershell-to-get-leakedcredentials-from-azure-using-graph/) - Would it be nice to list all leakedcredentials using powershell?(or riskysignins or identiyriskevents). All of this could be achieved using powershell and REST api at Microsoft Graph. I have a scheduled task running to get this reports. Using a appilcation in Azure. All credentials are stored in SecretServer. First we need an Application Registration in - [Dump Skype for business addressbook](https://www.vatland.no/index.php/dump-skype-for-business-addressbook/) - To see information stored in SfB addresslist you can dump its content to a text file: C:\Program Files\Skype for Business Server 2015\Server\Core>abserver -dumpfile "\-WebServices-1\ABFiles#post_excerpt000000-0000-0000-0000-000000000000#post_excerpt000000-0000-0000-0000-000000000000\f-195a.lsabs" c:\temp\sdump.txt - [SfB : Server startup is being delayed because fabric pool manager is initializing.](https://www.vatland.no/index.php/sfb-server-startup-is-being-delayed-because-fabric-pool-manager-is-initializing/) - SfB : Server startup is being delayed because fabric pool manager is initializing. - [Upgrade to Skype for Business failed. Error 1603](https://www.vatland.no/index.php/upgrade-to-skype-for-business-failed-error-1603/) - Have done several upgrades from Lync 2013 to Skype for Business 2015, so this last one should be no different, but faith had other plans. Installed topology builder on a new computer and prepared the upgrade process. But when a bit into the upgrade it failed. Error: Error returned while installing OcsCore.msi(Feature_LocalMgmtStore), code 1603. Error - [Lars waterskiing](https://www.vatland.no/index.php/lars-waterskiing/) - [Watch "Getting Started with Azure Backup: Protect Windows Server with MARS Agent" on YouTube](https://www.vatland.no/index.php/watch-getting-started-with-azure-backup-protect-windows-server-with-mars-agent-on-youtube/) - https://youtu.be/3wHXJVsbEvU - [SAML for dummies](https://www.vatland.no/index.php/saml-for-dummies/) - A nice article about SAML how and why https://duo.com/blog/the-beer-drinkers-guide-to-saml - [List Exchange mailboxes with forwarding rules](https://www.vatland.no/index.php/list-exchange-mailboxes-with-forwarding-rules/) - Simple list of all mailboxes and rules. Displays more info if one of them contains a forwarding rule: - [No connectivity with any of Web Conferencing Servers.](https://www.vatland.no/index.php/no-connectivity-with-any-of-web-conferencing-servers/) - The Skype for Business servers had recently been patched.. Included in these patches is a security update that resolves an security bypass feature. - [Drone video of our summer house, among others.](https://www.vatland.no/index.php/drone-video-of-our-summer-house-among-others/) - Video created by Austevik Dronefoto https://www.youtube.com/watch?v=qp6MyxV0JHM - [SAP and DirectAccess](https://www.vatland.no/index.php/sap-and-directaccess/) - Hi there, Are your planning to use SAP on you DirectAccess enabled clients? Please consider doing this: Make sure your SAP GUI client version is 7.20 Set Systen Environment Variable on client pc: SAP_IPv6_ACTIVE to value 1 Reboot client PC. This is what I had to do to get it to work! :) - [S4B - Deploy database to SQL server failed.](https://www.vatland.no/index.php/s4b-deploy-database-to-sql-server-failed/) - Skype for business - Deploy database to SQL server failed - [S4B - Error preparing forest.](https://www.vatland.no/index.php/s4b-error-preparing-forest/) - Was installing a Skype for Business server the other day, and the simple task of preparing the forest failed. I am always on the alert when doing Active Directory forest wide tasks as prepare schema and prepare forest, so it is not fun to see error messages during these tasks. What now. It is no good - [Unable to create a new Skype meeting from Outlook.](https://www.vatland.no/index.php/unable-to-create-a-new-skype-meeting-from-outlook/) - When trying to create a new Skype meeting from Outlook we get the message "The request failed. Please try again. Make sure that you are signed in to Skype for Business." First solution was to clear outlook name cache. This solves the problem for a short while. A better workaround is to disable outlook the use - [Lync Licensed user is not showing up in Lync Admin Center](https://www.vatland.no/index.php/lync-licensed-user-is-not-showing-up-in-lync-admin-center/) - Some users was missing in Office 365 Skype admin center. I verified that they had a Skype license plan assigned. Tried to remove and readd - did not help. These users are replicated from on premise to cloud using Azure AD sync. Turned out these users had previously been Lync enabled on on premise Lync - [Forwarding email in Exchange](https://www.vatland.no/index.php/forwarding-email-in-exchange/) - One common question from users are "How can I forward my email to my home mail?" or from a manager "How can we forward his/her mail to the external address?". In fact in Exchange there is several possibilities, but most of them requires some administrator involvement. For users to forward their own email an administrator - [KB3101496 and missing "missed calls" log](https://www.vatland.no/index.php/kb3101496-and-missing-missed-calls-log/) - Latest News March 2016: https://support.microsoft.com/en-us/kb/3136400 . This is what we also discovere. But users did not want voicemail. With the patch from February it seems to be solved. After you install KB3101496 missed phone calls are no longer displayed in Lync 2013/Skype. All other Lync functionality is ok. You will be notified about missed conversation - [Office 365 applications and high disk IO](https://www.vatland.no/index.php/office-365-applications-and-high-disk-io/) - After we installed office 365 on our pc's we discovered high disk IO, especially on our terminal servers. Running tools from sysinternals this turned out to be something in Office installation called Telemetry, When we started office apps some file, in the profile folder structure, called OTELE was constantly updated. Not one file, but several. - [Exchange UM event ID 1400](https://www.vatland.no/index.php/exchange-um-event-id-1400/) - This is a rather confusing event. It occurs on the Exchange server 2010 that is holding the Unified Messaging role. "The following UM IP gateways did not respond as expected to a SIP OPTIONS request", and at the end "This operation has timed out". The server mentioned in the erro is, in this senario, the - [Group Manager in Exchange 2010-2013 are unable to manage group membership.](https://www.vatland.no/index.php/group-manager-in-exchange-2010-2013-are-unable-to-manage-group-membership/) - There was a change in RBAC. Group managers are not able to add or remove members of a distribution Group even if it seems so in the Exchange Management Console. The only options in ECP was to give them the additional permission to great and remove groups. You can create a new role that will - [Outlook : Flagged messages does not show in tasklist](https://www.vatland.no/index.php/outlook-flagged-messages-does-not-show-in-tasklist/) - Once upon a time there was several on premise mailboxes. The follow up flags were working flawlessly from Outlook running in "online mode" on a RDS server. Someone installed hybrid mode and moved the mailboxes to O365. Now the user was really disappointed with the response from Outlook still running in Online Mode. One of the users got - [Outlook does not show online archive.](https://www.vatland.no/index.php/outlook-does-not-show-online-archive/) - In a hybrid environment we moved mailboxes from onprem to Office 365. Some of the users felt response from a mailbox in O365 was to slow so we enabled an archive mailbox in cloud and migrated the primary mailbox to onprem server. As soon as this was done the archive mailbox disappeared from Outlook. Tried - [Linux Tail in windows.](https://www.vatland.no/index.php/linux-tail-in-windows/) - When viewing large log files notepad (pre windows 10) is useless. Usually it is only the last lines of a log file that is interesting or to continuously trace the file. The answer is as always PowerShell. get-content -tail 1 -wait - [Lync server security fix KB3080353 causing problems.](https://www.vatland.no/index.php/lync-server-security-fix-kb3080353-causing-problems/) - (UPDATED) After we installed the Latest Lync server 2013 security fix (Security Update for Lync Server 2013 Web Components Server KB3080353) we have had severeal issues where users where unable to sign in to Lync. This was the server complaining about the client certificate , normally it is the client complaining about the server certificate. - [IMAP disabled in Exchange 2013 ServerComponentState.](https://www.vatland.no/index.php/imap-disabled-in-exchange-2013-servercomponentstate/) - IMAP was enabled on the Exchange server and had been used for a long time. One day the Exchange server's IP subnet was placed in a Active Directory site without any Domain Controllers. Of course Exchange the services stopped running after a while. When We managed to get it back to its original site and rebooted, everything looked OK. But IMAP - [Unable to join Lync\S4B from client schedule tab.](https://www.vatland.no/index.php/unable-to-join-lyncs4b-from-client-schedule-tab/) - Latest issue was kind of a puzzle. When one organization sent Skype meeting invitation to another organization it was impossible to click on the meeting in the schedule tab of Skype/Lync. "Join" functionality missing from sceduler tab in Skype or Lync. Right click on the meeting gave nothing. The links in Outlook and OWA did work - [Trying out Acano - Lync integration](https://www.vatland.no/index.php/trying-out-acano-lync-integration/) - I'm trying to installing a solution by Acano to integrating different AV conferencing solutions with Lync. Installing it in a split server solution (one edge server in DMZ and one core server in server LAN). Will post the final howto guide when it is installed, as I think the documentation is not that well explained. - [Error installing Skype for Business server 2015](https://www.vatland.no/index.php/error-installing-skype-for-business-server-2015/) - Tried to install S4B server 2015 in my lab. Tried this from a computer with no internet access, also I did not install any prerequisites. "Error: Prerequisite installation failed: Prerequisite installation failed: SqlInstanceRtc For more information, check your SQL Server log files. Log files are in the folder C:\Program Files\Microsoft SQL Server\MSSQL*.Rtc\MSSQL\Log, where the * - [Windows 10 Hyper-V and only 1 Legacy Nic for each VM](https://www.vatland.no/index.php/windows-10-hyper-v-and-only-1-legacy-nic-for-each-vm/) - I have been using Hyper-V for a while now, and often I run some linux vm's to test different things. Today when I was trying to test a linux firewall I discovered that I could only add on Legacy Nic to a VM - this is an unexpected limitation. "Error applying Legacy Network Adapter changes" - [Allow responsegroup to forward to an external contact.](https://www.vatland.no/index.php/allow-responsegroup-to-forward-to-an-external-contact/) - You have several dialplans and voicepolicies in your Lync organization and the default "Global" has no PSTN usage or route. Next you create a workflow,Queue and group, on the Queue you specify a overflow or timeout action. You define an external phone number that should be used when overflowing or timeout action is reached. When you - [Exchange 2010 : MapiExceptionNetworkError](https://www.vatland.no/index.php/exchange-2010-mapiexceptionnetworkerror/) - One of our Exchange 2010 servers had its mailboxdatabases dismounted sometime during the night. When we tried to mount them we got a strange error message : "MapiExceptionNetworkError: Unable to make admin interface connection to server. (hr=0x80040115, ec=-2147221227)" As we usually do with issued like this on Exchange is to check that all services have - [O365 - Error : ProvisioningFailedException: Failed to update one of the recipient properties.](https://www.vatland.no/index.php/o365-error-provisioningfailedexception-failed-to-update-one-of-the-recipient-properties/) - Trying to migrate exchange users to O365 using cutover migration. Most of mailboxes did ok, but som failed "Error : provisioningFailedException: Failed to update one of the recipient properties.". It would help if the error messages explained what went wrong.?After some investigation we found the solution. We had created a new global address list for this migration to - [Connecting Lync and Cisco video in a conference](https://www.vatland.no/index.php/connecting-lync-and-cisco-video-in-a-conference/) - We have tried several products, but for the time being PEXiP Infinity is our preferred choice. It is easy to deploy and the price seems right. Deployment of a new solution can be done in minutes. Upload the Pexip management node to your VMware host and use Pexip to deploy the number of conferencing nodes - [When will I learn to patch before I test!](https://www.vatland.no/index.php/when-will-i-learn-to-patch-before-i-test/) - After I install i new Lync 2013 solution I'm always so keen to start testing. One of the first things I do is to start Lync 2013 on my Windows Phone. As soon as I see the error Message "Please install Lync 2010 ..." I know that I have forgotten to install the Lync Server 2013 CU... - [Keep Your Lync Public certificates up to date.](https://www.vatland.no/index.php/keep-your-lync-public-certificates-up-to-date/) - Here is one reason why you should cleanup SAN's in your certificates. Experienced one scenario where a customer moved from one hosting provider to another and was unable to federate after the move. This is not about defining these hosting providers in the "hosting provider" configuration in Lync. The reason to do that is if your domain is not defined - [Lync voice messages does not arrive in the mailbox.](https://www.vatland.no/index.php/lync-voice-messages-does-not-arrive-in-the-mailbox/) - It is time to remind me to always check Exchange for existence of receive connectors and their scoping. In this case users where able to record voice messages, but they never arrived in recipients mailbox. Checked the Exchange server event Viewer. This indicated that there is something wrong with the SMTP server. There I found a - [Testing new email gateway software.](https://www.vatland.no/index.php/testing-new-email-gateway-software/) - Have been looking for a simple and good software to scan and forward my emails. I wanted one that was easy to install/configure and hopefully free. My last discovery is ScrolloutF1 by Marius Gologan. This is a Linux configuration based on Debian. This is not a firewall but an mail gateway so it will only need 1 ip - [Lync DHCP options and Windows 2012 R2](https://www.vatland.no/index.php/lync-dhcp-options-and-windows-2012-r2/) - Recently had a issue where Lync phones (Polycom CX600) using number and pin where unable to download the CA certificate chain. Tethered phones worked fine. Some network packet inspection revealed that the DHCP server did not provide any of the options 43 information. The client (phone) asked for the correct vendor class "MS-UC-Client", but there was no response from DHCP - [Exchange server quarantined a mailbox.](https://www.vatland.no/index.php/exchange-server-quarantined-a-mailbox/) - One user tried to run an attachment in a newly received email . After this his mailbox became inaccessible. When he tried to access it using OWA the familiar message appeared : Something went wrong. My first thought was that the database was dismounted, but other mailboxes on the same database still worked. What's next? Turned out - [Lync 2013 Management Shell will not start.](https://www.vatland.no/index.php/lync-2013-management-shell-will-not-start/) - If you are running Windows 2012R2 and install Lync server 2013 you might have problems starting Lync Management Shell. The Powershell Windows pops-up but no content appears. To get pass this I try to run PowerShell as Administrator and then run "import-module Lync" - [Power Failure](https://www.vatland.no/index.php/power-failure/) - Sorry. My webpage had a power outage, but now it is back online. - [Lync server 2010 rtchost.exe crashes after Windows Update.](https://www.vatland.no/index.php/lync-server-2010-rtchost-exe-crashes-after-windows-update/) - After running Windows update on a Lync 2010 edge server I was unable to communicate with external contacts. I could see their presence but no chat/video or audio. The eventlog contained lots of event 1001 "Information"(Why not error !!!!!) that RTCHOST.EXE crashed. Probably failed installation of KB2982385. Why are these only information events. Even more Events of 50007 and 12331 - [How to reset Exchange database indexes](https://www.vatland.no/index.php/how-to-reset-exchange-database-indexes/) - I know the situation, Your are using OWA, ActiveSync or Outlook (in online mode) to search for an old email. Your search request only returns new emails even though you can browse old emails. Now there is a good chance that mailbox database index has gone corrupt. You could do a check by running Test-ExchangeSearch but this - [Provisioning Lync federation with Skype.](https://www.vatland.no/index.php/provisioning-lync-federation-with-skype/) - If you want your Lync users to be able to federate with Microsoft and Skype you will need to go to https://pic.lync.com and request a new service. Login with the live account that has permissions to access your Microsoft Licenses through the Microsoft licensing portal. Enter your Licensing type and License Agreement number. Add you Lync Edge serve Access name ( - [Outlook contact phone number will not display in Lync client.](https://www.vatland.no/index.php/outlook-contact-phone-number-will-not-display-in-lync-client/) - There have been some issues where phone numbers in Outlook does not show in Lync 2013 Client. After some time we discovered that this was because of a Lync/Office update. Yesterday Microsoft releast August update for Lync 2013 Client, this includes a fix for this issue. The updated version is 15.0.4641.1000 Can be downloaded from - [Lync federation failes for some partners.](https://www.vatland.no/index.php/lync-federation-failes-for-some-partners/) - You have installed Lync edge server and have issues federating with some or all of your partners. If you check the eventlog you might see multiple errors like event Source : "LS Protocol Stack" and Event ID 14428. Event description might mislead you to think that there is something wrong with your partners certificate. The text state that "Target principal - [Lync Server 2013 August update.](https://www.vatland.no/index.php/lync-server-2013-august-update/) - The August update for Lync Server 2013 , Cumulative Update KB 2809243. There seems to be some long awaited fixes. http://www.microsoft.com/en-us/download/details.aspx?id=36820 - [BlogEngine.Net 2.9 finally installed.](https://www.vatland.no/index.php/blogengine-net-2-9-finally-installed/) - I have finally taken the time to Upgrade BE to Version 2.9. I can see great improvements, well worth the effort - [Lync 2013 Response Group Holiday set editor V11](https://www.vatland.no/index.php/lync-2013-response-group-holiday-set-editor-v11/) - This is my HolidaySet editor for Lync 2013/2010 RGS. It is created in Powershell. This is version 1.1 and is working "Perfectly" in my environment. Code needs som tidying up and commenting. Please do not copy, but link to it since I will update it with more info and features. HolidaySetEditorV11.ps1 (11.2KB) - [Get-ADUser returns an error on windows 2012 R2 when you want all properties.](https://www.vatland.no/index.php/get-aduser-returns-an-error-on-windows-2012-r2-when-you-want-all-properties/) - When you try to get all properties of an ActiveDirectory Object using PowerShell you get an error. You would typically run some command like: Get-ADUser -Identity someone -Properties * . This will return an unexpected error. Get-ADUser : One or more properties are invalid. Parameter name: msDS-AssignedAuthNPolicy At line:1 char:1 + Get-ADUser pilot1 -Properties * + - [Common area Phone Lockout.](https://www.vatland.no/index.php/common-area-phone-lockout/) - A lot of common area phones suddenly displayed "Your account has been locked.". This was strange since we did not define any lockout policies. To see if any phone are lockedout: get-cscommonareaphone | get-csclientpininfo | ft Identity,islockedout To unlock an account use : unlock-csclientpin - [Lync Unified Contact Store - UCS](https://www.vatland.no/index.php/lync-unified-contact-store-ucs/) - How do I check and enable Lync UCS? First of all you need Exchange 2013 , then make sure you have enabled UCS in Lync server. By running get-csuserservicesPolicy and verify it has been set to UCSAllowed=TRUE Next check you client policy. Get-CsClientPolicy should show you "EnableExchangeContactSync = true" for the policy assigned to your user. - [Out of office rule not working for one user.](https://www.vatland.no/index.php/out-of-office-rule-not-working-for-one-user/) - One user enabled his OOF but Exchange refused to send oof messages. Tested another mailbox - worked fine. I tried to check using Get-MailboxAutoReplyConfiguration and all seemed correct. Also checked that ExternalOOFOptions was enabled on his mailbox Get-Mailbox ALIAS | fl exter* - result : " ExternalOofOptions : External". Logged on to his mailbox using OWA checked that - [Outlook Roomlist and workinghours.](https://www.vatland.no/index.php/outlook-roomlist-and-workinghours/) - When using booking assistent and roomlist meeting rooms does not always show in the list as expected. One reason for this is that user make a default invitation and by default the meeting time is this morning witch is already passed. Another thing is that default working hour for the meeting room is 08:00 to - [msRTCSIP-GroupingID editor.](https://www.vatland.no/index.php/msrtcsip-groupingid-editor/) - This is my msRTCSIP-GroupingID editor. I use it to segregate addresslists in Lync solutions. It takes a commaseparated text file containing Company name and GUID for the addresslist assigned to this Company (filename : groupingids.txt) sample: Name,Value CompanyA,00000000-0000-0000-0000-000000000010 CompanyB,00000000-0000-0000-0000-000000000011 CompanyC,00000000-0000-0000-0000-000000000012 I have placed this file on the Lync share for my own convenience. Powershell script - [Segregating addresslists in Lync](https://www.vatland.no/index.php/segregating-addresslists-in-lync/) - To segregate companies in Lync we would use the msRTCSIP-GroupingID attribute on the user Object. Default value for this attibute is "" This would as expected result in the default addresslist 00000....... If we add a value to the attribute i.e : 00 11 22 33 44 55 66 77 88 99 AA BB CC DD - [How to do Lync 2013 Meetings](https://www.vatland.no/index.php/how-to-do-lync-2013-meetings/) - Microsoft has released a very god document about Lync 2013 Meetings. http://www.microsoft.com/en-us/download/details.aspx?id=36186. I would advice you to distribute this among your users. Also you have the Lync 2013 Rollout and Adoption Success Kit (RASK) User Education and Training Resources to help you in the user training. - [Publish Lync 2013 web services using Windows 2012R2](https://www.vatland.no/index.php/publish-lync-2013-web-services-using-windows-2012r2/) - Do you want to publish Lync 2013 web services using something other than TMG or UAG now that they are getting closer to the end? Doug Deitterick has a nice how to guide. You will find this guide on TechNet. Take a look at : http://blogs.technet.com/b/dodeitte/archive/2013/10/29/how-to-publish-lync-server-2013-web-services-with-windows-server-2012-r2-web-application-proxy.aspx - [Disable missed call notification in Lync](https://www.vatland.no/index.php/disable-missed-call-notification-in-lync/) - If you have Lync enterprise enabled, and use simultaneous ringing on Lync and mobile, you are probably tired of all the Missed Call Notifications in your inbox. I have disabled this in the Lync Client policy Set-CsClientPolicy -Identity "PolicyName" -EnableCallLogAutoArchiving $False You will still get your IM conversations saved in Outlook. - [Lync server 2013:Automatic collection of configuration data failed.](https://www.vatland.no/index.php/lync-server-2013automatic-collection-of-configuration-data-failed/) - Wanted to install a second Central site in my Lync 2013 deployment. Added the site , pool and servers to my Topology Builder. Deployed it and started installing the new server. When installation came to the point where it is supposed to locate CMS and replicate it : "Automatic collection of configuration data failed" . - [HTTPS/SSL session reset.](https://www.vatland.no/index.php/https-session-reset/) - When Publishing a Windows 2012R2 web site using F5 it all works fine as long as you publish HTTP. When you switch to HTTPS the published page is blank. The F5 report that the server has reset the SSL session. All this is because of TLS 1.2 and how Windows 2012 R2 handles certificates. I - [Lync client and VMWare desktop](https://www.vatland.no/index.php/lync-client-and-vmware-desktop/) - A Nice overview of Lync and VMWare VDI. http://blogs.vmware.com/consulting/2014/04/architecture-overview-microsoft-lync-vmware-horizon-view.html?utm_source=rss&utm_medium=rss&utm_campaign=architecture-overview-microsoft-lync-vmware-horizon-view - [Error : Replica is inconsistent in DPM 2012](https://www.vatland.no/index.php/error-replica-is-inconsistent-in-dpm-2012/) - Got this error on "Computer\System Protection\Bare Metal Recovery" and "Computer\System Protection\System State" , turned out I had forgotten to install windows feature "Windows Server Backup Features" on the client. - [Lync client will not show contact photos when external.](https://www.vatland.no/index.php/lync-client-will-not-show-contact-photos-when-external/) - Installed Lync 2013 on a Windows 2012R2 server. When I login with an external Lync Client there are no photos of internal users. A validation shows that the thumbnailPhoto attribute has bin populated with images of the correct size.If the client Connect directly to the frontend server photos are presented correctly.An examination of the Lync Addressbook shows the addressbook files and - [Does a Lync phone reset to factory default "really" reset the phone?](https://www.vatland.no/index.php/does-a-lync-phone-reset-to-factory-default-really-reset-the-phone/) - Had problem with som Lync Phones (Polycom CX600). That suddenly stop signing in. Did a reset to factory deafult and the issues remained. Solution was to login with extension and pin and then connect the phone to PC using USB and login. Now I was able to login the phone using Lync client. This procedure was repeated on several phones. It - [How to test network routing from remote Lync client.](https://www.vatland.no/index.php/how-to-test-network-routing-from-remote-lync-client/) - Often we have to troubleshoot routing and firewall rules as seen from a client on a internal client subnets. I use PSEXEC and PORTQRY from Microsoft. This will work if it is a Windows pc and I have permissions to connect to it. Run these commands from a server in the server lanI try to check if - [Exchange 2013 move mailbox staus : StalledDueToCI](https://www.vatland.no/index.php/exchange-2013-move-mailbox-staus-stalledduetoci/) - Tried to move a mailbox from Exchange 2010 to Exchange 2013, but the job would take forever. Status for the job was "StalledDueToCI" ( Get-MoveRequest | Get-MoveRequestStatistics | ft mailboxidentity,status ). I suspected this had something to do with ContentIndexing. And infact it does. Tried to reset Search index for the database containing the failed mailbox.To - [List members of dynamic groups show incorrect members.](https://www.vatland.no/index.php/list-members-of-dynamic-groups-show-incorrect-members/) - If you use PowerShell to list members of dynamic distribution Groups in Exchange 2013 you would probably see more entries than expected. The PowerShell commands $dgr=Get-DynamicDistributionGroup "GroupNAme"Get-Recipient -RecipientPreviewFilter $dgr.RecipientFilterdoes not take in to consideration OU filtering. If you look at $dgr.RecipientFiler it only contains the other attributes.I do not know if this is a bug - [Lync Phone Remote logs.](https://www.vatland.no/index.php/lync-phone-remote-logs/) - What does the "Enable Remote Logs" on a Lync Phone edition meen?This is a feature for you to get logfiles from a phone that is not signed into. If someone are logged into the phone - Remote log Access will not work.If you enable this feature on the phone it is possible to ftp to the - [All Lync downloads on one page.](https://www.vatland.no/index.php/all-lync-downloads-on-one-page/) - Microsoft have a page with links to all Lync downloadabels.http://technet.microsoft.com/en-us/lync/dn146015.aspx - [List members of Exchange dynamic groups.](https://www.vatland.no/index.php/list-members-of-exchange-dynamic-groups/) - To list members of a Exchange Dynamic Group you have to run a few simple PowerShell commands.$dgr=Get-DynamicDistributionGroup "GroupNAme"Get-Recipient -RecipientPreviewFilter $dgr.RecipientFilter - [Replacement for TMG reverse proxy.](https://www.vatland.no/index.php/replacement-for-tmg-reverse-proxy/) - Are you looking for a replacement for TMG now that its end is nearing. You could buy a thirdparty reverseproxy from Sophos og some appliance. The simplest solution is probably to install a Windows server 2012(R2) and add ARR module to IIS.To install this module you would use the Microsoft Web Platform InstallerAll information you - [Securing IIS for SSL V2 and unsecure Cipher.](https://www.vatland.no/index.php/securing-iis-for-ssl-v2-and-unsecure-cipher/) - IIS will by default support SSLv3 and insecure/weak cipher suites. To disable these protocols add registry keys refered in Technet article : http://support.microsoft.com/default.aspx?scid=kb;EN-US;245030Or you could run a tool from Nartac Software : https://www.nartac.com/Products/IISCrypto/Default.aspx - [Lync client will not get past "Contacting server...."](https://www.vatland.no/index.php/lync-client-will-not-get-past-contacting-server/) - When you start the Lync Client and won't get past "Contacting server.." ,and it never time's out. It can be worth checking time on client and servers. Other users can sign in to Lync, even on the same PC. It will not help removing Lync client certificate, or reset password. Solution here is to check date and time - [Are my Lync server 2013 database the correct version?](https://www.vatland.no/index.php/are-my-lync-server-2013-database-the-correct-version/) - You installed a update to your Lync 2013 server and wonder if the database has to be updataed (install-csdatabase....). Run : Test-CsDatabase -ConfiguredDatabases -SqlServerFqdn sqlserver.fq.dn | Select DatabaseName, ExpectedVersion, InstalledVersion Result:DatabaseName ExpectedVersion InstalledVersion------------ --------------- ----------------rtcxds 15.13.1 15.13.1rtcshared 5.0.1 5.0.1rtcab 62.42.2 62.42.2rgsconfig 5.5.1 5.5.1rgsdyn 2.2.1 2.2.1cpsdyn 1.1.2 1.1.2xds 10.13.2 10.13.1lis 3.1.1 3.1.1As you can see there are - [User are unable to dial out as a responsgroup in Lync 2013](https://www.vatland.no/index.php/user-are-unable-to-dial-out-as-a-responsgroup-in-lync-2013/) - We defined a responsegroup workflow for anonymity. One user are a member of the Group (His Lync Client stated that for us.) When he select to call out as this queue he immediatly get the messeage that he is removed from the group. On the monitoring server we get the message that he do not have permission - [Lync 2013 will not replicate CMS](https://www.vatland.no/index.php/lync-2013-will-not-replicate-cms/) - After you installed Lync 2013 on a Windows 2012 / Windows 2013 R2 Configuration management store will not replicate. You think that it has something to do with the certificates but they seem ok. You will probably try to genereate new certificates to be sure, no... did't help. The reason is the new way Windows 2012 handles the - [Hyper-V VM startup failed, Event ID 12030](https://www.vatland.no/index.php/hyper-v-vm-startup-failed-event-id-12030/) - Seen this error? Check out my way to solve it :http://www.vatland.no/page/Hyper-V-VM-startup-error-Evnet-ID-12030.aspx - [Hyper-V VM startup error. Evnet ID 12030](https://www.vatland.no/index.php/hyper-v-vm-startup-error-evnet-id-12030/) - Error starting Hyper-V VM : I decieded to delete the VHDX file of a Virtual machine and create a new. The purpose was to do a reinstall, and keep the old file incase I needed som files. After creating the new VHDX file I tried to start the virtual machine and I got this error. - [Lync 2013 Mobile client and response groups](https://www.vatland.no/index.php/lync-2013-mobile-client-and-response-groups/) - Have a user logged in on his Lync 2013 mobile client . The use is member of a Respnsegroup. When the someone call this responsegroup Lync mobile client is unable to establish a connection. I have found several others that also have this problem, and it seem that this is by design - not supported. - [Lync server 2013 All Channel servers are down](https://www.vatland.no/index.php/lync-server-2013-all-channel-servers-are-down/) - After installing Lync server 2013 persistant chat the service would not stay running. Event Viewer entries complained about incorrect DB Version. The reason for this is that I had installed a CU on the Lync server before I installed Persistent chat service. Reran CU update and the service would start and stay running. - [Exchange UM does not answer when called from Lync.](https://www.vatland.no/index.php/exchange-um-does-not-answer-when-called-from-lync/) - The Subscriber and AutoAttendant are offline in Lync and when you call either of them the call is dissconnected. In my senario the Voip Security on Exchange UM Dial Plan was set to "SIP Secured" and not "Secured" - [Missed Call notification from Lync missing in users mailbox.](https://www.vatland.no/index.php/missed-call-notification-from-lync-missing-in-users-mailbox/) - A new install of Lync and Exchange. Enabled enterprise voice and Unified Messaging. Useres never get missed call notifications in their mailbox. On the exchange server there where several entries in the eventviewer complaining about smtp and voice mail files. Solution to this is to verify that the receive connector that exchange itself uses - [Exchange 2010 using groups to assign permissions to mailbox does not work.](https://www.vatland.no/index.php/exchange-2010-using-groups-to-assign-permissions-to-mailbox-does-not-work/) - Using a group to assign permissions to a mailbox does not work. Assigning individual users work. It seems like the Exchange server does not have permission to read Group memebers. If you assign the group "Exchange Servers" permission on the affected group to "Read Members" it works. - [Exchange 2010 SP3 upgrade RpcProxy/Outlook Anywhere error.](https://www.vatland.no/index.php/exchange-2010-sp3-upgrade-rpcproxyoutlook-anywhere-error/) - After upgrading from Exchange 2010 sp2 to Exchange 2010 sp3 Outlook Anywhere stopped working. Solution is to replace a corrupt web.config in the RpcProxy Virtual Directory. https://www.vatland.no/page/Exchange-2010-SP3-RpcProxy-webconfig-OutlookAnywhere.aspx Atle - [Exchange 2010 SP3 RpcProxy not working.](https://www.vatland.no/index.php/exchange-2010-sp3-rpcproxy-not-working/) - After doing an Upgrade of Exchange 2010 SP2 to SP3 the RpcProxy/ Outlook Anywhere stopped working. Eventlog on Exchange server showed lots of: Event ID 1310 Application information: Application domain: /LM/W3SVC/1/ROOT/Rpc-18-130144692505559065 Trust level: Full Application Virtual Path: /Rpc Application Path: C:\Windows\System32\RpcProxy\ Machine name: MS-NO-SVG-01 Process information: Process ID: 7156 Process name: w3wp.exe Account name: - [Exchange 2013/ecp shows Exchange 2010/ecp](https://www.vatland.no/index.php/exchange-2013ecp-shows-exchange-2010ecp/) - When you install Exchange 2013 into a Exchange 2010 organization and try to access https://exchange2013cas/ecp - Exchange server will show Exchange 2010 ecp. To access the Exchange 2013 ecp you will have to specify your Exchange version in the URL. https://exchange2013cas/ecp?ExchClientVer=15 Reference: http://technet.microsoft.com/en-us/library/jj150562(v=exchg.150).aspx#access - [Nokia Lumia firmware 1308,](https://www.vatland.no/index.php/nokia-lumia-firmware-1308/) - Nokia Lumia 920 firmware 1308 finally lands on my phone. Hopefully there will be some fixes for the reboots. After a few days the answer is that all my problems are gone . My phone has been working flawless. - [Several external url's missing from Exchange autodiscover.](https://www.vatland.no/index.php/several-external-urls-missing-from-exchange-autodiscover/) - Had a issue where "externalewsurl" and "externaloaburl" was missing from Exchange autodiscover. All urls was configured on the Exchange server and all other information was available through autodiscover. In the end I found out that the Outlook provider for Outlook anywhere was missing. Create New EXPR provider and set external wildcard certificate as CertPrincipalName. - [Want to display Exchange autodiscover information?](https://www.vatland.no/index.php/want-to-display-exchange-autodiscover-information/) - This is my tool to display Exchange Autodiscover information. I wanted to verify that Exchange published the information that I had entered into the management console and shell. It is written i C# on Windows 8. It requires .NET framework 4.5 and 64bit. ExchDiagSetup.zip (1.39 mb) - [Exchange 2010 SP3 finally here.](https://www.vatland.no/index.php/exchange-2010-sp3-finally-here/) - Finally the long awaited Exchange 2010 sp3 is released. http://support.microsoft.com/kb/2808208/en-us We can now start to migrate our Exchange 2010 to Exchange 2013. - [Lync server 2013 Rollup DB error.](https://www.vatland.no/index.php/lync-server-2013-rollup-db-error/) - After installing update rollup for Lync server 2013 I ran the "Install-csdatabase ......" and it Failed. The reason was that I did not have enough free disk space on the disk. Rezised and reran command. OK. Extended my c: drive to 60 GB. - [Windows Phone 8 Photosynth is finally here.](https://www.vatland.no/index.php/windows-phone-8-photosynth-is-finally-here/) - We have all been waiting for Photosynth for WP8 and finally it is here! The reason for it took so long is because Joe Belfiore told the developers to rebuild the UI. - [Lync server 2013 updates are here!](https://www.vatland.no/index.php/lync-server-2013-updates-are-here/) - Finally a update for Lync server 2013! http://www.microsoft.com/en-us/download/details.aspx?id=36820 At first glance this look like only bugfixes. Any one noticed some New feature? Atle - [Use IIS as a Reverse Proxy?](https://www.vatland.no/index.php/use-iis-as-a-reverse-proxy/) - Now that it has been desided that TMG is not a product for the future what are we going to do with Lync reveres Proxy? On Technet Blogs / NextHop you will find the answer. http://blogs.technet.com/b/nexthop/archive/2013/02/19/using-iis-arr-as-a-reverse-proxy-for-lync-server-2013.aspx - [How to expand enumerated lists in Powershell FT.](https://www.vatland.no/index.php/how-to-expand-enumerated-lists-in-powershell-ft/) - Have you ever seen {12,1234,34,124...} in PowerShell, and wondered "how do I get it to display the rest"? The builtin variable $FormatEnumerationLimit determines how many fields to display, default value is 4. To change : $FormatEnumerationLimit=15 - [Ever looked for some REGEX for Lync?](https://www.vatland.no/index.php/ever-looked-for-some-regex-for-lync/) - MSDN describes the simplest ones. http://msdn.microsoft.com/en-us/library/az24scfc.aspx http://msdn.microsoft.com/en-us/library/hs600312.aspx - [Permanently delete disconnected mailboxes in Exchange 2010](https://www.vatland.no/index.php/permanently-delete-disconnected-mailboxes-in-exchange-2010/) - This could be usefull when moving users and you would like to free up some space. # Permanently delete disconnected mailboxes. List disconnected:Get-MailboxStatistics -Server MAILSERVER | ?{$_.DisconnectDate -ne $null} |ft Displayname,Identity,Disconnectreason Remove by using mailbox database and mailbox identity.remove-storemailbox -Database MAILBOXDATABASE -Identity "8be4d91d-6380-4dcd-b5a4-d003f4ec3f14" -MailboxState Disabled - [XBOX Music error 0x800c0008](https://www.vatland.no/index.php/xbox-music-error-0x800c0008/) - This error has bin bothering me sometimes when I try to play Music on my Windows 8. The solution is to do a reset of Internet Explorer Desktop Version.... - [Lync server 2013 Error: Prerequisite installation failed: SqlInstanceRtc](https://www.vatland.no/index.php/lync-server-2013-error-prerequisite-installation-failed-sqlinstancertc/) - When installing Lync server 2013 this error bugged me. What could be wrong. with SqlExpress? Tried installing "sqlexpr_64.exe" from the DVD and here is my problem. Something went wrong when I downloaded the ISO image. Deleted the downloaded imaged and did a new download. After mounting the image I ran setup.exe and the same error - [Export users contacts from Lync 2010 and import into Lync 2013](https://www.vatland.no/index.php/export-users-contacts-from-lync-2010-and-import-into-lync-2013/) - You can do a dbimpexp from Lync 2010 to a xml file. Lync 2013 does not use dbimpexp more, but have a native import-csuserdata. These two commands does not use the same fileformat - this is where convert-csuserdata can help. This command convert from dbimpexp xml format to the zip(xml) format used by import-csuserdata. convert-csuserdata - [ABServer.exe crashes every 4 minutes.](https://www.vatland.no/index.php/abserver-exe-crashes-every-4-minutes/) - Issue: Abserver.exe in Lync crashes every 4 minutes. Event ID 12330:Failed starting a worker process. Process: 'C:\Program Files\Microsoft Lync Server 2010\Server\Core\ABServer.exe' Exit Code: C3E8302D!_HRX! (The worker process failed to initialize itself in the maximum allowable time.!_HRM!). Cause: This could happen due to low resource conditions or insufficient privileges. Resolution: Try restarting the server. If the - [Lync Edge server stopped replicating CMS](https://www.vatland.no/index.php/lync-edge-server-stopped-replicating-cms/) - At some time Lync edge server stopped replicating changes in configuration. Also a "get-csmanagementstorereplicationstatus" show False on Edge server. Investigation shows that the firewall has not changed and you can telnet from frontend to edge on port 4443. Alse got the same error in systemlog on edge server : Description: When asking for client authentication, this server sends a list of trusted certification - [Lync phone unable to sign in after windows update on Lync Server.](https://www.vatland.no/index.php/lync-phone-unable-to-sign-in-after-windows-update-on-lync-server/) - After update to Root Sertificates ( KB931125) http://support.microsoft.com/kb/931125 You are constantly getting Warning in the eventlog. Also Lync Phones will be unable to sign in. The error message on the phone is that the "Registrar FQDN could not be resolved". UPDATED: On new Phones you will only get a message that login failed when trying to - [Bitlocker protectors.](https://www.vatland.no/index.php/bitlocker-protectors/) - I wanted my drive to be protected from anyone but me, but as long as your computer is part of the domain every domain admin can logon and look at your data. So I used manage-bde.exe to encrypt my disk. Putted the protector key on a USB-drive (As would have been the case if your - [Add all Lync enabled users to a Active directory Group.](https://www.vatland.no/index.php/add-all-lync-enabled-users-to-a-active-directory-group/) - Needed one AD group that contained all Lync enabled users. Here this group is called "A-Lync" import-module lyncImport-Module activedirectory$lu=get-csuser$lu|ForEach-Object{ $_.Samaccountname Add-ADPrincipalGroupMembership -MemberOf A-Lync -Identity $_.Samaccountname } - [Delegation for Lync IP Phones White Paper](https://www.vatland.no/index.php/delegation-for-lync-ip-phones-white-paper/) - Nice document from Microsoft about delegation on Lync Phone Device. http://www.microsoft.com/en-us/download/details.aspx?id=34593 - [Exchange 2013 ecp iis error](https://www.vatland.no/index.php/exchange-2013-ecp-iis-error/) - After installing Exchange 2013 I got this "Server Error in '/ecp' Application" when entering "Exchange Admin Center" web page. "Could not load type 'Microsoft.Exchange.Managment.Security.AdfsFederationAuthModule'" Solution: Exchange 2013 did not install the "Windows Identity Foundation 3.5" automatically. So all there is to it, add this feature. - [Enable Lync 2010 HD video](https://www.vatland.no/index.php/enable-lync-2010-hd-video/) - To enable HD Video: Set-CsMediaConfiguration -Identity:Global -MaxVideoRateAllowed HD720p15m (You can select one of 3 different resolutions : CIF250K, VGA600K (the default), and last the HD resolution Hd720p15M) Enable-cstopology Restart Lync frontend services. - [Exchange 2012 Management Shell shortcut missing.](https://www.vatland.no/index.php/exchange-2012-management-shell-shortcut-missing/) - Make sure the required files are present in exchange bin folder: (These can be copied from another Exchange or from install media - Version at the same servicepack level.) - CommonConnectFunctions.ps1 - CommonConnectFunctions.strings.psd1 - Connect-ExchangeServer-help.xml - ConnectFunctions.ps1 - ConnectFunctions.strings.psd1 - RemoteExchange.ps1 - RemoteExchange.strings.psd1 Create a New shortcut on desktop or somewhere else: Command: C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe - ["User Profile Service failed the logon"](https://www.vatland.no/index.php/user-profile-service-failed-the-logon/) - Got this error when I tried to log on to a Windows 2008R2 server. I have never logged on to this server before, so it was not that my profile could have been deleted. Solution to this was that there was a file within the default profile that was missing som permissions. In this senario - [Lync server 2013 prerequisite install.](https://www.vatland.no/index.php/lync-server-2013-prerequisite-install/) - When installing Lync server 2013 on a Windows server 2012 I got a missing prerequisite. All you have to do is to install the "Windows Identity Foundation" feature. Powershell: Add-WindowsFeature Windows-Identity-Foundation To install all of required Windows features : import-module servermanager add-windowsfeature telnet-client,RSAT-ADDS,net-framework-45-core,windows-identity-foundation,Web-Static-Content,Web-Default-Doc,Web-Http-Errors,web-asp-net,web-asp-net45,Web-Net-Ext,Web-ISAPI-Ext,web-isapi-filter,Web-Http-Logging,Web-Log-Libraries,Web-Http-Tracing,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Console,Web-Scripting-Tools,Web-Client-Auth,server-media-foundation,MSMQ-Server,MSMQ-Directory,NET-WCF-HTTP-Activation45 To add "add-windowsfeature Web-Asp-Net,Web-Net-Ext " your computer needs access to internet. - [Enable directbooking in Outlook 2010](https://www.vatland.no/index.php/enable-directbooking-in-outlook-2010/) - Direct booking is disabled by default in Outlook 2010. To enable set this registry value : Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Office.0\Outlook\Options\Calendar] "EnableDirectBooking"=dword:00000001 Alternatly you can download ADM file from Microsoft and deploy. http://support.microsoft.com/kb/982774 - [Lync CallerID black list / block list](https://www.vatland.no/index.php/lync-callerid-black-list-block-list/) - After some time using Bing I have manged to do this. Thanks to : http://ucken.blogspot.no/2012/02/re-routing-incoming-calls-to.html I wanted the caller that is blocked to get a announcment. Step 1. Install Microsot Lync Server 2010/2013 SDK. Step 2. Create a announcement using new-csannouncement.New-CsAnnouncement -Identity "Applicationserver:server.contoso.com" -Name "NumberBlocked" -TextToSpeechPrompt "Sorry, Your call has been restricted" -Language "en-US" -whatifStep - [Script to delete files older thans x days](https://www.vatland.no/index.php/script-to-delete-files-older-thans-x-days/) - This script will delete files older than 10 days. $Now = Get-Date$LastWrite = $Now.AddDays(-10)$Files = get-childitem -Path "C:\folder_with_files_to_delete" |Where {$_.CreationTime -le $LastWrite} foreach ($File in $Files){Remove-Item -Path $File -Force} Save this script as "c:\scripts\deleteoldfiles.ps1" In schedule task select program/script to run : "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe" and use : -command "c:\scripts\deleteoldfiles.ps1" as argument Remember you has to set - [Import Phone Updates into Lync server.](https://www.vatland.no/index.php/import-phone-updates-into-lync-server/) - When you have downloaded and extracted the phone update this is the command to import it into Lync server: Import-CsDeviceUpdate -Identity "service:WebServer:lyncpool.test.local" -FileName C:\temp\ucupdates.cab Step 2 is to either add test devices or aprove the update for deployment. - [Exchange Powershell Max Quota exceeded. ](https://www.vatland.no/index.php/exchange-powershell-max-quota-exceeded/) - When doing some exchange powershell you would probably get this error or somthing like it sooner or later: Connecting to remote server failed with the following error message : The WS-Management service cannot process the request. This user is allowed a maximum number of 18 concurrent shells, which has been exceeded. Close existing shells or - [Lync phone calls failes, and log reports/sniff that Lync server cancel it.](https://www.vatland.no/index.php/lync-phone-calls-failes-and-log-reportssniff-that-lync-server-cancel-it/) - When calling some foreign numers Lync server CANCEL the call when it is in progress. Network sniff shows that the call is terminates after 10 sec. This is a default value of the Lync Routing engine. The value is located in "c:\program files\Microsoft Lync Server 2010\Server\Core\OutboundRouting.exe.config" SOLUTION:Replace value "FailOverTimeout" value 10000 with a value of - [Usefull links](https://www.vatland.no/index.php/usefull-links/) - Lync CallerID block script. http://www.vatland.no/post.aspx?id=8cefd818-9f00-431b-bc4e-2f35e829e4dd - [How much space is available in my Exchange 2010 database?](https://www.vatland.no/index.php/how-much-space-is-available-in-my-exchange-2010-database/) - The eventlog entry 1221 is gone. Now you run powershell. Get-MailboxDatabase -Status | fl identity,availablenewmailboxspace - [DPM 2012 backup Sharepoint 2010](https://www.vatland.no/index.php/dpm-2012-backup-sharepoint-2010/) - To backup sharepoint from DPM 2012 you willl first have to install DPM agent. Then run %program files%\Microsoft Data Protection Manager\DPM\Bin\ ConfigureSharepoint.exe -EnableSharepointProtection When asked fore WSSCmdletsWrapper user enter your farm administrator. If you get an error : Then the user you have logged on to the server with does not have the right permissions - [DPM 2012 system state backup failed with error 2033.](https://www.vatland.no/index.php/dpm-2012-system-state-backup-failed-with-error-2033/) - In some cases DPM agent installed and pointed to the wrong drive as temp drive. You will get an error 2033 "DPM encountered an error while performing an operation for F:\WindowsImageBackup\ on server.test.local (ID 2033 Details: The system cannot find the path specified (0x80070003))" This can be solved by editing DPM PSDatasourceconfig.xml file. The "FilesToProtect" entry - [MOM error when removing alerts.](https://www.vatland.no/index.php/mom-error-when-removing-alerts/) - Delete the mom cache database. Close MOM mmc. Goto local setting (%appdata%) ..\Local\Microsoft\Microsoft.Mom.UI.Console and delete "momcache.mdb" - [Unable to create exchange test user using "new-TestCasConnectivityUser.ps1"](https://www.vatland.no/index.php/unable-to-create-exchange-test-user-using-new-testcasconnectivityuser-ps1/) - [PS] C:\Program Files\Microsoft\Exchange Server\V14\Scripts>.\new-TestCasConnectivityUser.ps1Please enter a temporary secure password for creating test users. For security purposes, the password will be changed regularly and automatically by the system.Enter password: **********************************Create test user on: Server1.test.localClick CTRL+Break to quit or click Enter to continue.:CreateTestUser : Mailbox could not be created. Verify that OU ( Users ) exists and - [Collection of Tools](https://www.vatland.no/index.php/collection-of-tools/) - Microsoft iSCSI Target 3.3 http://www.microsoft.com/download/en/details.aspx?id=19867 Sysinternals http://technet.microsoft.com/en-us/sysinternals/default.aspx Remote Desktop Connection Manager http://www.microsoft.com/download/en/details.aspx?id=21101 NetMon parsers http://nmparsers.codeplex.com/releases/view/79102 LyncParser for NetMon http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=22440 Network Monitor 3.4 http://www.microsoft.com/download/en/details.aspx?id=4865 NBLookup Netbios/wins test http://support.microsoft.com/kb/830578 Paint.NET http://www.getpaint.net/download.html Lync Server 2010 SDK http://www.microsoft.com/en-us/download/confirmation.aspx?id=19675 ImgBurn http://www.imgburn.com IIS Transform Manager 1.0 http://www.microsoft.com/en-us/download/details.aspx?id=29889&WT.mc_id=rss_alldownloads_all Magic ISO http://www.magiciso.com/tutorials/miso-magicdisc-history.htm Microsoft Screen recorder http://technet.microsoft.com/en-ca/magazine/2009.03.utilityspotlight2.aspx Sysloggersmall http://sourceforge.net/projects/sysloggersmall/?source=directory - [Lync Company_Phone_Number_Normalization_Rules.txt not working.](https://www.vatland.no/index.php/lync-company_phone_number_normalization_rules-txt-not-working/) - Copied a rule from my regex edit into Company_Phone_Number_Normalization_Rules.txt and it dit not work. ABServer.exe -testphonenorm could not find any match even tho it told me it was using my rules (according to abserver.exe -dumprules). Turned out there was one or more spaces at the end of the line. ARG!!! "^(\d{8})$ " - [WP7 update to 7740.16](https://www.vatland.no/index.php/wp7-update-to-7740-16/) - After updating my HTC Mozart to update 7740.16 I got internet connection sharing, but one problem arised. The WLAN mac address changes every time I restart by phone. This is pretty annoying since my WLAN uses MAC validation. :( - [SCOM 2007 R2 , Error importing Exchange 2010 MP.](https://www.vatland.no/index.php/scom-2007-r2-error-importing-exchange-2010-mp/) - "Import incomplete" !!!! Does it sound familiar? I've tried and I tried. I tried servereal CU's (from 1 to 5) . Upgraded all the other MP's resulting in only one thing : "Import incomplete". It turned out that all I had to do was to increase the size of OperationManager database and log. Sometimes it is - [Passed Microsoft Exam 70-665 Lync Server,Administrator.](https://www.vatland.no/index.php/passed-microsoft-exam-70-665-lync-serveradministrator/) - Passed Microsoft Exam 70-665 Lync Server,Administrator. - [Check server accounts in Active Directory.](https://www.vatland.no/index.php/check-server-accounts-in-active-directory/) - I made a simple powershell to list server accounts in AD, list versions and service pack level. It will also do a simple test-connection to see if it is alive (remember 2008 firewall will block icmp by default. Import-Module activedirectory$htmlheader = ""$trtdstart =""$trtdstart3 =""$trtdstart1 =""$trtdstart2 =""$tdstart =""$tdstartstop=""$tdend=""$trtdend =""$htmlfoot= ""$counter = 1$servere = - [Phone 7 error "Download incomplete ...."](https://www.vatland.no/index.php/phone-7-error-download-incomplete/) - After upgrading to Mango I got an error message on my phone when I tried to download attachments or images : "Download incomplete. We will ....." . I only had this error on one of the Exchange accounts that I was syncing to my phone. Solution was to reimport CA certificate and reboot. The one - [Error 1603 installing Exchange 2010 RollUp's](https://www.vatland.no/index.php/error-1603-installing-exchange-2010-rollups/) - Getting error installing Rollup 5 for Exchange 2010 Sp1. Error 1603. According to msi log file it is ServiceControl.ps1 that is causing the error. Solution was to set execution policy to RemoteSigned and also run the "ServiceControl.ps1 AfterPatch" script from the Exchange 2010 Bin folder . Also remember to start Powershell as administrator. set-executionpolicy -executionpolicy RemoteSigned - [Test network with filecopy and Powershell](https://www.vatland.no/index.php/test-network-with-filecopy-and-powershell/) - Needed a way to test and time filecopy between servers using powershell. This is what I came up with. This example will use copy testfile.zip to server and time the progress. I used a file of 1.8 Gb. $servers="server1","server2","server3","server4","server5","server6"foreach($server in $Servers){if (!(test-path \$server\share\temp)) { new-item -path \$server\share -name temp -ItemType Directory}$start = get-datecopy-item C:\temp\testfile.zip -Destination - [Passed Microsoft Exam 70-664 Lync Server,Configuration.](https://www.vatland.no/index.php/passed-microsoft-exam-70-664-lync-serverconfiguration/) - Yes! Passed Microsoft Exam 70-664 Lync Server,Configuration. 920 points. Going for next -> 70-665 Lync server, Administration Atle - [Install Windows Phone 7 SDK on windows 2008 R2](https://www.vatland.no/index.php/install-windows-phone-7-sdk-on-windows-2008-r2/) - Aaron Stebner's WebLog shows us how to install Windows Phone 7 SDK on Windows 2008 R2. http://blogs.msdn.com/b/astebner/archive/2010/05/02/10005980.aspx Download the Windows Phone Developer Tools web bootstrapper and save it to your hard drive Extract the contents of the setup package by running vm_web.exe /x and choosing a path to extract to Go to the folder you - [Lync server PIC AV towards MSN users](https://www.vatland.no/index.php/lync-server-pic-av-towards-msn-users/) - Set do not require encryption on media connections. Set-CsMediaConfiguration -EncryptionLevel supportencryption - [Lync 2010 Download GAL NOW!](https://www.vatland.no/index.php/lync-2010-download-gal-now/) - Add registry dword reg key : HKLM\Software\Policies\Microsoft\Communicator GalDownloadInitialDelay DWORD 0 Will cause Lync client to download corporate addressbook on startup. - [List activesync device statistics](https://www.vatland.no/index.php/list-activesync-device-statistics/) - Some times it is usefull to get a list of when did devices last sync. get-mailbox | ForEach-Object { Get-ActiveSyncDeviceStatistics -Mailbox $_.Identity;}| Out-File -filepath c:\powershell\activesync.txt Or if you want to list spesific devices: get-mailbox | ForEach-Object { Get-ActiveSyncDeviceStatistics -Mailbox $_.Identity;}|where {$_.devicefriendlyname -eq "Touch_DUal"}| Out-File -filepath c:\powershell\activesync.txt - [Preparing for my next certification.](https://www.vatland.no/index.php/preparing-for-my-next-certification/) - I have been working with Lync since the early beta versions. Now I think it is time to test my skills and go for TS 70-664 Configuring Lync server. Here in Norway nearly all our customers are medium (->600 employees) so some functions built for large enterprises are rearly used. These are the things that - [Lync Phone and PIN lock policy](https://www.vatland.no/index.php/lync-phone-and-pin-lock-policy/) - We had problems with CX600 devices not working properly if we did not enforce device PIN locking. This seems to have been fixed in the latest firmware update. Atle - [List used phone numbers in Lync](https://www.vatland.no/index.php/list-used-phone-numbers-in-lync/) - This will list all used phone numbers in Lync. Except those used by Exchange UM (Auto Attendant ..) $LUser=Get-csuser -Filter {LineURI -ne $Null}$PLUser=Get-CsUser -Filter {PrivateLine -ne $Null}$LCommonarea=Get-cscommonareaphone -Filter {LineURI -ne $Null}$LAnaloge=Get-csanalogdevice -Filter {LineURI -ne $Null}$LAppEndPoint=Get-CSApplicationEndPoint -Filter {LineURI -ne $Null}$LExchUM=Get-CsExUmContact -Filter {LineURI -ne $Null}$LDialIN=Get-CsDialInConferencingAccessNumber -Filter {LineURI -ne $Null}$Workflow=Get-CsRgsWorkflow$LDevices=$LDialIN+$PLUser+$LUser+$LCommonarea+$LAnaloge+$LAppEndPoint$LDevices|sort-object -property Lineuri | ft DisplayName,LineUri - [*.cshtml files return html error 404 in BlogEngine.NET 2.5](https://www.vatland.no/index.php/cshtml-files-return-html-error-404-in-blogengine-net-2-5/) - I was searching for some help on this error for days. Tried adding different mappings. Then I found this page : http://www.sven-s.de/post/BlogEngine-HTTP-4043-cshtml-Handler-not-registered-in-Shared-Hosting.aspx " HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should - [Move Lync database to new sql server.](https://www.vatland.no/index.php/move-lync-database-to-new-sql-server/) - This is how I've done it. First in lab then in production. This is moving enterprise edition databases. For this to work you need one extra temporary sql server and one Lync server in a temporary Lync pool ,along with the new SQL production server. 1. Export Lync configuration just in case.export-csconfiguration -file c:\lyncconfig.zipexport-cslisconfiguration -file c:\lynclisconfig.zip - [SMTP unreliable links](https://www.vatland.no/index.php/smtp-unreliable-links/) - Had a problem with large emails between exchange 2010 servers. Got the smtp error 421.4.4.2 . I solved this by increasing the MaxProtocolError and ConnectionTimeout on the receiving connector. Use the powershell set-receiveconnector . In this senario we are talking about a 1mb sat link. ## Pages - [Atle](https://www.vatland.no/index.php/atle/) - Hello there! I work as a Senior Cloud Infrastructure Engineer in Stavanger Norway. My main focus areas are Microsoft Azure. Target is to automate everything using primarily powershell or Rest API calls My favourite place, or to be more precise my families favourite place to travel is Rome - Italy. Every time we are there - [Photos](https://www.vatland.no/index.php/photos/) - My 500px account ## Categories - [Uncategorized](https://www.vatland.no/index.php/category/uncategorized/) - [Development](https://www.vatland.no/index.php/category/development/) - [DPM 2012](https://www.vatland.no/index.php/category/dpm-2012/) - [Exchange](https://www.vatland.no/index.php/category/exchange/) - [Lync](https://www.vatland.no/index.php/category/lync/) - [Categories](https://www.vatland.no/index.php/category/categories/) - [SCOM 2007](https://www.vatland.no/index.php/category/scom-2007/) - [Thoughts](https://www.vatland.no/index.php/category/thoughts/) - [Windows](https://www.vatland.no/index.php/category/windows/) - [Lync Client](https://www.vatland.no/index.php/category/lync-client/) - [Hyper-V](https://www.vatland.no/index.php/category/hyper-v/) - [Skype for Business](https://www.vatland.no/index.php/category/skype-for-business/) - [S4B](https://www.vatland.no/index.php/category/s4b/) - [Conferencing](https://www.vatland.no/index.php/category/conferencing/) - [Powershell](https://www.vatland.no/index.php/category/powershell/) - [Outlook](https://www.vatland.no/index.php/category/outlook/) - [Office365](https://www.vatland.no/index.php/category/office365/) - [DirectAccess](https://www.vatland.no/index.php/category/directaccess/) - [Azure](https://www.vatland.no/index.php/category/azure/) - [Azure](https://www.vatland.no/index.php/category/uncategorized/azure-uncategorized/) - [CSP](https://www.vatland.no/index.php/category/csp/) ## Tags - [Event ID](https://www.vatland.no/index.php/tag/event-id/) - [Lync Edge server](https://www.vatland.no/index.php/tag/lync-edge-server/) - [Certificates](https://www.vatland.no/index.php/tag/certificates/) - [mailbox database](https://www.vatland.no/index.php/tag/mailbox-database/) - [Event ID 12331](https://www.vatland.no/index.php/tag/event-id-12331/) - [Event ID 50007](https://www.vatland.no/index.php/tag/event-id-50007/) - [Event ID 1001](https://www.vatland.no/index.php/tag/event-id-1001/) - [rtchost.exe](https://www.vatland.no/index.php/tag/rtchost-exe/) - [Lync](https://www.vatland.no/index.php/tag/lync/) - [Unified Messaging](https://www.vatland.no/index.php/tag/unified-messaging/) - [SMTP](https://www.vatland.no/index.php/tag/smtp/) - [Relayconnector](https://www.vatland.no/index.php/tag/relayconnector/) - [Receiveconnector](https://www.vatland.no/index.php/tag/receiveconnector/) - [PKI](https://www.vatland.no/index.php/tag/pki/) - [Lync Federation](https://www.vatland.no/index.php/tag/lync-federation/) - [Office 365](https://www.vatland.no/index.php/tag/office-365/) - [Cutover](https://www.vatland.no/index.php/tag/cutover/) - [Mapiexceptionnetworkerror](https://www.vatland.no/index.php/tag/mapiexceptionnetworkerror/) - [Exchange](https://www.vatland.no/index.php/tag/exchange/) - [Responsegroup](https://www.vatland.no/index.php/tag/responsegroup/) - [Workflow](https://www.vatland.no/index.php/tag/workflow/) - [external calls](https://www.vatland.no/index.php/tag/external-calls/) - [S4B](https://www.vatland.no/index.php/tag/s4b/) - [install error](https://www.vatland.no/index.php/tag/install-error/) - [internet](https://www.vatland.no/index.php/tag/internet/) - [download](https://www.vatland.no/index.php/tag/download/) - [Missed calls](https://www.vatland.no/index.php/tag/missed-calls/) - [Windows update](https://www.vatland.no/index.php/tag/windows-update/) - [Skype for business](https://www.vatland.no/index.php/tag/skype-for-business/) - [Powershell](https://www.vatland.no/index.php/tag/powershell/) - [Azure](https://www.vatland.no/index.php/tag/azure/) - [DirectAccess](https://www.vatland.no/index.php/tag/directaccess/) - [Sql](https://www.vatland.no/index.php/tag/sql/) - [CA_Failure](https://www.vatland.no/index.php/tag/ca_failure/) - [CSP](https://www.vatland.no/index.php/tag/csp/) - [Script](https://www.vatland.no/index.php/tag/script/) - [Refreshtoken](https://www.vatland.no/index.php/tag/refreshtoken/) - [AzureAD](https://www.vatland.no/index.php/tag/azuread/) - [Graph Api](https://www.vatland.no/index.php/tag/graph-api/) - [Api](https://www.vatland.no/index.php/tag/api/) - [Secretserver](https://www.vatland.no/index.php/tag/secretserver/) - [classes](https://www.vatland.no/index.php/tag/classes/) - [Collections](https://www.vatland.no/index.php/tag/collections/) - [MRU](https://www.vatland.no/index.php/tag/mru/) - [Credential](https://www.vatland.no/index.php/tag/credential/) - [Get-secret](https://www.vatland.no/index.php/tag/get-secret/) - [Add-secret](https://www.vatland.no/index.php/tag/add-secret/) - [Secretsmanagement](https://www.vatland.no/index.php/tag/secretsmanagement/) - [hashtables](https://www.vatland.no/index.php/tag/hashtables/) - [csv files](https://www.vatland.no/index.php/tag/csv-files/) - [json](https://www.vatland.no/index.php/tag/json/) - [regex](https://www.vatland.no/index.php/tag/regex/) - [convertfrom-json](https://www.vatland.no/index.php/tag/convertfrom-json/) - [4Fun](https://www.vatland.no/index.php/tag/4fun/) - [Fractal](https://www.vatland.no/index.php/tag/fractal/) - [Windows](https://www.vatland.no/index.php/tag/windows/) - [11](https://www.vatland.no/index.php/tag/11/) - [Windows 11](https://www.vatland.no/index.php/tag/windows-11/) - [0x80070002](https://www.vatland.no/index.php/tag/0x80070002/) - [RestMethod](https://www.vatland.no/index.php/tag/restmethod/)