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 …
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, …
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 …
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 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 …
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. …
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 …
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. …
Recent Comments