Tuesday, December 30, 2025

How to get tenant ID from subscription ID

 1. First run the command below in powershell, substituting the subscription ID into the last line.


function Get-TenantIdFromSubId ($subId) {

    $url = "https://management.azure.com/subscriptions/$($subId)?api-version=2015-01-01"

    try {

        Invoke-WebRequest -Uri $url -Method Get -ErrorAction Stop

    } catch {

        # Extract the Tenant ID from the WWW-Authenticate header in the 401 response

        $authHeader = $_.Exception.Response.Headers["WWW-Authenticate"]

        if ($authHeader -match "https://login.windows.net/([a-f0-9-]+)") {

            return $matches[1]

        }

    }

    return "Tenant not found or ID invalid."

}


# Usage:

Get-TenantIdFromSubId "your-subscription-id-here"


2. After you get your tenant ID, go to the page below to identify the tenant.

https://sub2tenant.com/

Friday, November 14, 2025

ScreenConnect - Adding user with OTP

 Visit the page below to generate the OTP code for a new user in ScreenConnect:


https://docs.connectwise.com/ScreenConnect_Documentation/Get_started/Administration_page/Security_page/Enable_two-factor_authentication_for_host_accounts/Configure_two-factor_authentication_with_Google_Authenticator

Thursday, February 13, 2025

Print Nightmare workaround

 


  • Run an administrative command prompt
  • Copy this command:
    • reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v RestrictDriverInstallationToAdministrators /t REG_DWORD /d 0 /f
  • You should not need to reboot after doing this, but if you still can't add the printer go ahead and reboot
  • After adding the printer successfully, delete this registry entry and reboot

Friday, October 18, 2024

Altaro offsite backups to Azure

 Pretty much everything you need is in the article below. You'll set up the Azure account with storage, set up a container in that storage, and then grab the connection string key from Azure. You will use the container name and connection string to get Altaro connected to Azure.


https://support.hornetsecurity.com/hc/en-us/articles/19688419335057-How-to-set-up-Offsite-Copies-to-an-Azure-Cloud-Storage-Account



Monday, July 1, 2024

Problem launching iDRAC viewer on Dell Servers - possible solutions

 If you try to launch the iDRAC viewer on a Dell server and get an error message saying "the viewer has terminated - Reason: the network connection has dropped", please use the instructions below to temporarily get by the issue. It involves changing the security settings in your Java installation. The better long term fix is to update your iDRAC software and firmware to the latest version, but this solution can get you by in a pinch.


If you search for the java.security files located in lib/security for each installation, you can comment the existing section then copy/paste without the algorithm:

Example Code:
#jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 1024, \
# EC keySize < 224, DES40_CBC, RC4_40, 3DES_EDE_CBC
jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 1024, \
EC keySize < 224, DES40_CBC, RC4_40

Note: You may have to update multiple files if you've installed Java for 32 and 64-bit platforms.

Save your file(s), close and re-open your browsers, and everything tests out fine.



The above comes from the article in the following link:


https://www.dell.com/community/en/conversations/systems-management-general/using-virtual-console-network-connection-has-dropped/647f79d4f4ccf8a8de7fc82b



OR...


I have found that the above does not always work for me. Another option is to reset the iDRAC from the main screen. That takes quite a few minutes, but does not affect the server in production. After the iDRAC has been reset, you should be able to view the launcher.


OR...


I think this is the best option...assuming it is available on your iDRAC. Make sure your iDRAC has the latest firmware. If it does, hopefully HTML5 is an option for you. On the main iDRAC page, click on "settings" under "Virtual Console Preview". Change the plug-in type to HTML5 and click "apply". You will need to have port 5900 allowed through your firewall for this to work, as well as the standard HTTPS port you are using.

Thursday, September 28, 2023

Moving redirected folders to a new server

 You have two options here:


  • You can remove the GPO so that folders are moved back to the local PC first, and then create a new GPO which points to the new server
    • If there is a lot of data, this can take a while. The user login will be slow.
    • You must have the Folder Redirection GPO set to "redirect folders back to the local userprofile" option selected for this to work

  • The other option is to copy all the files from the old server to the new server using robocopy. You can use the commands below to achieve this:
    • robocopy /B <Source> <Destination> /Copyall /MIR /EFSRAW
    • robocopy z: e:\shared\fr /e /copyall /zb /r:3 /w:5 /xo

Using the option above, you will eventually turn off
the share on the old server and then point the GPO to
the new server share. You cannot turn off the old share until every user
has logged in and had

their folders redirected to the new server!

It is probably best to reboot the new server after making the GPO change
in order to make the change stick.

Tuesday, November 23, 2021

Updating Dell servers using DSU (Dell System Update)

  • Search for latest Dell System Update for the server you are working on. Use the service tag on the Dell support site and then search for DSU in the downloads section.
  • Install package by double clicking the downloaded file
  • After install, run an administrative command prompt. Browse to c:\program files\Dell\DELL EMC System Update.
  • Type .\dsu.exe
  • The server will be inspected, and after some time applicable updates will be displayed
  • To select all updates, type the letter "a" and press "enter"
  • To commit the updates, type the letter "c" and press "enter"
    • To select only certain updates, look through the list and determine which ones are needed (check which ones are upgrades). Enter the number for each upgrade needed and hit enter. When all the updates have been selected, type the letter "c" and press enter.

This takes quite a while, so be prepared.