reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TsAppAllowList" /v fDisabledAllowList /t REG_DWORD /d 1 /f
remoteapplicationmode:i:1remoteapplicationname:s:hogeremoteapplicationprogram:s:C:\tmp\hoge.exe
$o = gwmi -list win32_shadowcopy$o.Create("d:\","ClientAccessible")
Get-WmiObject win32_shadowcopy
$v = Get-Volume$s = Get-WmiObject win32_shadowcopy | Sort-Object installdate$s | %{ $G = [System.Management.ManagementDatetimeConverter]::ToDateTime($_.InstallDate).ToUniversalTime().ToString("yyyy.MM.dd-HH.mm.ss"); $J = [System.Management.ManagementDatetimeConverter]::ToDateTime($_.InstallDate); $vn = $_.VolumeName $v | %{ if($_.Path -eq $vn){ $dl = $_.DriveLetter } } Write-Host $dl " " $J " " \\localhost\d$\@GMT-$G " " $_.DeviceObject;}
cmd /c mklink /d c:\tmp\link \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy102またはcmd /c mklink /d c:\tmp\link \\localhost\d$\@GMT-2016.06.11-22.33.44
dir \\localhost\d$\@GMT-2016.06.11-22.33.44