Menu

Virtual Geek

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

Blog posts : "powershell"

Microsoft Powershell: Export remote registry information to excel

How to force a PowerShell DSC client to refresh configuration from pull server

While testing DSC (Desired State Configuration) Pull method on client, I had to forcefully refresh configuration from pull many times, as I could not wait for 30 Mins of frequency time to apply the changes. Below cmdlet helps to refresh configuration immediately. This command need to run as an Admin…

Read more

Part 3: Configure PowerShell DSC Local configuration manager LCM in pull mode and update configuration

This is last part of configuring individual clients local configuration manager (LCM) in DSC pull mode so they can get and retrieve configuration copy every certain refresh frequency mode. You can treat LCM as an agent and it is by default there in on every system. where at least Poweshell version 4…

Read more

Part 2: Generate target server node config for PowerShell DSC pull server

Part 1: Build your first Microsoft PowerShell DSC pull server

Here in this demo I am writing on how to build and configure basic Powershell DSC http pull server, this is just a simple http server no ssl certificate involved, In my earlier article DSC (DESIRED STATE CONFIGURATION) : DEPLOYING ACTIVE DIRECTORY, where I had explained what is desired state config…

Read more

Powershell PoshGUI: Convert user to SID and vice versa

Here I have wrote this small utility for one of my application developer friend, He required a small GUI utility to convert and show user account to SID and SID to account, viceversa, Although I can write WPF xaml gui form as well, but Here I am using simple winform and this is designed using online…

Read more

Powershell and WPF: Build GUI applications tutorial

Part 1: Create WPF XAML powershell GUI form with Visual studio
Part 2: Powershell and WPF: Build GUI applications tutorial

WPF stands for Windows Presentation Foundation, it is an alternative technology to Windows Forms but not a replacement. In this demo, I am showing how to design a basic Powe…

Read more

Create WPF XAML powershell GUI form with Visual studio

Part 1: Create WPF XAML powershell GUI form with Visual studio
Part 2: Powershell and WPF: Build GUI applications tutorial

Last month in pune, India, I got an opportunity to present a small offline webinar for around 10 to 15 users, I was preparing for this session and couldn't write much on my …

Read more

Get the List of installed softwares on remote computers with PowerShell

I used to use generally win32_product wmi class to fetch installed software list from remote computer systems. But the problem with it is, It only retrieves the installed applications via MSI, However, this WMI class might not list all the installed softwares that show in Add or Remove Programs, ap…

Read more

Microsoft Powershell: Delete registry key or values on remote computer

Microsoft Powershell: remotely write, edit, modify new registry key and data value

Oneliner Microsoft Powershell Script Get members list from active directory group in excel

This is my tiny article on gathering members information from active directory groups using windows PowerShell in very easy, I have used one-liner script earlier for creating bulk ad users, This script will get all the members from group and export it to CSV, This is very handy when providing someon…

Read more

Emulate HDD as SSD flash disk on Esxi and VMware workstation

I was required (emulated) virtual fake SSD in VMware workstation for few demos and testing purpose. I am already using SSD on my system, If vmdks are kept on the Solid state drives, VMs detects vmdk disks as SSD/Flash disk, but if you don't have SSD, it can be easily emulated with a trick configurat…

Read more

Copy Files with PowerShell Remoting WINRM Protocol

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

Generate random password GUI using powershell

I had one of the requirement to write Strong Random Password Generator :Microsoft Powershell earlier but it was completely command line based, and the applications users who were using it, due to non-technical background were not able to execute it correctly, So the team who requested the script wa…

Read more

Powershell Active Directory: Show treeview of nested Group members downstream hierarchy

This script is second part of my earlier article Powershell Active Directory: Show treeview of User or Group memberof hierarchy, earlier was showing upstream tree view of nested MemberOf groups. After writing the first script I got another requirement to show treeview in reverse order, Group member…

Read more

Strong Random Password Generator :Microsoft Powershell

This is my first article in the starting of year 2018, I have taken and re-written it from my earlier post. This script is written completely from scratch. This generates very strong random password. It randomize a chooses each password character using .net class object System.Security.Cryptograph…

Read more

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

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)

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

How to Install and Use Microsoft PowerShell on Linux

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

20 Blog Posts

Blog Search

Page Views

1077240

Follow me on Blogarama