Super Moderator
  • Content count

  • Joined

  • Last visited

Community Reputation

29 Excellent

About Yzöwl

  • Rank
    Wise Owl

Profile Information

  • OS
    Windows 7 x64
  • Country

Recent Profile Visitors

1,265 profile views
  1. My preference is to forget about the fancy console window GUI progress bar and instead use the console window title bar to update the end user. @Echo Off SetLocal EnableExtensions EnableDelayedExpansion Reg Query "HKU\S-1-5-19" 1>Nul 2>&1 || (PowerShell -ExecutionPolicy Bypass^ -Command "SaPs -Verb RunAs -PSPath '%ComSpec%' -Args '/C """"%~f0""""'" Exit/B) If /I "%CD%\" NEq "%~dp0" PushD %~dp0 Set "bar=" For /L %%a In (1,1,48) Do Set "bar=!bar!>" Set "n=0" For %%a In (*.msu) Do Set/A n+=1 Set "i=0" Echo( Processing files: For %%a In (*.msu) Do ( Set/A i+=1, percent=i*100/n, barLen=48*percent/100 For %%b In (!barLen!) Do Title !percent!%% !bar:~,%%b! Echo( !i!- %%a WUSA.EXE "%%a" /norestart /quiet) Title Press any key to exit . . . Timeout -1 1>Nul Hope this gives you a more sensible solution for your script.
  2. I wasn't offered KB2999226 or KB3050265 as they don't appear on my list nor are they installed. I have got KB3118401 installed although I see no reason why that would affect the WU Process.
  3. Interesting thought and one which I've never contemplated, the machine currently shows 6 updates for .NET Framework 4.6.1 and 236 updates for Windows including IE11, (installed but unopened). It's just that the Microsoft Official Fix for the 'slowness' problem is supposed to be one of the items in my above list, and the update which superseded it is also there too.
  4. My guess is that it's related to me refusing to install any of the following updates: (the windows update 'fixes' are supposed to be included among these anti telemetry/win10 upgrade updates). …or any of May's updates yet! It took 2+ hours each time I ran the WU checks too!
  5. This is unimportant but I just thought I'd post it here because it's odd. …Just as a note after three other WU runs all ending as above I was eventually offered 33 Important and 1 Optional update
  6. Something simple like this may work for you. @Echo Off & SetLocal EnableDelayedExpansion For %%A In (*.msu) Do (Set "_=%%A" If "%%A" NEq "!_:*-KB=!" Ren "%%A" "KB!_:*-KB=!")
  7. Do a REG QUERY of each of the six known registry locations within a FOR LOOP and put the output into VARIABLES. Replace the last four characters of the saved VARIABLES with the new strings REG ADD the six known registry locations with the updated VARIABLES REG DELETE the three known keys
  8. As you haven't provided sufficient information to persuade me otherwise could you explain why, if your intending to change settings for the interactive user, you aren't making changes to HKEY_CURRENT_USER\Software\Classes instead of HKEY_CLASSES_ROOT. Please be aware that this Member has also asked this question elsewhere. Could you please tell me why if you're only wanting to change these settings on the PC's of your Brother, Son, Wife and yourself why you would wish to script something that would take only 1 minute to perform on each of the four machines once.
  9. Just in case there's been some sort of redirection as opposed to symbolic linking it may be worth not hardcoding the drive letter or even the \Users locations. Off the top if my head, (untested), something like this may do that: @For /F "Tokens=2 Delims=," %%a In ('WhoAmI /User /Fo CSV /NH') Do @( For /F "Tokens=1* Delims==" %%b In ( '"WMIc Path Win32_UserProfile Where (SID='%%~a') Get LocalPath /Value"' ) Do @For %%d In (%%c) Do @Set UserProfile=%%d)
  10. Installing and searching for updates is slow and high CPU usage occurs in Windows 7 and Windows Server 2008 R2 That specific update is included in the list in the next link. (The page is the source suggested as the definitive solution in the Topic on the subject in our Forum). Aegis for Windows 7/8.x - Block all known Microsoft spying and Windows 10 upgrade elements
  11. Trouble is that the official fix for it is contained within one of the updates we're asked to ignore as part of our 'say no to Win10' decision.
  12. A little more about Ubuntu on Windows
  13. Not necessary, just bypassing it would suffice should the Execution Policy be a problem. Example: @PowerShell -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -Command ".\New-SizedFile.ps1 %UserProfile%\Dummy.txt 1GB"
  14. If powershell is available you can access it directly from your .bat .cmd file. @Powershell -C ".\New-SizedFile.ps1 %UserProfile%\Dummy.txt 1GB"The above command assumes the .ps1 is along side the .cmd.
  15. Now that the general conversation has finished and because you hadn't specified your OS, I thought I'd mention using a (probably built-in) PowerShell script to create your file. New-SizedFile.ps1 param( [string]$FilePath,[double]$Size )$file = [System.IO.File]::Create($FilePath)$file.SetLength($Size)$file.Close()Example Uses: Create Dummy.txt with size 698 bytes.\New-SizedFile.ps1 C:\Users\Yzöwl\Dummy.txt 698 Create Dummy.txt with size 86 KB.\New-SizedFile.ps1 C:\Users\Yzöwl\Dummy.txt 86KB Create Dummy.txt with size 20 MB.\New-SizedFile.ps1 C:\Users\Yzöwl\Dummy.txt 20MB Create Dummy.txt with size 3 GB.\New-SizedFile.ps1 C:\Users\Yzöwl\Dummy.txt 3GB