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 InitializeWindowsCredential | |
{ | |
Write-Verbose ("Loading PasswordVault Class.") | |
[void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime] | |
} | |
function ConvertTo-PasswordCredential | |
{ | |
<# | |
.Synopsis |
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
<# | |
Description: How to edit timestamps with Windows PowerShell | |
Single File | |
Get-Item C:\temp\test.txt | select Mode, Name, CreationTime, LastAccessTime, LastWriteTime | fl | |
$(Get-Item C:\temp\test.txt).creationtime=$(Get-Date) | |
$(Get-Item C:\temp\test.txt).lastaccesstime=$(Get-Date "12/24/2011 07:15 am") | |
Get-Item C:\temp\test.txt | select Mode, Name, CreationTime, LastAccessTime, LastWriteTime | fl | |
#> |
NewerOlder