Data Networking Blog
Blog for Admins
Category Archives: Windows

A while back I had to write a script to download a bunch of files periodically on a Windows machine. I tried using some native built-in method of doing it but could’t find much useful information. Finally used WinSCP and PowerShell to download files. This uses SFTP and SCP which is basically over SSH. I […]

Standard
October 13, 2016 PowerShell, Script, Windows
Jd

So my company was hit with crypto virus twice in the last two and a half weeks. Luckily we got everything under control in time and thankfully did not have to pay a single cent. But as a pro-active measure I wrote a small crypto virus scanner script that scans our file server for files […]

Standard
October 7, 2016 PowerShell, Script, Windows
Jd

The following script scans IPV4 networks for hosts that respond to ICMP requests. The idea is that the script automatically finds the IP and MASK of the configured interfaces on the machine, calculates the range from IP/Mask and starts scanning. Also displays a visual progress bar. This PowerShell Lan Scanner script will also try and […]

Standard
September 27, 2016 PowerShell, Script, Systems, Windows
Jd

.Net and Powershell are now available for Linux as open source packages. This is a good move as i think this will make a lot of people really comfortable with using Linux. Before we can install Powershell core we need the .Net core installed as Powershell is built on top of .Net sudo yum install […]

Standard
August 19, 2016 Linux, PowerShell, Script, Windows
Jd

Script below will move files from source to destination that match the given extension or all files if no extension is provided. The files older then 30 days are moved by default. you can specify the number of days using the -olderthandays parameter. [CmdletBinding()] param ( [Parameter(Mandatory=$true)][string]$source, [Parameter(Mandatory=$true)][string]$destination, [string[]]$exten=”.*”, [int]$olderthandays = 30 ) $lwt = […]

Standard
August 3, 2016 PowerShell, Script, Uncategorised, Windows
Jd

First, connect to your office 365 environment Connect-MsolService -Credential (Get-Credential) Every Office365 environment has a password policy which contains the notification period and validity period for passwords. Since we want to check when a users password will expire, we will first get this validity period and save it in a variable. In the same Powershell […]

Standard
August 3, 2016 PowerShell, Script, Windows
Jd

Powershell script to delete old files/folders The script below will delete any files/folders older than the provided number of days. It first creates an inverted tree of folder/file structure and then loops through each to see if the last write time is older than a given number of days. You can also clean empty folders […]

Standard
August 20, 2015 Script, Windows
Jd

I recently had a problem where scanning a IIS web server using Titania SSLScan tool for SSL/TLS ciphers I received empty results. The webserver otherwise was working fine and if I tried a web browser I could see a cipher in the SSL certificate. After spending alot of time I finally found a solution. Running […]

Standard
August 20, 2015 Security, Systems, Windows
Jd

While deploying a new web server in our web farm I noticed that the web server I created was giving me some headaches with SSL. It would sometimes present invalid certificates and if I tried telnet commands the connection on port 443 closed quickly. This indicated a problem but I did not hear of any […]

Standard
August 20, 2015 Security, Systems, Windows
Jd

I had to create a couple of new Servers today but the instructions were to make them identical to an existing server which sits in a different Data Centre. So I started off by using the Server Manager GUI and noting down the roles features but I realized there were about 71 of them and […]

Standard
August 6, 2015 Script, Systems, Windows
Jd
Font Size
Decrease Size Default Size Increase Size
Select Skin
Select Underlay Background
Select Overlay Background
Scheme Switcher Toggle