Month: October 2020

Moving WSUS Content Staging Folder

Symptom: Bloated Wsus Staging Folder: Resolution: $wsusNewContentFolder='D:\Wsus\WsusContent'stop-service 'wsus service'&'C:\Program Files\Update Services\Tools\wsusutil.exe' movecontent $wsusNewContentFolder "$wsusNewContentFolder.log"start-service 'wsus…

Start All Automatic Services on Windows

Current version: # startAllAutoServices.ps1 # version 0.0.2 # Description: # - This script to scan…

Windows Update Error Code 0x80244022

Symptom: There were some problems installing updates, but we'll try again later. If you keep…

Windows Update Error

Error Message: There were some problems installing updates, but we'll try again later. If you…

T-SQL Msg 3101 Exclusive access could not be obtained because the database is in use

Symptom: Msg 3101, Level 16, State 1, Line 2Exclusive access could not be obtained because…

SQL Error Msg 3201, Level 16, State 2

Sample Error Message: Msg 3201, Level 16, State 2, Line 2Cannot open backup device '\\1.1.1.1\d$\backup\TEST_MSCRM.bak'.…

Remote Desktop: Broken Domain Trust Relationship Between Workstation an Primary Domain Controller

Symptom Remote desktop initiation toward a certain server would result in an error message with…

PowerShell: Convert Array to Hash and back to Array

# convert 2D Array to Hash Table while removing any duplicate keys function arrayToHash($arr){ $hash…

Remote Desktop Connection An internal error has occurred.

RDP Error Message:     Resolution: Method 1: Create and apply a self signed certificate…

PowerShell: Set User Option Change Password At Next Logon

$ou="OU=Users,DC=corp,DC=hooli,DC=com" $usersInOu=Get-ADUser -Filter * -SearchBase $ou $usersInOu|Set-ADUser -CannotChangePassword:$false -ChangePasswordAtLogon:$false

Application Blocked By Java Security

Symptom: When attempting to open a Java Web Application such as iDrac console, this error…

Querying Internal DNS for Host Record for iDRAC IPs

Copy / Paste for quick results: $domain='hooli.com'$records=Get-DnsServerResourceRecord -ZoneName $domain -ComputerName $env:USERDNSDOMAIN$records|?{$_.HostName -like '*drac*' -and $_.RecordType…

PowerShell: How to Install Remote Desktop Services

Prerequisites: Required ports for RDS Services- UDP/TCP 135 ingress/egress- UDP/TCP 137-139 ingress/egress- TCP 445 ingress/egress-…

RDP: Common Connection Errors

Error Message: [Window Title]Remote Desktop Connection[Content]The remote session was disconnected because there are no Remote…

IIS Error Code 0x80070021

Error Message: Detailed Error Information:Module IIS Web CoreNotification BeginRequestHandler Not yet determinedError Code 0x80070021Config Error…

ADFS: Adding a Relying Party Trust

The following instructions assume the task of creating a authentication endpoint to allow external users…

ADFS Configurations

View existing ADFS global configs PS C:\Users\administrator.CAP> get-AdfsGlobalWebContentSignOutPageDescriptionText :UpdatePasswordPageDescriptionText :Locale :CompanyName :CertificatePageDescriptionText :ErrorPageDescriptionText :ErrorPageGenericErrorMessage :ErrorPageAuthorizationErrorMessage…

Microsoft Excel Error: The Request Was Aborted Could Not Create SSL/TLS Secure Channel

Issue: Eventvwr.exe > Applications and Services Logs > Microsoft Office Alerts The request was aborted:…

PowerShell: Get Terminal Service (Remote Desktop Service) Licenses Report

# rdsLicenseReport.ps1 $knownRdsComputers=$null # Options: (a) 'SERVER1','SERVER100' (b) Get-Content Path\To\RDServers.txt function getTsLicenses{ param( $knownRdsComputers, $domain=$env:userdnsdomain…

Remote Desktop Error Code 0x8000FFFF

Symptom: Terminal-Services-ClientActiveXCore Event ID 226 on RDP Server: rdpclient_ssl: an error was encountered when transitioning…