This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ADFSCertificate Token-Signing | Select-Object Thumbprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 3.0 -Modules UpdateServices | |
<# | |
.SYNOPSIS | |
Accept License Agreements | |
.DESCRIPTION | |
Accept License Agreements for all Windows Server Update Services (WSUS) Updates | |
.PARAMETER Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Export-DistributionGroup2Cloud | |
{ | |
<# | |
.SYNOPSIS | |
Function to convert/migrate on-premises Exchange distribution group to a Cloud (Exchange Online) distribution group | |
.DESCRIPTION | |
Copies attributes of a synchronized group to a placeholder group and CSV file. | |
After initial export of group attributes, the on-premises group can have the attribute "AdminDescription" set to "Group_NoSync" which will stop it from be synchronized. | |
The "-Finalize" switch can then be used to write the addresses to the new group and convert the name. The final group will be a cloud group with the same attributes as the previous but with the additional ability of being able to be "self-managed". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 3.0 | |
<# | |
.SYNOPSIS | |
File I/O Speed-Testing | |
.DESCRIPTION | |
File I/O Speed-Testing | |
.PARAMETER ReadFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Log off all users on a Windows Server or Remote Desktop Server | |
.DESCRIPTION | |
Log off all users on a Windows Server or Remote Desktop Server | |
.PARAMETER ComputerName | |
Specifies the computers on which the command runs. The default is the local computer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>_metadata</key> | |
<dict> | |
<key>created_by</key> | |
<string>macadmin</string> | |
<key>creation_date</key> | |
<date>2017-06-30T22:05:31Z</date> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
{ | |
"info": { | |
"Statement": "Code is poetry", | |
"Author": "Joerg Hochwald", | |
"Contact": "joerg.hochwald@outlook.com", | |
"Link": "http://hochwald.net", | |
"Support": "https://github.com/jhochwald/MyPowerShellStuff/issues" | |
}, | |
"Copyright": "(c) 2012-2015 by Joerg Hochwald. All rights reserved." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install the dependencies | |
apt install libc6 libgcc1 libgssapi-krb5-2 libicu72 libssl1.1 libstdc++6 zlib1g -y | |
# Get the .NET install script | |
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh | |
# Make it executable | |
chmod +x ./dotnet-install.sh | |
# Install the .NET SDK 7.0 (STS) for ARM64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 2.0 -Modules MSOnline | |
<# | |
PowerShell Core (PWSH) is not supported, at least not yet | |
# Easy way to install the MSOL Module, requires PowerShell 5 or PSGet | |
Install-Module -Name MSOnline | |
I still use the old (MSOL) module, cause it works best at the moment. | |
I might convert more and more to the newer modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Download a new UniFi Controller Firmware and install it | |
# Used to to automate the installation of newer controller firmware on a UniFi Cloud Key | |
# Author: Joerg Hochwald | |
# Copyright: Copyright (c) 2019, Joerg Hochwald - All rights reserved. | |
# LICENSE: License: https://opensource.org/licenses/BSD-3-Clause | |
# THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER. |
NewerOlder