Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recreating public desktop icons #29

Open
imnota opened this issue Jan 16, 2023 · 3 comments
Open

Recreating public desktop icons #29

imnota opened this issue Jan 16, 2023 · 3 comments

Comments

@imnota
Copy link

imnota commented Jan 16, 2023

If we add

$lnks += getAllValidLNKsForDrive -path $res -drive $drive -prefix "Users\Public\Desktop\"

after line 483 in v1.1 of the script this would seem to allow retrieval of public desktop icons from VSS

@imnota
Copy link
Author

imnota commented Jan 18, 2023

Possibly also add

$lnks += getAllValidExtsForDrive -path $res -drive $drive -prefix "Users\Public\Desktop\" -extension ".url"

for urls as well now before line 605 in v3

@Andrew-J-Larson
Copy link

The only issue with this are the apps that optionally allow you to have a desktop icon created... so there would some users with shortcuts recreated when it wasn't needed.

Besides, any desktop shortcuts not recreated, can easily be fixed by the user, after the shortcut is available again in the startmenu.

@imnota
Copy link
Author

imnota commented May 31, 2023

Sorry, bit sketchy on my recollection on this as it's about 4 months since I last looked at the code, but believe this would only restore lnks and urls which had previously existed on the public desktop back to the public desktop (as the functions are only run against the mounted shadow copies and the files are recovered from within them).

My thought was to make it as easy as possible as not all end users are necessarily aware of how to create the shortcuts themselves (all depends on the knowledge of the end user base I guess!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants