Melbourne, Australia
To be provided
Use Contact to message

Tag: Powershell

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 …

Disable IPV6 using Powershell

Although you should be using the IPV6 for future, but System Administrator from time to time, may be required to disable IPV6 for various reasons. Again, this can be done via GUI. But will require few GUI based steps and repeating the same task on 1000’s of machine will require dedicated person performing a task, …

Change DNS Server for Network Interface Powershell

As a System Administrators, you will be asked or required to use specific DNS for specific computers. This can be very easily done via GUI, but require few steps to perform it. Also you may need to do this on number of computers. For me, I normally perform actions via powershell if I have to …

Rename Computer name via Powershell

As a System Administrators, you want to do things fast and on more computers at once. I remember renaming a computer involved few GUI steps, which is not shortened to one line command via Powershell. To do so, Rename-Computer -NewName “Batthz-SQL01” You can either apply “- Restart” switch to automatically restart or manually restart the …

Join Computer to Domain via Powershell

Join Computer to Domain Joining a computer to domain via PowerShell is whole lot easier than regular way of GUI based. To Join a Computer to domain, Add-Computer -DomainName “HarmikBatth.Lab” Enter the user credentials, which has permission to join the computer to a domain. You can also mention the “-Restart”, which will automatically restart the …

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 …

Windows OS and Hardware Information using Powershell

Getting information about Windows OS and it’s hardware is crucial for System Administrator’s today. But main question is how to collect it. Lot of companies have software like SCCM, SCOM and other tools to obtain this information. When it comes to grabbing information from various servers and analyzing it at same time, nothing beats PowerShell. …