Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Stuffs from real IT system ADMINISTRATORS world and my LAB

Powershell Write-Eventlog The source name test does not exist on computer localhost

I was writing one GUI program on Microsoft Powershell, One of the requirement was logs (Information, Warnings and Errors) must be written under Event Log - Event Viewer, So troubleshooting or information viewing for program operations is easy and everything is logged properly. To fulfill the task there is a PowerShell cmdlet Write-EventLog can be used, but while running the command it was ge…

Read more

Stellar Converter for EDB - EDB to PST Converter tool

Recently I got one small project to architect, out of the box additionally where I wanted to provide a solution on urgent basis to convert exchange server EDB to PST for employee who left the company, I work on exchange server adhoc basis whenever there is resource crunch in the team. While knowledge sharing with my team and Exchange admins team/colleagues, I came to know about a tool Ste…

Read more

PowerShell Invoke-WebRequest The underlying connection was closed: Could not establish trust relationship for the SSL TLS secure channel.

I face below error frequently whenever try to automate a website running self signed or invalid certificate, Here is my lab vCenter server for demo which is using self signed SSL certificate. This causes my script to fail whenever using Invoke-WebRequest to automate website. You can trust the certificate by adding it to trusted root certificate or you can ignore the certificate that what we gen…

Read more

PowerShell Invoke-WebRequest The request was aborted Could not create SSL TLS secure channel

I was testing automating few banking websites to check uptime, Invoke-WebRequest is use to access webiste, using this command I wrote a script to access bank website with PowerShell commands, but while executing scripts it was failing to access web site and showing below error.

Invoke-WebRequest -Uri https://bank.com
Invoke-WebRequest : The request was aborted: Could not create SSL/TL…

Read more

Add and manage TLS SSL certificates on Azure Web App

Part 1: Create and deploy a website with Microsoft Azure web app service plan
Part 2: Configure a custom domain in Azure Web Apps
Part 3: Uploading to Azure Web Apps Using FTP
Part 4: Add and manage TLS SSL certificates on Azure Web App

While accessing my website hosted on Microsoft Azure Web App custom domain in chrome browser it was showing not secure, it means it is only using HTTP p…

Read more

Uploading to Azure Web Apps Using FTP

Web apps works as very good hosting plan, you can host your website apps on line with Azure very easily. This is 3rd article in the series how to upload files to web app. Once Azure Web Apps is configured, next step is to upload custom web application built with php + html codes on it. Go to the Resource Groups then Web App from the resources list.  

Part 1: Create and deploy a website with …

Read more

Azure azcopy login error Selected user account does not exist in tenant 'Microsoft Services' and cannot access the application '579a7132-0e58-4d80-b1e1-7a1e2d337859'

While working with new version 10 of azcopy.exe I was facing error while login. After logging in the browser it was not accepting my username and password to login to Azure.What it says is I am not able to login to '579a7132-0e58-4d80-b1e1-7a1e2d337859', and my user account doesn't exist for login. I checked the GUID but I was not able to find it anywhere associated on my Azure subscription.

Read more

AzCopy copy transfer fails with 403 This request is not authorized to perform this operation using this permission

Azcopy is a great command-line tool for automating Azure storage, it is a simple yet powerful command line interface that allows you to copy files to and from Azure storage and between Azure storage accounts. I was doing POC of the latest version of azcopy.exe, (There 2 different flavors available for azcopy.exe on Microsoft site, old and new (completely different parameters for both)). I am using…

Read more

Configure a custom domain in Azure Web Apps

Part 1: Create and deploy a website with Microsoft Azure web app service plan
Part 2: Configure a custom domain in Azure Web Apps
Part 3: Uploading to Azure Web Apps Using FTP
Part 4: Add and manage TLS SSL certificates on Azure Web App

After first part of installing web apps on Microsoft Azure, I purchased (I already have it) custom domain name from domain hosting provider. My deployed…

Read more

Create and deploy a website with Microsoft Azure web app service plan

I was testing Microsoft Azure web app resource service for one of a incoming project, it allows you to publish and manage your website easily without having to work with the the underlying servers, storage, or network assets, basically it is a PAAS (Platform as a service), it is helps you to focus on your website features and rely on the robust azure platform to provide secure access to your site.

Read more

View older posts »

Page Views

3746548

I had the same problem, I added this line to the script that solved my problem.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Could you please let me know if there is any command to export the nsg rules along with the details like to whom they are associated (subnet, nic).

dsadd ou "ou=Infra, dc=domain, dc=local"

dsadd group "cn=Test, ou=Infra, dc=domain, dc=local" -scope g -secgrp yes

dsadd user "cn=Sjaak, ou=Infra, dc=domain, dc=local" -samid dc2020 -pwd password2020 -pwdneverexpires yes -canchpwd no -disabled no -memberof "cn=Test, ou=infra, dc=domain, dc=local"

@Andrea Script will need to be little modify, its very easy.

Follow me on Blogarama