-
PowerShell Module for Time Synchronization – Get current time in UTC from internet
This PowerShell Workflow is part of PowerShell module for Time Synchronization on Windows and Windows Server. To get all features you need all PowerShell Workflows from the Time Sync module. There is no reason to make this script PowerShell Workflow but I decided to write it as Workflow because it is part of other Workflows…
-
PowerShell Module for Time Synchronization – PowerShell Workflows to get status, start, invoke, test, monitor and repair Time Sync
I decided to write PowerShell module to deal with Time Synchronization. I wrote following PowerShell Workflows: Get-VDateTimeInternetUtc Very simple Workflow to get current date and time in UTC (Coordinated Universal Time) from the internet. The date and time is obtained from public website over HTTP (TCP 80) so it is possible to use this workflow…
-
PowerShell advanced function (cmdlet) to get Windows Firewall rules according specified protocols and ports
I wrote a very simple helper function (you can use it as cmdlet in own module) to simplify work with Get-NetFirewallRule cmdlet. Examples Get FW rules from remote server based on multiple protocols and ports Get-RvNetFirewallRule -Protocol TCP, UDP -LocalPort @(135..138) -CimSession MyRemoteServer | Format-Table Get disabled rule from the local server based on specified protocol…
-
PowerShell Workflow to enable or disable IP protocols (IPv4 or IPv6) on network adapters of remote servers
I wrote a very simple PowerShell workflow to solve an issue on one particular environment. The problem was that system administrators thought that it is a good idea to disable IPv6 protocol on all NICs on all servers. Disabling IPv6 protocol is a very bad practice. This will not disable IPv6. Microsoft does not tests…
-
PowerShell advanced function (cmdlet) to import CSV, convert values into correct types and split all serialized arrays and collections
There are situations where you need to import data from CSV but some properties (columns in CSV) should be in different type (bool, DateTime, int) and some properties are arrays and lists (collections) with another delimiter than delimiter that was used for CSV. The problem is that CSV is a flat file. Information are not hierarchical…