Menu

Virtual Geek

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

Stuffs from real IT system ADMINISTRATORS world and my LAB

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 file to PowerShell ScriptBlock using .net object. In the screen shot right side is my text file with …

Read more

Powershell: Temporary group membership on Windows 2016 Active Directory

October 17, 2017 12:15PM

This is second part of configuring and architecting AD infrastructure new features. Microsoft has introduced new great feature with Windows Server 2016 Active directory, PAM (Privileged Access Management) Feature, Where user can be added to a group for a particular time. Once that Time to live (TTL) is expired account is automatically removed from group. This is the true automated way, and doesn…

Read more

Microsoft Active directory additional features - AD Recycle Bin Powershell

October 11, 2017 01:00PM

I recently was involved and architected IT infrastructure for one of the small startup group, I deployed Windows Server 2016 server and architected Active Directory infrastructure, Startup staff's work was involved using heavy use of AD API in their own software, creation and deletion of AD accounts, I wanted all the recent new features on AD, specially recycle bin feature, Although it is introduc…

Read more

Vembu Free Edition

October 8, 2017 10:46PM

Vembu is a leading software product development that has been focusing on Backup and Disaster Recovery software for data centers over a decade. It’s flagship offering- the BDR Suite of products consists of VM Backup for VMware vSphere and Hyper-V, Disk Image backups for Physical machines, Workstations. Backing up individual files and folders to physical servers and cloud can be performed with Ve…

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_Machine\System\CurrentControlSet\Services\USBSTOR\Start. If value data is set to 4, USB storage dev…

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, whatever output generated as ascii art, should not be captured to file or by coping it. Someone might argue…

Read more

VMWare Web Client: Datastore browse files upload copy failed error

September 27, 2017 09:21AM

While uploading files on vcenter esxi datastores using vSphere web client I met with below failed error. And went with the VMware KB article provided in the error box.

vmware vsphere the operation filed for an undetermined reason. certificates, datastore file copy upload errorThe operation failed for an undetermined reason. Typically this problem occurs due to certificates that the browser does not trust. If you are using self-signed or custom certificates, open the URL below in a new browser tab and…

Read more

Microsoft PowerShell: Check Windows license activation status

September 23, 2017 02:11PM

This is my version of fetching Microsoft windows license status, for stream lining environment and make compliant as per audit standards, This is old wine in new bottle. I have improvised it to get more information and made it dynamic to get information remotely using CIM(winrm) as well as or WMI(dcom) protocol, it will collect OS and Microsoft softwares ie: Office license activation status. Here …

Read more

Powershell Active Directory: Show treeview of User or Group memberof hierarchy

September 20, 2017 09:32AM

After going through many testing and successfully streamlining most of the Users and Groups member of in active directory environment using Powershell Active Directory: List complete hierarchy of upstream nested groups recursively of User. I was still facing some of the issues, Earlier script was not smart enough to detect the loop and will keep running if same group is in members and memberof, th…

Read more

Powershell Active Directory: List complete hierarchy of upstream nested groups recursively of User

September 15, 2017 05:27PM

Recently I had seen big mess in one of my client's Active directory environment, AD Groups where keep nested into groups and further, Due to this clients where having hard time to get either exact effective permissions of particular users, and causing users have unnecessary authorization or getting unnecessary emails due to member of upstream groups, which he should not. Just to show demo here I h…

Read more

View older posts »