$AutoPath
If you didn't specify a -Directory, then PShot will pick one for you. You can easily see where things are going if you used the -Verbose parameter

[Task Sequence] LogPath\PShots

PShot will try to connect to a running Task Sequence to determine the LogPath
1
$TSEnv = New-Object -ComObject Microsoft.SMS.TSEnvironment
2
$LogPath = $TSEnv.Value('LogPath')
Copied!

[Task Sequence] _SMSTSLogPath\PShots

PShot will try to connect to a running Task Sequence to determine the _SMSTSLogPath
1
$TSEnv = New-Object -ComObject Microsoft.SMS.TSEnvironment
2
$SMSTSLogPath = $TSEnv.Value('_SMSTSLogPath')
Copied!

(WinPE) X:\MININT\SMSOSD\OSDLOGS\PShots

If you are in WinPE, and no Task Sequence is detected. Screenshots placed in here should be picked up automatically if you start a Task Sequence

[UserProfile] My Pictures\PShots

Self explanatory
1
$MyPictures = (New-Object -ComObject Shell.Application).NameSpace('shell:My Pictures').Self.Path
Copied!

[UserProfile] TEMP\PShots

Nothing else worked, so here is where it is
1
$Env:Temp\PShots
Copied!
Last modified 8mo ago