This file contains hidden or 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 Namespace System.ComponentModel | |
| Class ViewModel : INotifyPropertyChanged { | |
| Hidden [PropertyChangedEventHandler] $PropertyChanged | |
| [String] $ServerInstance | |
| [String] $targetAccount | |
| [Boolean] $isEverythingDone | |
| [String] $Status | |
| [Void] add_PropertyChanged([PropertyChangedEventHandler] $propertyChanged) { |
This file contains hidden or 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
| #-------------------------------------------------------------# | |
| #----Initial Declarations-------------------------------------# | |
| #-------------------------------------------------------------# | |
| Add-Type -AssemblyName PresentationCore, PresentationFramework | |
| $Xaml = @" | |
| <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Width="800" Height="300" Name="khsdijy0ho5al"> | |
| <Grid> | |
| <Grid.RowDefinitions> |
This file contains hidden or 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
| <% @ Page Language = "C#" %> | |
| <script runat = "server" > | |
| protected void dumpObject (object o, Table outputTable) { | |
| try { | |
| Type refl_WindowsIdenty = typeof (System.Security.Principal.WindowsIdentity); | |
| System.Reflection.MemberInfo[] refl_WindowsIdenty_members = o.GetType ().FindMembers ( | |
| System.Reflection.MemberTypes.Property, |
This file contains hidden or 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
| <# This form was created using POSHGUI.com a free online gui designer for PowerShell | |
| .NAME | |
| VMWare VM Create | |
| .SYNOPSIS | |
| Create VMWare VM's quickly and easily with this great GUI | |
| .DESCRIPTION | |
| Create VMWare VM's quickly and easily with this great GUI | |
| #> | |
| Add-Type -AssemblyName System.Windows.Forms |
This file contains hidden or 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
| // Copyright John Leitch 2010 john.leitch5@gmail.com | |
| var destination = null; | |
| var useClone = false; | |
| var cloneSource = null; | |
| var cloneDelay = 1000; | |
| function hookInputs() { | |
| var frame = document.getElementById('overlayFrame'); | |
| var keyPressScript = |
This file contains hidden or 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
| reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall $env:temp\apps_64bit.txt | |
| reg export HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall $env:temp\apps_32bit.txt | |
| reg export HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall $env:temp\apps_userapps.txt | |
| ipconfig /all > $env:temp\apps_ipconfig.txt | |
| start $env:temp | |
| <# | |
| // Command prompt version | |
| reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall %temp%\apps_64bit.txt |
This file contains hidden or 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
| $sourceSite = 'https://mydomain.sharepoint.com/sites/mysourcesite' | |
| $targetSite = 'https://mydomain.sharepoint.com/sites/mytargetsite' | |
| $listsToCopy = @('List1', 'List2') | |
| # install Powershell patterns and practices (PnP) module, if not already installed | |
| if ($null -eq (Get-InstalledModule SharePointPnPPowerShellOnline -ErrorAction SilentlyContinue)) { | |
| install-module SharePointPnPPowerShellOnline -AllowClobber -SkipPublisherCheck -Scope CurrentUser | |
| } |
This file contains hidden or 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
| configuration DotNet3 | |
| { | |
| Import-DscResource -ModuleName xPSDesiredStateConfiguration | |
| node localhost | |
| { | |
| $dotNetSXSfolder = "C:\Installs\dotNetsxs" | |
| File dotNetSXSFolder | |
| { |
NewerOlder