Melbourne, Australia
To be provided
Use Contact to message

Category: Scripting

Harmik Batth Tech's Blog

Preparing for Azure AD Connect – Fix Active Directory objects with idFix

Preparing for Azure AD Connect – Fix Active Directory objects with idFix I have been working on various projects, where by getting so much to learn. Currently the project I am working on is Azure AD integration. Due to the limitation of what can be synced to AD in cloud, only way synchronization is allowed. …

Powershell – Set IPAddress

Yes, setting an IP Address is easy. Just go to Ethernet or LAN Adapter properties, select IPV4 Properties and change the IP Address to required. However all this will take around a minute to do so. Imagine if you have to do it multiple servers, it will take more time. But if you do it …

Secure Password using Powershell

Do you need to use passwords in your script. Yes, most of System Administrators needs to use it in order to fully auotmate script. Specially when you are working with multiple domains with no trust, workgroups and DMZ zones. I have seen lot of people just put their passwords in plan text in the scripts. …

Read Log File and Mount PS Drive based on shares in log file

This Script will Read the provided log file and Mount PS Drive based on the shares provided. Make sure that Log File and Script is in same location, or alternatively change the log file location to desired location This script is basically developed in response to  – https://gallery.technet.microsoft.com/scriptcenter/site/requests/Need-a-script-to-map-network-drives-listed-in-a-log-by-most-recent-date-7b6c0dd9 Log file looks like: Script as per below …

Get AD Users and Export to CSV

Powershell is not only making doing system administration tasks easy but also very effective and saves lot of time. Instead of connecting to AD, searching for particular user and copying pasting contents. You can just use one line powershell script to do this for you. Get-ADUser -Filter ‘*’ |  select SamAccountName, Department, Location | Export-Csv …