Tag: Powershell

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

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 …


WSUS–PowerShell Reporting

Hi, So, since it took me a while to understand that you cannot get scheduled reports from WSUS 3.0, I had a quest to create my own. I searched through SQL database, and WSUS public Views and procedures, but it was time expensive. Then I stumbled upon PoshWSUS scripts (here). Boeprox created PowerShell scripts, which …