Skip to primary content
Skip to secondary content

server1.dk

Tech Tips

server1.dk

Main menu

  • Home

Category Archives: Uncategorized

Post navigation

← Older posts
Newer posts →

WARNING: Unable to download from URI ‘https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409’

Posted on October 27, 2020 by Henrik
Reply

Set TLS to 1.2 in Powershell and try again

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Posted in Uncategorized | Tagged nuget, powershell | Leave a reply

Get current path in Powershell

Posted on October 24, 2020 by Henrik
Reply
$PWD.Path


Posted in Uncategorized | Tagged powershell | Leave a reply

Ping from Powershell with Timestamps

Posted on October 23, 2020 by Henrik
Reply
Ping -t 8.8.8.8 | ForEach {"{0} - {1}" -f (Get-Date),$_}
Posted in Uncategorized | Tagged ping, powershell | Leave a reply

Run 64bit Powershell command from 32bit Powershell

Posted on October 14, 2020 by Henrik
Reply
$Clustername = "The_Cluster"

Set-Alias Start-PowerShell64 "$env:windir\sysnative\WindowsPowerShell\v1.0\powershell.exe"
# Create run string, to be able to parse argument
$runThis = "Start-PowerShell64 {Get-ClusterNode -Cluster " + $Clustername + "}"
$Outdata = Invoke-Expression $runThis
Posted in Uncategorized | Tagged 32bit, 64bit, powershell | Leave a reply

Check if string contains numeric value in PowerShell

Posted on September 25, 2020 by Henrik
Reply
if($teststring -match "^\d+$")
{
   Write-host "It's a number"
}
Posted in Uncategorized | Tagged integer, powershell, string | Leave a reply

Get all Active Directory DC’s via Powershell

Posted on September 21, 2020 by Henrik
Reply
$allDCs = (Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ }
Posted in Uncategorized | Tagged Active Directory, powershell | Leave a reply

Install AD RSAT tools from Powershell on Windows Server

Posted on September 18, 2020 by Henrik
Reply

Add-WindowsFeature -Name "RSAT-AD-PowerShell" –IncludeAllSubFeature
Posted in Uncategorized | Tagged powershell, rsat, windows server | Leave a reply

How to find the ports that a linux machine listen on

Posted on July 15, 2020 by Henrik
Reply
sudo netstat -tulpn | grep LISTEN
Posted in Uncategorized | Tagged linux, network | Leave a reply

Power BI Azure Data Lake Storage Gen2 with Gateway setup

Posted on June 4, 2020 by Henrik
Reply
Posted in Uncategorized | Tagged data lake, datalake, gateway, power bi | Leave a reply

Add Azure Active Directory user to Azure SQL

Posted on May 7, 2020 by Henrik
Reply

First of all, you need to add an Azure Active Administrator to the SQL

In SQL studio to add user/groups:

CREATE USER [Team_xyz] FROM EXTERNAL PROVIDER;
EXEC sp_addrolemember db_owner, [Team_xyz];
Posted in Uncategorized | Tagged azure ad, azure sql | Leave a reply

Post navigation

← Older posts
Newer posts →
Recommended by server1.dk

Tags

  • 32bit
  • 64bit
  • Active Directory
  • ad
  • array
  • Azure
  • azure ad
  • azure function
  • cmd
  • costcenter
  • curl
  • datalake
  • Exchange
  • Exchange 2016
  • gateway
  • hashtable
  • integer
  • linux
  • network
  • nuget
  • ping
  • pip
  • policy
  • ports
  • powershell
  • print
  • public folder
  • random
  • remote
  • REST
  • Roles
  • rsat
  • sms
  • sql
  • SSL
  • string
  • tags
  • tcp
  • text message
  • Virtual Machine
  • windows
  • Windows 10
  • Windows 11
  • windows server
  • Windows Update

Recent Posts

  • You can’t access this shared folder because your organization’s security policies block unauthenticated guest access April 25, 2025
  • Download Windows 11 trial without registration March 18, 2025
  • Link to download English version of Windows Server 2025 without registration December 23, 2024

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress