this post was submitted on 12 Mar 2024
1951 points (99.2% liked)
Technology
57543 readers
3155 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
One drive is the one that really ruffles my feathers.
It turns itself back on randomly, which wouldn’t be too much of a problem except for that it fucking remaps the desktop.. a file that was previously located at C:\user\desktop\ is now at C:\user\One Drive\desktop…
Note the space in the path, they didn’t even have the decency to use an underscore… \one_drive\… even though it’s one of their own rules in powershell scripting.
For those of us using powershell to automate stuff this remapping is a nightmare and should be illegal.
Too bad I am in the US and will just have to continue to get support calls from time to time when a users desktop gets remapped behind the scenes.
Maybe there is a way using powershell and windows scheduled tasks to check to see if one drive turned itself back on, then auto turn it off and remap the desktop back to normal.
The absurdity of having windows check to see if windows screwed itself up, then if so have it fix itself is just laughable.
Why aren't you string quoting all of your paths anyway? I'm confused because the vast majority of paths wouldn't work the way you're suggesting.
Yeah, I reflexively double quote every path. It's still stupid though.