Looking for something?
Categories
-
Recent Posts
Recent Comments
- Artificial intelligence creates content for the site, no worse than a copywriter, you can also use it to write articles. 100% uniqueness :). Click Here: https://stanford.io/3XYPFqb?h=067dd914dfd9835a48e24112f286e42d& on Contact
- Artificial intelligence creates content for the site, no worse than a copywriter, you can also use it to write articles. 100% uniqueness :). Click Here: https://stanford.io/3XYPFqb?h=12495000882ef2c628f5afed50433b21& on Contact
- Artificial intelligence creates content for the site, no worse than a copywriter, you can also use it to write articles. 100% uniqueness :). Click Here: https://stanford.io/3XYPFqb?h=8a4490938a3c8251fc02187a46c8664f& on Contact
- Artificial intelligence creates content for the site, no worse than a copywriter, you can also use it to write articles. 100% uniqueness :). Click Here: https://stanford.io/3XYPFqb?h=067dd914dfd9835a48e24112f286e42d& on Contact
- Artificial intelligence creates content for the site, no worse than a copywriter, you can also use it to write articles. 100% uniqueness :). Click Here: https://stanford.io/3XYPFqb?h=12495000882ef2c628f5afed50433b21& on Contact
Category Archives: Scripting
Batch script to create and add local users to Administrators group
Basic batch file to create a local user and then add it to the local admin group net user “user1” “Pa$$w0rd” /addnet user “user2” “Pa$$w0rd” /addnet user “user3” “Pa$$w0rd” /add ...
Posted in Scripting
Leave a comment
Script to query a recursive DNS record
-I wrote this script around the following command:“nslookup -debug server1.devcorp.com”-The above command will display all the servers involved in resolving the DNS name in a recursive domain.-What the script does is cleans up the output ...
Posted in Scripting
Leave a comment
Getting a WWN from a Fiber Channel card
The below command can be used starting from server 2012 and up and it will list the WWN of a storage controller. Server 2012 or higher PortAddress is the WWN on this dual port FC adapterPS C:\Get-InitiatorPort Server 2008 or … Continue reading...
Posted in Scripting
Leave a comment
How to Export and Import Sites and Application pools in IIS
I recently had to move a lot of sites and app pools from server 2008 (IIS 7) to server 2016 (IIS 10) and found the below very useful. One issue i found when exporting all the sites is if the … Continue reading →...
Sending an e-mail with PowerShell
This is really useful if you want to test if a server is able to send out an e-mail through SMTP. Or just want to schedule a task to send out an e-mail once a month, Here are the details: … Continue reading →...
Posted in Microsoft, Scripting
Leave a comment
Using Scrub command to secure erase data in RedHat Linux
Sometimes you may need to secure wipe information in Linux like disk, partition a file, there are other built in tools to do it in Linux but the below tool looks like lie the below tool covers the most standards. … Continue reading →...
Posted in Scripting
Leave a comment
Batch script to capture the IP of a rotating DNS record
Here is a script I wrote to capture a rotating IP address of a DNS A record. This is usually pretty common with Akamai or Cloudflare DNS servers where an IP for a DNS record will change randomly for security, … Continue reading →...
Script to rebind an IIS site to a new IP and a new SSL cert – PowerShell
Here is a script that I used during a DR failover test. We would failover a web server to a DR side,rename it, re-ip it, rebind the SSL certs. During this process it would loose the binding as the old … Continue reading →...
Posted in Microsoft, Scripting
Tagged batch or powershell script to bind an IIS site, Binding an SSL Cert to a WEB site via script, How to add an existing SSL certificate to IIS web bindings in PowerShell Script, Updating multiple site bindings in IIS with new SSL-certificate, Use Powershell to bind SSL Certificates to an IIS Host Header Site
Leave a comment