Menu

Virtual Geek

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

Blog posts : "Powershell"

Installing, importing and using any module in powershell

August 26, 2017 12:25PM

With PowerShell you can achieve great way to automation using additional modules. Modules are additional functionalities or extensions to Powershell. You can also treat them as client softwares, with them you can connect to particular softwares, You will see limitation if you want additional command…

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: 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

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: 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

POWERSHELL FUN SEND KEYS ON THE SCREEN

December 29, 2016 08:34PM

Today I received weird request from one of my developer friend, He created some application but whenever screen was getting locked due to screen saver lock Group Policy after designated time, Application was not working as expected, Until he resolve the bugs in his application he was seeking help if…

Read more

COOL POWERSHELL FREE ONLINE GUI GENERATOR TOOL, POSHGUI

November 25, 2016 11:30PM

Today while surfing on the internet I came across very cool website for Microsoft Powershell, it is free powershell GUI designer tool online. Powershell lovers who like to create graphical interface will definitely like this website, if they want to create a GUI structure and put there code for auto…

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

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

POWERSHELL PS REMOTING BETWEEN STANDALONE WORKGROUP COMPUTERS

June 18, 2016 05:54PM

Today I was building some script for PowerShell DSC (Desired State Configuration), Scenario was to run PowerShell DSC script and push configuration against standalone computers which are in workgroup, they were not joined in the Domain or sitting in the DMZ and not required to join to domain due to…

Read more

10 Blog Posts