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
$psISE.PowerShellTabs.SelectedPowerShellTab.AddOnsMenu.Submenus.Add('Copy Console Content to New File',{ | |
$file = $psISE.PowerShellTabs.SelectedPowerShellTab.Files.Add() | |
$file.Editor.InsertText($psISE.PowerShellTabs.SelectedPowerShellTab.ConsolePane.Text) | |
}, 'Ctrl+Alt+C') |
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
public class Device | |
{ | |
[Display(Name = "Geräte Id")] | |
public int DeviceId { get; set; } | |
[Display(Name = "Geräte Name")] | |
public string DeviceName { get; set; } | |
} |
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
<StackPanel DataContext="{Binding MyDevice}"> | |
<TextBox mah:TextBoxHelper.AutoWatermark="True" Text="{Binding DeviceId}"></TextBox> | |
</StackPanel> |
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
# http://stackoverflow.com/a/2146418 | |
add-type -typedefinition @" | |
using System.Security.Principal; | |
using System; | |
using System.Runtime.InteropServices; | |
public class LookupAccountName | |
{ | |
public const uint SE_GROUP_LOGON_ID = 0xC0000000; // from winnt.h | |
public const int TokenGroups = 2; // from TOKEN_INFORMATION_CLASS |
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
# Since Windows 10 1703 clients got issues while connecting to a WSUS Server | |
# with 3rd party update, I decided to remove the updates so the categories will disappear | |
# In our case there were updates which were injected by secunia csi. | |
$updateServer = 'wsus-02' | |
[Boolean]$useSecureConnection = $False | |
[Int32]$portNumber = 8530 | |
$null = [reflection.assembly]::LoadWithPartialName('Microsoft.UpdateServices.Administration') | |
$Wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($updateServer,$useSecureConnection,$portNumber) |
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
Register-EditorCommand -Name 'Demo' -DisplayName 'Launch Command Test' -ScriptBlock { | |
write-host "Hello World " | |
} | |
$view = New-VSCodeHtmlContentView -Title "Link Test$(Get-Random)" -ShowInColumn Two | |
$content = @" | |
<a href="#" id="link">Run demo command</a><br/> | |
<a href="#" id="link2">Show Console without encodeURI()</a> | |
<script> |
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
Verbose : Writing Request 'evaluate' with id 14 | |
Diagnostic : WRITE MESSAGE: | |
{ | |
"jsonrpc": "2.0", | |
"id": "14", | |
"method": "evaluate", | |
"params": { | |
"expression": "dir", | |
"context": "repl", |
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
Verbose : Writing Request 'evaluate' with id 2 | |
Diagnostic : WRITE MESSAGE: | |
{ | |
"jsonrpc": "2.0", | |
"id": "2", | |
"method": "evaluate", | |
"params": { | |
"expression": "get-item", | |
"context": "repl", |
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
public static class FontAwesomeIcons | |
{ | |
public static string _500px = "fa-500px"; | |
public static string AccessibleIcon = "fa-accessible-icon"; | |
public static string Accusoft = "fa-accusoft"; | |
public static string AcquisitionsIncorporated = "fa-acquisitions-incorporated"; | |
public static string Ad = "fa-ad"; | |
public static string AddressBook = "fa-address-book"; | |
public static string AddressCard = "fa-address-card"; | |
public static string Adjust = "fa-adjust"; |
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
<?xml version="1.0" | |
encoding="utf-16"?> | |
<Discovery ID="SQL.VMs.Standalone.Group.DiscoveryRule" | |
Enabled="true" | |
Target="SQL.VMs.Standalone.Group" | |
ConfirmDelivery="false" | |
Remotable="true" | |
Priority="Normal"> | |
<Category>Discovery</Category> | |
<DiscoveryTypes> |
OlderNewer