It really blows my mind that somehow most popular services/software is at state worse than 10-15 years ago, what the fuck happened? This shit is what is making me move to other interests/hobbies than technology-related stuff.
USER: powershell script to force close OneDrive, without on screen popups for any reason.
CoPilot: Sure, here's a simple PowerShell script that can be used to force close OneDrive without any on-screen popups:
# Get the process id of OneDrive
$OneDrivePID = (Get-Process -Name "OneDrive").Id
# Force stop the OneDrive process
Stop-Process -Id $OneDrivePID -Force
This script first retrieves the process ID of OneDrive and then uses the
Stop-Process
cmdlet to forcefully stop it. Please note that forcefully stopping a process might cause data loss or corruption, so use this script with caution.
Also, running scripts in PowerShell might require administrative privileges. If you encounter any issues, try running PowerShell as an administrator.
Disclaimer: This script is provided as is, without warranty of any kind. Use of this script is at your own risk and responsibility. Microsoft assumes no responsibility for any damage or loss caused by the use or misuse of this script. Always ensure you have a backup of your data.
USER: Powershell command to write the above script to a new batch file on current windows user's desktop, Titled "OneDriveBEGONE.bat"
Copilot: Sure, here's a PowerShell command that writes the script to a new batch file on the current Windows user's desktop, titled "OneDriveBEGONE.bat":
# Define the script content
$scriptContent = @"
@echo off
powershell -Command "& {Get-Process -Name 'OneDrive' | Stop-Process -Force}"
"@
# Get the path to the current user's desktop
$desktopPath = [Environment]::GetFolderPath("Desktop")
# Define the full path for the new batch file
$batchFilePath = Join-Path -Path $desktopPath -ChildPath "OneDriveBEGONE.bat"
# Write the script content to the new batch file
$scriptContent | Out-File -FilePath $batchFilePath
This script first defines the content of the batch file, which is a command to force stop the OneDrive process. It then gets the path to the current user's desktop and defines the full path for the new batch file. Finally, it writes the script content to the new batch file.
Please note that running scripts in PowerShell might require administrative privileges. If you encounter any issues, try running PowerShell as an administrator.
Disclaimer: This script is provided as is, without warranty of any kind. Use of this script is at your own risk and responsibility. Microsoft assumes no responsibility for any damage or loss caused by the use or misuse of this script. Always ensure you have a backup of your data.
the
amp;
in the bottom script needs to be deleted if you're going to use this... just markdown format things..
I have Windows 10, so things may be different for 11 or whatever version you're on, but can't you just uninstall OneDrive without specifically closing it? I feel like that's what I did when it was default installed.
Microsoft isn't friendly with the whole forced SaaS thingy.
I recently bought a new computer (left the old one in my car by mistake, and the outdoor heat caused the plastic casing to expand) and moved all my old files over to the new one. Somehow, it ended up sticking a bunch of my files (Desktop, Documents, etc.) in my OneDrive (which was setup without any confirmation that I'd like to use it). I had to create a brand new profile that wasn't linked to a Microsoft account on my brand new computer and move everything over just to fix the issue.
I dont think thats new. I havent fucked with windows in like 3 years and I remember also being annoyed by that.
Thank god I switched to Linux on my Desktop. And I also have a Macbook and I love it. I guess I can consider myself a Unix guy.
Anyone else getting the Game Pass add on lockscreen? Since last week my work computer tells me game pass is 1 Buck
This is the best summary I could come up with:
Microsoft now wants you to explain exactly why you’re attempting to close its OneDrive for Windows app before it allows you to do so.
Neowin has spotted that the latest update to OneDrive now includes an annoying dialog box that asks you to select the reason why you’re closing the app every single time you attempt to close OneDrive from the taskbar.
Microsoft has been pushing OneDrive in Windows for years, with it taking over the Documents and Pictures libraries in Windows 11 by default to sync files to Microsoft’s cloud-powered storage.
This new behavior follows years of Microsoft’s demanding Edge prompts that appear if you dare to download Chrome or change your default browser.
Hopefully, Microsoft won’t start injecting a poll at shutdown demanding to know why I’m turning my PC off for the day.
If you want to avoid this latest OneDrive nonsense, then feel free to open Task Manager, search for Microsoft OneDrive, and end that task the old-school way.
The original article contains 306 words, the summary contains 163 words. Saved 47%. I'm a bot and I'm open source!
Technology
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