Tips & Tricks

Get RDS-CAL License Details (2008 RDS License Server)

Get current RDS-CAL details via PowerShell. Run this from your 2008 RDS Licensing server. # Filename of the export $filename = RDS-CAL-Report.csv # Import RDS PowerShell Module import-module remotedesktopservices # Open RDS Location Set-Location -path rds: # Remove previous reports (Optional) remove-item RDS:LicenseServerIssuedLicensesPerUserLicenseReports* -Recurse # Create new RDS report $NewReport = new-item -path RDS:LicenseServerIssuedLicensesPerUserLicenseReports -Scope…

Read More

Allscripts Vision User Reporting

A quick Powershell script I hacked together that will enumerate all Active Directory users, and build an XML file for an application I wrote that generates user reports for a specific application. The output file format is similar to: <quickreports> <report name=Organizational Unit> <database name=v001/> <usrlogin name=jdoe01/> </report> <quickreports> $ErrorActionPreference= ‘silentlycontinue’ $arr=@{} foreach ($usr in…

Read More

Disable Windows 10 First Sign-in Animation

Run the Local Group Policy Editor (Start > type gpedit.msc) Navigate to Computer Configuration > Administrative Templates > System Select Logon Double-click Show first sign-in animation In the Show first sign-in animation window, select Disabled and click OK Close the Local Group Policy Editor

Read More

Powershell logparse regexp to csv

Input line: Thu 2017-03-30 00:00:07: user@domain.com (John Doe) checked mail from 127.0.0.1 using IMAP, 0 msgs collected, 21 remaining Powershell script: $rxp = “([a-z0-9!#$%&’*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&’*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)|(d{1,3}.d{1,3}.d{1,3}.d{1,3})|(POP|IMAP)|(^[A-Z][a-z]+sd{4}-d{2}-d{2}sd{2}:d{2}:d{2})” gc “.*.log” | select-string -pattern $rxp -allmatches | foreach { if ($_.Matches.count -ne 4) { return } [pscustomobject]@{ ‘date’=$_.Matches[0] ’email’=$_.Matches[1] ‘ipaddr’=$_.Matches[2] ‘proto’=$_.Matches[3] } } | export-csv -notype analysis.csv

Read More

Change OpManager v11 PDF Report Footer

When generating reports in OpManager v11 and exporting as PDF, the footer contains ManageEngine OpManager Page : as the footer. To change this, on your OpManager install, navigate to the installation path of OpManager and modify confrandProps.properties file.  Add the following line, and customize accordingly. pdfFooterText=Your Company or Whatever | email@yourdomain.com |  Page: You do not need…

Read More

Windows 10 File Explorer – Working on it…

When browsing my Downloads folder, or any folder in general, on Windows 10 I have experienced the Working on it… message and it takes a few seconds to load.  This doesn’t matter if I have a lot of files/folders or just a few, it still hangs. Resolution Open Folder Options > Set Open File Explorer…

Read More

Remove Windows Defender from Server 2016

I have my own security software I use on Windows Server operating systems and take out Windows Defender.  Normally, I can do this through Feature removal, but the option to remove Windows Defender was unable to be removed from the manager. To remove, I used Powershell. Remove-WindowsFeature Windows-Defender, Windows-Defender-GUI

Read More

Windows Command Line Ping Sweep

A brutally basic ping sweep from Windows command to look for hosts on a subnet. for /L %x in (1,1,254) do @ping -n 1 -w 25 192.168.0.%x | find bytes= This will return hosts that respond to ping on your LAN, for example. This is useful in a pinch. For hosts that don’t respond to…

Read More

How to Disable Cortana in Windows 10

Sorry, Cortana — not everyone likes you. =) Launch the group policy editor by pressing Windows + R, typing gpedit.msc into the box, and pressing Enter. Navigate to Computer Configuration > Administrative Templates > Windows Components > Search Locate the Allow Cortana setting in the right pane and double-click it. Choose Disable and click OK Reboot…

Read More