Menu

Virtual Geek

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

Blog posts : "Powershell"

Copy Files with PowerShell Remoting WINRM Protocol

January 11, 2018 12:21PM

Microsoft Powershell psremoting is just not limited to remoting into computers, it can also use to copy files over winrm protocol to remote system the same way, you use files are copied on traditional SMB protocol. This requires some psremoting configuration using POWERSHELL PS REMOTING BETWEEN CO…

Read more

Powershell execution policy setting is overridden by a policy defined at a more specific scope

December 31, 2017 01:38AM

While setting up execution policy (Set-ExecutionPolicy) on powershell, there might be a below error.

Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope.  Due to the override, your shell wi…

Read more

Microsoft Powershell generate random anything (Filename, TempPath, GUID, Password)

December 18, 2017 01:03AM

When I write PowerShell scripts, many times I require random file name, folder path, numbers and strings keys, few .net and native PowerShell v5 cmdlets helps me to generate random required information easily, it saves time and don't have to generate random names or number or even password manually…

Read more

Microsoft Powershell: Windows 2016 Install and configure NFS server

December 16, 2017 04:51PM

How to Install and Use Microsoft PowerShell on Linux

November 30, 2017 01:50PM

As Microsoft has made Powershell open source and can be installed and used on different operating system family (Linux and MacOS), Basically Microsoft is working towards new Powershell Core make it available everywhere now and it is cross platform. As I don't have much knowledge on bash scripting, I…

Read more

Powershell Trick : Execute or run any file as a script file

October 18, 2017 02:22PM

This blog post is addition to my earlier article Different ways to bypass Powershell execution policy :.ps1 cannot be loaded because running scripts is disabled. Just to recap If you have execution policy blocked in your environment and want to execute riles in PowerShell, you can compile the the f…

Read more

Powershell: Get registry value data

October 7, 2017 05:05PM

Finding and fetching registry value data information using PowerShell is very easy, I found in one of the organization administrators where doing unnecessary changes to the registry to specific settings, for one of the example ie: I had to get information from one of the setting under HKey_Local_M…

Read more

Powershell Trick: Convert text to ASCII art

October 4, 2017 01:40PM

Powershell text convert to Ascii art demo abcdefghijklmnopqrstuvwxyz0123456789 without online algorithm

As PowerShell has plain command based console if you want to show different font or different bigger font on the same console as output, you will have to use ASCII Text art, I had got a request to write a script to convert any text to ASCII art. Only weirdness in the request I found was, whateve…

Read more

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

18 Blog Posts