Skip to content

Mohammed Wasay

Primary Menu
  • About
  • Blog
  • Contact
  • Get NordVPN
  • Home

Convert a Dynamic IP to Static

Working on a project where on some servers the DHCP assigned addresses needs to be converted to static. Since there is always more than one…I needed to script it.

Here is a quick way to do it via PowerShell.

Hope this helps!

Posted in PowerShellTagged adapter, Address, convert, default, DHCP, DNS, enable, gateway, how, ip, mask, order, powershell, search, server, Static, subnet, switch, to

Related Post

Adding an Application Registration\ Service Principal to another Application Registration\ Service Principal

Posted on November 8, 2022November 8, 2022 by mo wasay
Typically when working with App Roles in Azure Active Directory for a single application registration or service principal and then self consuming that app role as an Application API Permission you would see in the Enterprise Application > Users and Groups blade that service principals are added. Every now and...

Get all the domains controllers in the AD forest along with their current FSMO roles

Posted on June 11, 2021September 17, 2022 by mo wasay
In a large enterprise an admin would need to keep track of all the domains in a AD forest, the domain names, the domain controllers (DC) , their IPs, and what FSMO roles does a DC hold. Wrote a little script to just do that...

Get Inactive Users Report for the past 60 days in a multi domain environment

Posted on February 18, 2020September 18, 2022 by mo wasay
I had a request recently to provide an inactive user report for the past 60 days. Basically, find out which accounts have not logged in for the past 60 days so action can be taken against them. The request was for a multi domain forest which queries every domain controller...

Get Primary, Secondary, Tertiary DNS values and more from Multiple Servers

Posted on February 13, 2020September 18, 2022 by mo wasay
Came across a unique request to get primary, secondary, and tertiary DNS values for multiple computers/servers across the domain. I started writing the script and got what I wanted. Now this started off as just to query for DNS Server information, but then I thought to add other pieces to...

Post navigation

Previous post:Force Replication of all Domain Controllers on all Sites
Next post:Point a Window Client or Server to a particular Domain Controller
Copyright all rights reserved | Theme: Minimal Blog by WPinterface.