Category: WINDOWS

Powershell tips n’ tricks Pt2 – HTML

Powershell tips n’ tricks Pt1

For some time I’ve been coding in Powershell. This post is intendent as my little cheat sheet. Multiline Code When writing Powershell code this string ` could be your friend when nicely formatting the code Get-EventLog – Parsing messages We have some event logging on servers Event Log. Sometimes I have to go through them …


Powershell – SCCM Software Center server update

In our organization, we have SCCM for manual update deployment. I have a lot of servers I need to patch, on some regular basis. Most of my servers reside on VmWare infrastructure, and before every update I need to create a snapshot of each and every one.With the help of Powershell scripts and VmWare PowerCli …


Powershell – Windows firewall rules with ports

Every couple of months, I need to check Windows firewall on some secure/crucial Windows servers. I needed a automatic report that I can go through quickly. I used powershell, which goes through firewall rules, and in the end it creates an simple HTML report. Parts of code were used from Spiceworks Community In the end, …


Powershell and Lotus Notes pt3

Powershell and Lotus Notes pt2

Powershell and Lotus Notes

DNS management Windows 10 1709

Recentley I discovered that DNS management is not installed when installing RSAT (WindowsTH-RSAT_WS_1709-x64) to Windows 10 1709 (Fall Creators Update). After trying to install RSAT for Windows Server 2016, it was still missing. So I turned to Technet and I found a  article  (here). The thing is that you have to download the following files …


WinRM problems

Couple of days ago, I installed new version of Project Honolulu. I added few serves, but one of them reported error connecting. Error reported WinRM connection failed. So I tested it with PowerShell Test-WSMan –ComputerName SERVER01.corp.loc And yes, there was an error:Test-WSMan : <f:WSManFault xmlns:f=”http://schemas.microsoft.com/wbem/wsman/1/wsmanfault” Code=”2150858770″ Machine=”SOURCEPC.corp.loc”><f:Message>The client cannot connect to the destination specified in …


Active Directory Logon Script

Hi, for some time now we used batch script to log user logon to theirs domain computers. What we collected via this script was something like this: Mon 02.01.2017., 7:55:06,64,user1,AD-PC1,Windows 7 or Server 2008R2,32 Bit Mon 02.01.2017., 7:55:42,90,user2,AD-PC2,Windows 7 or Server 2008R2,64 Bit Mon 02.01.2017., 7:55:46,51,user3,AD-PC3,Windows 7 or Server 2008R2,32 Bit Mon 02.01.2017., 7:55:50,94,user4,AD-PC4,Windows 7 …