Virtual Geek

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

Blog posts : "powershell"

How to Setup Passwordless SSH Login on Windows

Since I upgraded my laptop to Windows 10, I started using inbuilt tool SSH.exe to connect openssh servers (linux) instead of external tools like putty.exe. Here whenever I want to connect to linux through ssh, it prompts for password each time for new login. To make linux passwordless connection ov…

Read more

Oneliner Powershell How to Add and Remove AD users and Objects in Groups members

This is one-liner simple and small active directory powershell script to add or remove AD groups members from text file or a single user, I have already written another few articles in this regards as you can find below.

Installing, importing and using any module in powershell
Powershell one li…

Read more

PowerShell WPF before and after image slider

While doing a PowerShell GUI project for a one of my client, they wanted to use one of the WPF control – GridSplitter, in such a way that it will switch or show different images while sliding GridSplitter. This cool effect can be easily achieved by using WPF bindings. I am using horizontal grid spli…

Read more

Powershell Azure Inventory GUI Utility



Here I have developed a script using Microsoft Powershell which I was working since last couple of days in my lunch breaks. Just to show my work below is the video, it shows how GUI tool looks like and work, Still there a…

Read more

Azure automation account DSC for On-Premise Virtual Machine on boarding

In my earlier series on on-prem Powershell DSC server I shown how to configure DSC (Desired State configuration) server and its client on windows & linux. Enabling WinRm is one of the main prerequisite for all DSC operations. If I see DSC's future, Microsoft is more and more focusing on Azure DSC …

Read more

Getting started with Powershell Desired State Configuration (DSC) on Linux

DSC is a (DevOps) management platform in PowerShell that enables you to manage your IT and development infrastructure with configuration as code. While writing Part 1: Configure PowerShell remoting between Windows and Linux my main motive was to configure push Desired State Configuration (DSC) on L…

Read more

Configure PowerShell remoting between Windows and Linux

After opensource PowerShell core 6 for linux was available to download, I wrote an article on it - How to Install and Use Microsoft PowerShell on Linux. This is just an addition to same guide. Few of my linux servers were installed with PowerShell core and they were installed with few PS modul…

Read more

Powershell Generate Self-signed certificate with Self-Signed Root CA Signer

While exploring options on creating self signed SSL certificate using PowerShell, I got to know one of the good New-SelfSignedCertificate parameter Signer. It can be used by developers for testing purpose or I can also use it to generate fake CA signed certificates for my lab experiments. All the …

Read more

Powershell WinRM HTTPs CA signed certificate configuration

This guide is not specific to configuration but it also shows how I troubleshooted CA signed certificate issue while configuring WinRM listener. This is a third part of PowerShell remoting over HTTPS using self-signed SSL certificate, For security best practices instead of going with Self signed ce…

Read more

Configure Powershell WinRM to use OpenSSL generated Self-Signed certificate

PowerShell remoting over HTTPS using self-signed SSL certificate

This is a step by step guide and will show you how to use HTTPS port  and self signed SSL certificate while using Powershell Remoting. On the PSRemoting regards I had already written one article in the past POWERSHELL PS REMOTING BETWEEN STANDALONE WORKGROUP COMPUTERS, When you use WinRM PSRemot…

Read more

Push SSL certificates to client computers using Group Policy

In my earlier article I shown how to Generate new self-signed certificates for ESXi using OpenSSL. Importing this certificate in local certificates store is good for single computer or 2-3 systems, but may be tedious task if you want to maintain it on more than 10 systems, think what happens if the…

Read more

Powershell Active Directory 2: Check, enable and disable child OU protect object from accidental deletion

This script is second part of  article Powershell Active Directory 1: Check, enable and disable child OU protect object from accidental deletion, In this script I have added enable and disable option, Usage are the same as first script. here is my complete OU hierarchy, There are two newly added …

Read more

Powershell Active Directory 1: Check, enable and disable child OU protect object from accidental deletion

This script can be used to check the OU (Organization Unit) protect object from accidental deletion status. it provides other OU related information for reporting and inventory purpose. Inventory is generated using ActiveDirectory powershell module.

Active Directory Users and Computers, dsa.msc, Ou, Orgnization Unit, Project Object from accidental deletion, Ou object Managed By tab, Ou report, inventory, hierarchy report, Active directory module powershell.png

This report includes parent OU and all it…

Read more

PowerShell Active Directory: Sync group membership from one user to another user and move to OU

Again I received some good feedback from community, This article is just a next update to my existing script PowerShell: Copy group membership from one user to another user in Active Directory, whose purpose is adding groups on member of tab on destination users and not removing anything. Which was…

Read more

PowerShell GUI: Copy group membership from one user to another user in Active Directory

This is a GUI part of my earlier written script PowerShell: Copy group membership from one user to another user in Active Directory. I converted same script to GUI written in WPF language for simplifying task. It requires Source User and Destination users list is loaded from text file. (Text file c…

Read more

PowerShell: Copy group membership from one user to another user in Active Directory

In the past, I received multiple emails asking for a script, subject was copying group membership from one user to another user in AD. I thought of writing a reusable script code and so anyone can and use it. Copy groups membership from one user to another user tasks can be lengthy and takes lots of…

Read more

Powshell GUI Date and Time converter tool

Recently I was working on a setting and automating a small project, this environment had very limited access to internet because of restrictions, Only required external partner websites were accessible. Users were using change management tool, they had to schedule times for change and company were s…

Read more

Solved Visual studio Code make sure you configure your and in git

Recently I formatted laptop and all the settings for my script environment where gone, I developed lots of PowerShell script using my laptop and use Version control to track changes which is very important, especially when I daily change my codes. Although I solely write my code, still if i require …

Read more

Powershell GUI format text on TextBox and RichTextBox

I was preparing some auditing and reporting tools for some of newly received projects and wanted a way to formatting representation of data on my GUI form in nice way. To show this nice formatting you can use tags inside TextBlock and RichTextBox inside xaml code and binding can be used.These tags a…

Read more

20 Blog Posts

Blog Search

Page Views


Follow me on Blogarama