Allgemein

Activate common Desktop Icons on Windows 10 and Server 2016

I still like to have the icons for 'Network' and 'This PC' on my Desktop on Windows. In Windows 10 and Server 2016, this setting is not so easy to find. It can be accessed via Settings -> Personalization -> Designs -> Themes -> Desktop Icon Settings. Another way is to execute the following command: rundll32.exe shell32.dll, Control_RunDLL desk.cpl,, 0 The setting can also be found via the desktop search by typing in the term "Common".
Allgemein

Certificate warning when starting applications via remote desktop services

In my test environment I recently built a new Windows Server 2016 based remote desktop environment. The environment consists of a server with the roles RD Web Access, RD Gateway, RD Gateway, RD Connection Broker and the RD License Server as well as another server that acts only as RD Session Host. For the roles Web Access, Gateway and Connection Broker, an official wildcard certificate was used and a official DNS name has been created so that the server can be accessed via the Internet. After everything was set up I did some tests and tried to access the Web...
Allgemein

Custom Event view to monitor logins of a user

A couple of days ago a customer asked me if I know a solution for his problem: They have used the standard domain administrator account (contoso\Administrator) during the last 10 years for the installation and configuration of server software and applications. Now they want to change the password of the domain administrator and they don't know where the account has been used so that they can change it in the application / service / scheduled task etc. Using the standard domain administrator account to install and configure software is not a good idea because in a situation like this you...
Allgemein

Enable IMAP and Message Submission with SSL/TLS for Exchange Server 2013

From time to time I need to enable IMAP and Message Submission for Exchange servers. Most of the time it is because there is some kind of CRM / ERP System that needs to send and receive emails. Here are the steps to enable IMAP and Message Submission with SSL/TLS. I used a Wildcard certificate (*.contoso.com) to secure the data. IMAP/S uses port 993 (TCP) and Message Submission uses port 587 (TCP). Message Submission was created to distinguish between SMTP for Servers and SMTP for Clients. SMTP for Servers runs on port 25 and SMTP for Clients (Message Submission) runs...
Allgemein

Get-ADUser returns empty value for Active Directory attribute msDS-UserPasswordExpiryTimeComputed

Today I wrote a script for a customer of mine to send emails to remote users that their password will expire in 10 days or less and they have to change it. To get the Information when the Password of a user will expired I used the PowerShell cmdlet Get-ADUser and received the AD property 'msDS-UserPasswordExpiryTimeComputed': $users = Get-ADUser -Filter {Enabled -eq $true -and PasswordNeverExpires -eq $false} –Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed", "UserPrincipalName", "GivenName", "SN", "Mail" | Select-Object -Property "Displayname",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}}, "UserPrincipalName", "GivenName", "SN", "Mail" | Sort DisplayName This worked on the Domain Controller but not on the Exchange Server so I was...
Allgemein

Download Location of Citrix Netscaler VPX Express edition

I only access the Citrix Website from time to time so I am always searching for the download page of the Netscaler VPX Express Edition. If you need it too you can find it under the following URL: https://www.citrix.com/downloads/netscaler-adc/virtual-appliances/netscaler-vpx-express.htm You need a Citrix account to access this site. You can also navigate there from the regular download page via https://www.citrix.com/downloads -> "Select a product: Netscaler ADC" -> "Netscaler VPX Express". Please note that there is no 12.x Netscaler VPX Express Edition. Only the 11.x branch is available.
Allgemein

Exporting password properties from Active Directory to file with PowerShell

This command exports password information of users from Active Directory and writes them to a csv file: Get-ADUser -Filter * -Properties SamAccountName, PasswordLastSet, PasswordNeverExpires | Select SamAccountName, PasswordLastSet, PasswordNeverExpires | Sort SamAccountName | Export-CSV -Path ("{0}\Desktop\AD.User.Password.csv" -f $env:USERPROFILE) -NoClobber -Encoding UTF8 -NoTypeInformation -Force  
Allgemein

Get Exchange mailboxes of disabled Active Directory accounts with PowerShell

Today a one liner: I needed a list of Exchange mailboxes with disabled Active Directory accounts. Here is the command to display them in the PowerShell window: Get-Mailbox | where {$_.ExchangeUserAccountControl -Match "AccountDisabled"} | fl DisplayName, Database, ExchangeUserAccountControl If you want to create a csv file that lists all OWA enabled users but excludes all disabled accounts use the following command line (using Get-CASMailbox together with Get-Mailbox): Get-Mailbox | where {$_.ExchangeUserAccountControl -ne "AccountDisabled"} | Get-CASMailbox | where {$_.OwaEnabled -eq "True"} | Select DisplayName, OwaEnabled | Export-Csv -Path ("{0}\Desktop\OWA.Users.csv" -f $env:USERPROFILE) -NoClobber -Encoding UTF8 -NoTypeInformation This will create the list and...
Allgemein

Change the Windows updates install time on Hyper-V Server

I needed to change the install time of Windows updates on a Hyper-V Server 2016 from the default of 03:00 to 01:00. There is an Option in sconfig (the blue menu box) to change the Windows update install behavior from manual to automatic but there is no option to change the time when the installation of the updates should happen so it defaults to 3:00 AM. It is also not possible to install the Windows update Cmdlets that would allow us to change the configuration of the Windows updates because that feature does not exist in Hyper-V Server. So the...