Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: ran elevated command prompt/PowerShell as SYSTEM

18 Dec 2017   #1
Typhoon859

Windows 10 Pro [x64]
 
 
ran elevated command prompt/PowerShell as SYSTEM

?

Code:
Remove-Item : A positional parameter cannot be found that accepts argument
'/Q'.
At line:1 char:1
+ RD /S /Q "C:\Windows.old"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Remove-Item], ParameterBin
   dingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell
   .Commands.RemoveItemCommand
I'm on Windows 10 Pro, 64-bit, and I ran the elevated command prompt/PowerShell as SYSTEM, not even Administrator, so pretty sure that's not the issue (other commands have worked fine). Might anyone know the issue? Thanks!


My System SpecsSystem Spec
.
18 Dec 2017   #2
Brink

64-bit Windows 10 Pro
 
 

Hello Typhoon, :)

You might see if an option in the tutorial below may help to delete the Windows.old folder.

Delete Windows.old Folder in Windows 10 Performance Maintenance Tutorials
My System SpecsSystem Spec
18 Dec 2017   #3
Snick

Win 10 x64, Linux Lite, Win 7 x64, BlackArch, Kali, VMWare Workstation Player, OpenVPN
 
 

Hi Typhoon859,

Here's the proper way to delete the Windows.old folder:
  1. Click in Windows' search field, type Cleanup, then click Disk Cleanup.
  2. Click the "Clean up system files" button.
  3. Wait a bit while Windows scans for files, then scroll down the list until you see "Previous Windows installation(s)."
  4. Check the box next to the entry, then make sure there are no other boxes checked (unless you do indeed want to delete those items). Click OK to start the cleanup.
My System SpecsSystem Spec
.

19 Dec 2017   #4
Typhoon859

Windows 10 Pro [x64]
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello Typhoon, :)

You might see if an option in the tutorial below may help to delete the Windows.old folder.

Delete Windows.old Folder in Windows 10 Performance Maintenance Tutorials
Quote   Quote: Originally Posted by Snick View Post
Hi Typhoon859,

Here's the proper way to delete the Windows.old folder:
  1. Click in Windows' search field, type Cleanup, then click Disk Cleanup.
  2. Click the "Clean up system files" button.
  3. Wait a bit while Windows scans for files, then scroll down the list until you see "Previous Windows installation(s)."
  4. Check the box next to the entry, then make sure there are no other boxes checked (unless you do indeed want to delete those items). Click OK to start the cleanup.
Hey guys, I am aware how to properly delete that folder. For some reason, on my computer, it hasn't worked, as well as any other method. This is the method I have effectively now resorted to. There was only like one folder in there that was preventing the entire folder from being deleted.

Interestingly enough, I don't know what this program does, but I ended up using Unlocker v1.9.2 (64-bit) to delete it and it worked, effortlessly.

The error I mentioned seemed unrelated to the folder itself, so that's why I brought it up.
My System SpecsSystem Spec
Reply

 ran elevated command prompt/PowerShell as SYSTEM




Thread Tools




Similar help and support threads
Thread Forum
Elevated Command Prompt
How to Open an Elevated Command Prompt in Windows 7 This will show you how to open an elevated command prompt with administrator rights (Run as administrator) instead of the default command prompt without administrator rights in Windows 7. If you opened the elevated command prompt from a...
Tutorials
Elevated Command Prompt Shortcut
How to Create an "Elevated Command Prompt" Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create a shortcut that will open an elevated command prompt with administrator rights in Windows 7 and Windows 8. When you use the elevated command prompt shortcut, you may be...
Tutorials
Elevated command prompt over SSH
Not sure if this is the proper forum for my question, but here it goes. I'm using a SSH server to remotely access my notebook from work. It works well for SFTP and remote command line access using a dedicated, non-admin, user account. Problem is when I want to run something that requires...
Network & Sharing
Tip for Elevated Command Prompt
This probably is not new to many, but I find it useful. There are times I want an elevated command prompt. I usually type in "cmd", right click on it and run as administrator. If you need an elevated command prompt now and then, simply create a shortcut to "cmd". Right click on the shortcut,...
General Discussion
How to open Elevated Command Prompt?
Hi friends ! Uber Philf told me to start a new thread with my problem. I cannot open an Elevated Command Prompt, Dont know why. I know that I can open it in two alternative ways : 1). Win+R, type cmd, hit enter eith ctrl+shift pressed ; and 2). start > all programs > accessories > command prompt >...
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:27.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App