\SO\57498059.ps1Įxplorer.exe shell:appsFolder\Microsoft. Result (and Sticky Notes app runs on my Windows 10): PS D:\PShell>. Write-Host "$StickyNotesName - done" -ForegroundColor Cyan "$StickyNotesExec" # return value: cmd command to launch Sticky Notes # you can type `stikynot` in the run prompt or `cmd` prompt then anyways i manually put my StickyNotes.snt file from my back up to appdata>roaming>microsoft>stickynotes (which i believe ive done in the past no. # write `stikynot.bat` to a folder listed in Windows %path% variable $StickyNotesPack.PackageFamilyName '!' | Out-File -Encoding ascii -FilePath ".\stikynot.bat" $StickyNotesExec = 'explorer.exe shell:appsFolder\' $StickyNotesXml.Load("$StickyNotesManifest") 3: Navigate to Sticky Notes folder by using the following path: C:\Users\UserName\AppData\Local\ Packages\Microsoft. 2: Launch File Explorer, click View, and then make sure that the Hidden items option is checked. $StickyNotesManifest = Join-Path -Path $StickyNotesPack.InstallLocation ` Restore Sticky Notes in Windows 10 1: Terminate Sticky Notes, if running. $StickyNotesPack = Get-AppxPackage -Name $StickyNotesName $StickyNotesName = 'Microsoft.MicrosoftStickyNotes' I have written the following PowerShell script 57498059.ps1 to automatise their (a bit complicated) guide: Import-Module -Name 'Appx' Although your latter ( TenForums) link seemingly guides to a shortcut creation, you can use the final command line in a batch file instead as a shortcut target.
0 Comments
Leave a Reply. |