Menu

Virtual Geek

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

Blog posts : "powershell"

Active Directory Powershell: Create bulk users from CSV file

August 19, 2017 11:00PM

Creating bulk multiple user accounts on Active Directory Users and Computers mmc console is very boring and tough task also it is most of the time consuming and error prone tend to be lots of mistakes. If same task is done using automation it will be interesting and happen in less time. Active direc…

Read more

Different ways to bypass Powershell execution policy :.ps1 cannot be loaded because running scripts is disabled

August 19, 2017 03:12PM

By default PowerShell scripts ps1 extension files are restricted to execute on windows system (For windows 2016 it is by default remotesigned), Generally whenever you run ps1 file you will see below error on Powershell console. This is not the authentication issue instead no one can execute ps1 file…

Read more

Powershell one liner: Create multiple user accounts

August 9, 2017 10:44PM

I had an opportunity to teach PowerShell Active Directory basics to some of my junior subordinate, Where I wanted them to show few test cases on creating multiple active directory user accounts, After building active directory from scratch, As this was the demo example lab, accounts created  running…

Read more

Powershell: Change DNS IP addresses remotely on multiple computers using CIM & WMI

August 2, 2017 08:05PM

Although I had written this script around 4 years back I have again revised it to work it in more better way with status report on console. I used this script again after long time to change/update DNS ip addresses on remote Windows servers, after introducing my new upgraded DNS servers. Same task …

Read more

VMWARE SECURITY BEST PRACTICES: POWERCLI ENABLE OR DISABLE ESXI SSH

July 25, 2017 09:14AM

Logging into SSH required in some of the common troubleshooting scenario or fetching information: ie  checking logs, telnet, ping, esxtop etc, Although subject title of this blog is mentioned Powercli, but I am showing all ways to enable SSH service on esxi including GUI as well, By default SSH serv…

Read more

POWERSHELL CREATE HASHTABLE FROM MICROSOFT EXCEL

July 1, 2017 08:09PM

After writing my last blog on using splatting from INI file, where it has format of Key and Value concatenated with equal = sign. It can be executed easily but sometimes writing INI file can be little messy if there is slight mistake, Still I find INI is best for writing parameter and syntax due to …

Read more

POWERSHELL ACTIVE DIRECTORY: ADD OR UPDATE (CHANGE) MANAGER NAME IN ORGANIZATION TAB OF USER

June 24, 2017 04:06PM

I am sharing few of the scripts I wrote long back to change/update Users information in Active directory,  It was required me while migrating Active directory to Office 365. One of the script was adding or change manager name in organization tab of User properties. (All user names used here are fict…

Read more

POWERSHELL: USE PARAMETERS AND CONFIGURATION FROM INI FILE, USE AS SPLATTING

June 22, 2017 09:14PM

I was working on one of my friends requirement for automating scripts, He wanted a safe way to use parameters and configuration values from external file instead of modifying actual script, I tried with CSV as well as cliXML file. but found INI file is simple format as external plain text file to pa…

Read more

HOW TO INSTALL WINDOWS NANO SERVER ON VMWARE WORKSTATION AND V2V CONVERTER

December 26, 2016 07:15PM

New Microsoft Windows Nano server 2016 provides and offers many new benefits over traditional windows server operating system. It is very cost effective to run nano server Amount of resources required to run nano server is very low. also due to its striped down GUI architect (no GUI layer at all) an…

Read more

MICROSOFT AZURE POWERSHELL DEPLOYING PAAS SQL DATABASE AS A SERVICE

December 7, 2016 11:15PM

Taking forward  from my previous article MICROSOFT AZURE CREATING AND DEPLOYING PAAS SQL SERVER, DATABASE AS A SERVICE, In this post I will performing same task using Microsoft Azure PowerShell to deploy SQL Server. Very first I will be creating Logical SQL server, As this server is completely tak…

Read more

MICROSOFT AZURE CREATING AND DEPLOYING PAAS SQL SERVER, DATABASE AS A SERVICE

December 5, 2016 11:34PM

Soon after deploying and establishing in-house to azure VPN tunnel PART 1 : MICROSOFT AZURE CREATION AND CONFIGURATION OF VPN TUNNEL SERIES, I got another task to architect complete project on Microsoft Azure, Very first requirement by application team was the Database server.

SQL Database is a…

Read more

GUI - SETUP AND CONFIGURE POWERSHELL WEB ACCESS SERVER (GATEWAY)

November 3, 2016 09:51AM

Microsoft PowerShell Web Access Server is a very cool method of accessing PowerShell over Internet from any supported browser. Microsoft had introduced this feature first in Windows server 2012 OS version. As in below diagram once Powershell web access feature service is installed on the server, and…

Read more

USE POWERSHELL ON MOBILE - SETUP AND CONFIGURE POWERSHELL WEB ACCESS (PSWA)

November 3, 2016 09:51AM

For this deployment I am using Windows Server 2012 R2, In earlier article I installed and configured Powershell Web access using GUI. This role can be install simply by running 3 simple powershell cmdlet. I will be running first command to install Windows Powershell web access feature, this feature …

Read more

PART 9: CREATING AND MANAGING VIRTUAL MACHINE (VM) USING MICROSOFT AZURE RESOURCE MANAGER PORTAL

October 26, 2016 10:34AM

Probably this will be the last part of the series. In this part I will be creating Virtual Machine on Azure and try to ping On-premises VM and vice-versa. Creating Azure VM is very easy. Select the Resource Group and in Add search for Microsoft Server 2012 R2 Datacenter (You can choose any OS of you…

Read more

PART 8: CREATING AND MANAGING STORAGE ACCOUNT USING MICROSOFT AZURE ARM AND AZURE POWERSHELL

October 20, 2016 05:28PM

My networking is fully established and configured now and no further changes are require now, I can see some data bytes flow between gateways. But I need to test in real action. I will be deploying one VM on the Azure and try to Ping it from on-Premise machine or vice versa. Before that I will compl…

Read more

PART 7.1: MICROSOFT AZURE POWERSHELL VPN CONNECTION IN VIRTUAL NETWORK GATEWAY

October 17, 2016 01:45PM

As these series also includes Microsoft Azure Powershell tutorial, I will delete existing connection and create new one using Powershell. As shown in earlier chapters I brought all the related networking pieces together for association and created VPN tunnle connection. I will store Virtual Network …

Read more

PART 7: MICROSOFT AZURE CREATE CONNECTION IN VIRTUAL NETWORK GATEWAY

October 16, 2016 07:14PM

PART 6.2: CONFIGURING ROUTING AND REMOTE ACCESS SERVER ROUTER (MICROSOFT RRAS AZURE VPN)

October 12, 2016 05:13PM

Configuring RRAS sever is yet to be complete. Following by last chapter, I require few information from Azure portal, which I need to provide in the newly created and configured RRAS server. Login to Microsoft azure portal, and grab the Public IP address from Resource Groups> Poc-VPN>POC-VPN-Virt…

Read more

PART 6.1: CONFIGURING ROUTING AND REMOTE ACCESS SERVER DEMAND-DIAL (MICROSOFT RRAS AZURE VPN)

October 11, 2016 10:50PM

This one is interesting step by step document to configure Remote Access VPN on Windows server. In earlier chapter I installed Remote Access role using Server manager, On the same server manager in the Tools menu, select Routing and Remote access. It will open MMC console for RRAS.Server manager configure remote access for microsoft azure vpn, RRAS

Once RRAS co…

Read more

PART 5.1: VIRTUAL NETWORK GATEWAY DEPLOYMENT USING MICROSOFT AZURE POWERSHELL

October 9, 2016 05:35PM

I found it little bit tricky while configuring virtual network gateway using Microsoft Azure Powershell, As while configuring it I had to associate VNG (Virtual Network Gateway) with already create virtual network and other Azure network services. I will try make it easy to understand.

First co…

Read more

20 Blog Posts