#skype4b #powershell Watch Those Temporary Files!

Certain cmdlets in the SkypeForBusiness PowerShell module appear to have the need to write temporary files to the $env:temp folder in order to correctly function.

Over time, disk space consumption can add up, particularly when this path points to the default location, namely on the same drive where the operating system is installed. Needless to say, regular manual or scheduled clean-up of the temp directory is generally recommended to ensure continuous and trouble-free operations.

#powershell Script: Find Active Directory User II (Update v1.10)

The Find-AdUserII function listed here is an update to this. It now accepts a text parameter which is used to search for an AD user based on a number of common properties like displayname or samaccountname. Using this as a starting point, … Continue reading

#powershell Missing (CIM) Module Cmdlets, etc.

Starting in PowerShell version 3.0, the preferred way is Common Information Model (CIM) over Windows Management Instrumentation (WMI) to manage Windows and other supported (Linux) platforms. Consequently, many PS CIM cmdlets expose the parameter -CimSession which represents a client-side connection to a local or remote host.

Clearly, Get-Help *-cim* reveals available CIM cmdlets but only by … Continue reading

#skype4b Uninstall-CsDatabase SQL Failure

To remove a Skype for Business Server backend SQL database, you execute the following and immediately hit a similar failure as depicted:

Uninstall-CsDatabase -SqlServerFqdn fesqlserver -DatabaseType Monitoring

Trying to connect to Sql Server using windows authentication…
Exception stack:
Type: System.Reflection.TargetInvocationException, Message: Exception has been thrown by the target of an invocation.
Type: Microsoft.Rtc.Common.Data.DbSetupSqlServiceNotInstalledException, Message: Failed to find Sql Service. Make sure that SQL server service (default instance) is installed in machine fesqlserver.

Uninstall-CsDatabse: Failed to connect to the SQL Server fesqlserver.
At line:1 char:1

For a setup with non SQL default instance (MSSQLSERVER), specify the -SqlInstanceName parameter and corresponding value to correct this issue.

#skype4b Set Presence Idle Away Threshold with PowerShell

The majority of client-side settings in Skype for Business 2016 client are controlled in-band whereas certain parameters continue to be configured using Group Policy (centrally in an AD environment). The latter essentially writes to the corresponding key/value pair in the Windows registry for each user in HKCU:.

One such popular setting is the Away status. Because both Active Directory Computer and User Group Policy are applied at computer start/user log on, and automatically refreshes every 90 minutes in the background by default (+30 minutes random offset), manual configuration of this setting will be overwritten eventually.

To workaround this constraint … Continue reading

Zurich Kurs/Course: Windows Server 2016 Basics – Definitiv Start (ab Do. 24. Aug 2017)

Der praxisnahe Windows Server 2016 Basics Kurs (IS36.17.41) wird am Do. 24. Aug 2017 für insgesamt 6 Abende (18:00 bis 21:30 Uhr) in Zürich planmässig anfangen.

Sichern Sie sich Ihre Plätze und buchen Sie jetzt ansonsten müssen Sie bis Januar 2018 auf den nächsten Kurs warten. Mehr Information und Anmeldung finden Sie hier.

#powershell Script: Find Active Directory User II

#powershell Script: Find Active Directory User II (Update v1.10)

—–
Find-AdUserII is one of the many PowerShell functions/utilities in my personal script toolbox repository designed to help simplify the management and administration of just about any Active Directory Directory Services (AD DS) environments.

This self-explanatory utility works in PowerShell v2.0 and higher without any dependency on the AD PowerShell Module or other third party add-on. It accepts displayname as a parameter; you can customize the search criteria to any supported AD user attributes, for example. With the (auto) discovered forest/domain names, the function performs LDAP searches across multiple domains in your entire AD forest automagically (thanks to the .NET Framework). Enjoy!

################################################################################
# Copyright (c) 201x-2017 leedesmond.com
# All Rights Reserved. Use at your own risk and responsibility.
# Find-AdUserII.ps1
# Version 1.00
#
Continue reading

#powershell Script: Find Active Directory User I

Find-AdUserI is one of the many PowerShell functions/utilities in my personal script toolbox repository designed to help simplify the management and administration of just about any Active Directory Directory Services (AD DS) environments.

This self-explanatory utility works in PowerShell v2.0 and higher without any dependency on the AD PowerShell Module or other third party modules. It accepts SamAccountName as a parameter; you can customize the search criteria to displayname or any supported AD user attributes for example. You don’t even need to know or specify the domain name if your AD environment is a straightforward single forest single domain setup. Enjoy!

################################################################################
# Copyright (c) 201x-2017 leedesmond.com
# All Rights Reserved. Use at your own risk and responsibility.
# Find-AdUserI.ps1
# Version 1.00
#
Continue reading

Zurich Kurs/Course: Windows Server 2016 Basics (ab 24. Aug 2017)

Möchten Sie die Grundkenntnisse zur Verwaltung von der brandneuen Microsoft Windows Server 2016 Plattform lernen? Dann verpassen Sie diese Gelegenheit nicht, den aktuellen praxibezogenen Kurs zu besuchen. Dies findet schon am Do. 24. Aug 2017 für insgesamt 6 Abende in Zürich statt.

Es gibt noch freie Plätze – mehr Information und Anmeldung finden Sie hier.

Windows PowerShell 2.0 Deprecated in Windows 10 Fall Creators Update

Windows PowerShellAccording to the Microsoft KB article* entitled “Features that are removed or deprecated in Windows 10 Fall Creators Update“, Windows PowerShell 2.0, which shipped out of the box in Windows 7 and Windows Server 2008 R2, will be deprecated.

On platforms earlier than Windows Server 2016 and Windows 10 Build 1511, customers are advised to migrate applications and components to PowerShell 5.x.

Deprecated = not in active development and might be removed in future releases.

* Article ID: 4034825 – Last Review: Jul 24, 2017 Revision: 20