This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Downloads the latest sebaxakerhtc/rdpwrap installers from GitHub. | |
.DESCRIPTION | |
Downloads the latest sebaxakerhtc/rdpwrap installers from GitHub | |
and copies them into the "C:\Program Files\RDP Wrapper" folder | |
and executes the installer. | |
If Windows Defender is enabled, "C:\Program Files\RDP Wrapper" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[init] | |
defaultBranch = main | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
[push] | |
default = simple | |
[core] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-SqlServerKeys { | |
<# | |
.SYNOPSIS | |
Gets SQL Server Product Keys from local and remote SQL Servers. Works with SQL Server 2005-2019 | |
.DESCRIPTION | |
Using a string of servers, a text file, or Central Management Server to provide a list of servers, this script will go to each server and get the product key for all installed instances. Clustered instances are supported as well. Requires regular user access to the SQL instances, SMO installed locally, Remote Registry enabled and acessible by the account running the script. | |
Uses key decoder by Jakob Bindslet (http://goo.gl/1jiwcB) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.Caching; | |
using Bootstrapper; | |
public class Home : NancyModule | |
{ | |
public Home() | |
{ | |
Get["/"] = parameters => { | |
return "Hi"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Data.SqlClient; | |
namespace Utilities | |
{ | |
public static class SqlUtil | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var count = SqlUtil.ExecuteScalar<int>("SELECT COUNT(SSRSReports) FROM SSRSReports"); | |
Console.WriteLine("count = " + count); | |
var reports = SqlUtil.ExecuteQueryReader<SSRSItem>("SELECT * FROM SSRSReports WHERE IsSubReport <> 'N'", c => SSRSItem.LoadFromRecord(c)); | |
foreach (var report in reports) | |
{ | |
Console.WriteLine(report); | |
} |