WSUS Delayed Approvals

Modified this old script a bit, to get prettier reporting with send-to-email, as well as classification filter and auto-accept license agreement for approvals.

Continue reading

Advertisements

VMWare PowerCLI – inventory report

This simple one-liner will give you main hardware and infrastructure information about vCenter vms.

Fields included:
Name – VM Name
PowerState – Powered On / Off
OS – OS Set on the VM profile
HWVersion – VM Hardware version
IPAddresses – all ip addresses (reported by VM Tools)
AdapterTypes – all network adapter types
DnsName – DNS Name from OS (reported by VM Tools)
ToolsVersion – VM Tools
ToolsStatus – VM Tools status

get-vm | select name, Powerstate,@{N="OS"; E={$_.Guest.OSFullName}},@{N="HWVersion"; E={$_.Version}},@{N="IPAddresses"; E={$_.Guest.IPAddress}},@{N="AdapterTypes"; Expression={(Get-NetworkAdapter $_).type}},@{N="DnsName"; E={$_.ExtensionData.Guest.Hostname}},@{N="ToolsVersion"; E={$_.Guest.ToolsVersion}},@{N="ToolsStatus"; E={$_.ExtensionData.Guest.ToolsVersionStatus}} | FT name, Powerstate, OS, HWVersion, IPAddresses, AdapterTypes, DnsName, ToolsVersion, ToolsStatus
get-vm | select name, Powerstate,@{N="OS"; E={$_.Guest.OSFullName}},@{N="HWVersion"; E={$_.Version}},@{N="IPAddresses"; E={$_.Guest.IPAddress}},@{N="AdapterTypes"; Expression={(Get-NetworkAdapter $_).type}},@{N="DnsName"; E={$_.ExtensionData.Guest.Hostname}},@{N="ToolsVersion"; E={$_.Guest.ToolsVersion}},@{N="ToolsStatus"; E={$_.ExtensionData.Guest.ToolsVersionStatus}} | Export-Csv -Path E:\tmp\vcenter.hosts.csv -NoTypeInformation -UseCulture

Zimbra + Z-Push Part 3 : user restriction

Recently, i was evaluating open source ActiveSync solutions, and came up with this installation and configuration guide.

Zimbra + Z-Push Part 1 : installation

Zimbra + Z-Push Part 2: configuration

Problem description

I was unable to find any solutions for Z-Push and Zimbra to restrict users form accessing the mailboxes.

Once the server is exposed to the internet, every user on the Zimbra server is exposed to brute force attacks.

This is happening because Z-Push backend uses Zimbra soap connection, which is accessible to every Zimbra server account, and can’t be disabled per account.

To circumvent this scenario, I used main function GetUserDevicePermission () from this old post, modified it to handle subnet restriction, and instead of adding check to every request type, added check to the ZimbraBackend Logon() function.

I will describe changes I made in this article.

Continue reading

Zimbra + Z-Push Part 2: configuration

Recently, i was evaluating open source ActiveSync solutions, and came up with this installation and configuration guide.

Zimbra + Z-Push Part 1 : installation
Zimbra + Z-Push Part 3 : user restriction

Zimbra side

Modify the default zimbra nginx template

http(s)://%mailserver%/Microsoft-Server-ActiveSync

Zimbra out of the box has the ability to forward requests to this URL to Exchange / ActiveSync Server, so we just need to configure the upstream proxy to forward requests to z-push server.

Continue reading

Zimbra + Z-Push Part 1 : installation

Recently, i was evaluating open source ActiveSync solutions, and came up with this installation and configuration guide.

Zimbra + Z-Push Part 2 : configuration
Zimbra + Z-Push Part 3 : user restriction

Software and versions:

Ubuntu Server 16.04

Z-Push 2.3.8

Zimbra Backend 6.7

CentOS 6

Zimbra Collaboration Open Source 8.7.11_GA_1854

Initial product and prerequisites installation

Continue reading

Highlight row if current user exists in a people or group column in a list view (as user or SPgroup member)

Recently, i had an interesting request.

I needed to change formatting of an element in a list, if current user is selected in one of the list columns.

List column type is “people or group column”, multi-value.

After a bit of investigation on the matter, i ended up with the below script.

Continue reading