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-CertificateFromCredential { | |
param([PSCredential]$Credential) | |
Add-Type -TypeDefinition @' | |
using System; | |
using System.Runtime.InteropServices; | |
public static class NativeMethods { |
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
@ECHO off | |
@setlocal EnableDelayedExpansion | |
@goto label1 | |
@echo this lines should not be printed | |
@echo and this whole block (lines 4-8) can actually be removed | |
@echo I added these just for Charlie22911 | |
@:label1 | |
@set LF=^ |
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
#requires -version 3 | |
function Remove-Profile { | |
param( | |
[string[]]$ComputerName = $env:ComputerName, | |
[pscredential]$Credential = $null, | |
[string[]]$Name, | |
[ValidateRange(0,365)][int]$DaysOld = 0, | |
[string[]]$Exclude, | |
[switch]$IgnoreLastUseTime, | |
[switch]$Remove |
NewerOlder