Skip to content

Instantly share code, notes, and snippets.

public class AtepEventArgs<T> : EventArgs
{
public T Value { get; private set; }
public AtepEventArgs(T val)
{
Value = val;
}
}
public delegate void EventHandler<TSender, TEventArgs>(TSender sender, TEventArgs e);
public interface ILauncher<T>
REM ActivatorForExplorerShellViaDeploymentImageServicingAndManagement
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /RestoreHealth
#StartReliabilityMonitor
$AppLocation = "C:\Windows\System32\perfmon.exe"
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\StartReliabilityMonitor.lnk")
$Shortcut.TargetPath = $AppLocation
$Shortcut.Arguments ="/rel"
$Shortcut.IconLocation = "C:\Windows\System32\perfmon.exe"
$Shortcut.Description ="StartReliabilityMonitor"
$Shortcut.WorkingDirectory ="C:\Windows\System32"
$Shortcut.Save()
#ManageNetPasss
$AppLocation = "C:\Windows\System32\rundll32.exe"
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\ManageNetPasss.lnk")
$Shortcut.TargetPath = $AppLocation
$Shortcut.Arguments ="keymgr.dll, KRShowKeyMgr"
$Shortcut.IconLocation = "shell32.dll,14"
$Shortcut.Description ="ManageNetPasss"
$Shortcut.WorkingDirectory ="C:\Windows\System32"
$Shortcut.Save()