WTF is happening with Windows 11? And nothing else
-
@TimeBandit said in WTF is happening with Windows 11? And nothing else:
Hey, at least it's not in the root of the C drive
Or, knowing , in the root of A drive, which somehow has ZFS filesystem
-
-
@Applied-Mediocrity said in WTF is happening with Windows 11? And nothing else:
@TimeBandit said in WTF is happening with Windows 11? And nothing else:
Hey, at least it's not in the root of the C drive
Or, knowing , in the root of A drive, which somehow has ZFS filesystem
No no, drive
B
is the ZFS filesystem. Drive A is the Iomega Zip drive.
-
@TimeBandit said in WTF is happening with Windows 11? And nothing else:
It is moderately successful in its attempt to keep the system asleep.
-
I would also like to point out that this scriptlet is not wholly my doing, but an enhanced toy that was made by another cow orker that is no longer here.
-
..
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
@Tsaukpaetra and between you and him, who did fuck up the error reporting and tried to pin the blame on Windows?
Neither. This was completely Windows fault.
For a period of about ten minutes I also could not elevate any program (command prompt, Task Manager, consent.exe, etc), or launch certain apps (Snipping tool).
Once Bitlocker finally got off its ass, everything started working correctly again.
-
..
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
it's working right now only by pure accident
Windows in a nutshell
-
@TimeBandit or any computer system, really. You only hear about Windows the most because it's the only one people actually use.
Look at that list of features. Can you imagine what the script would look like on Linux?
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
someone is mishandling their handles
It's powershell. It's fuckin' likely.
@Gustav said in WTF is happening with Windows 11? And nothing else:
it's working right now only by pure accident
I mean, anything powershell is working by pure accident by this logic.
@Gustav said in WTF is happening with Windows 11? And nothing else:
It's because of people like you two that Windows needs compatibility layers.
Tell Microsoft they don't want to support Powershell? I think you're barking up the wrong tree here.
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
@TimeBandit or any computer system, really. You only hear about Windows the most because it's the only one people actually use.
Look at that list of features. Can you imagine what the script would look like on Linux?
Quite short, 73% of those functions do not make sense in a Linux context.
-
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
@Gustav said in WTF is happening with Windows 11? And nothing else:
@TimeBandit or any computer system, really. You only hear about Windows the most because it's the only one people actually use.
Look at that list of features. Can you imagine what the script would look like on Linux?
Quite short, 73% of those functions do not make sense in a Linux context.
More than that - no-one on Linux is going to create a script to make it "quicker" to shutdown or restart.
No-one else on Windows would do it either.
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
New? Really? You've never seen access violation before?
Looks like someone turned a 32bit error into 64 bits: FFFFFFFFC0000005
-
@loopback0 said in WTF is happening with Windows 11? And nothing else:
make it "quicker" to shutdown or restart.
No-one else on Windows would do it either.Well, considering how often he needs to restart...
-
@dcon said in WTF is happening with Windows 11? And nothing else:
@Gustav said in WTF is happening with Windows 11? And nothing else:
New? Really? You've never seen access violation before?
Looks like someone turned a 32bit error into 64 bits: FFFFFFFFC0000005
Look, all my resources are busy with handling suspicious tubers I masticated last night, I can't handle fidgital contortions right now!
-
@TimeBandit said in WTF is happening with Windows 11? And nothing else:
@Applied-Mediocrity said in WTF is happening with Windows 11? And nothing else:
is it in the drive root?
Hey, at least it's not in the root of the
CB driveE: Goddamnit
-
Status: The fuck does my computer need to be restarted for a keyboard I don't have?!
-
@Tsaukpaetra a reboot for a keyboard, that's a new low
-
@TimeBandit A fake keyboard at that!
This is a laptop. Apparently they keys need software to work despite already working on the port it can't be plugged into (except pedantically if you consider a ribbon cable a port).
-
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
This is a laptop.
Yes, but it's your laptop (or at least in your possession), so all expectations of reasonable behavior go out the window.
-
@HardwareGeek said in WTF is happening with Windows 11? And nothing else:
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
This is a laptop.
Yes, but it's your laptop (or at least in your possession), so all expectations of reasonable behavior go out the window.
Well, it's behaving well enough all things considered.
-
There's your problem.
-
@dcon said in WTF is happening with Windows 11? And nothing else:
There's your problem.
Better than the fuckin' Dell they tried saddling me with, but not by much...
-
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
fuckin' Dell
No kink shaming, but...
-
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
Edit: Also, I can't seem to find that number as specifically an access violation. The Googles have failed!
Casting it to unsigned and rendering it as hex gives C0000005. Because why not?
-
@Watson said in WTF is happening with Windows 11? And nothing else:
Casting it
As a user prompted with a user-facing dialog, I shouldn't have to.
-
-
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
@Watson said in WTF is happening with Windows 11? And nothing else:
Casting it
As a user prompted with a user-facing dialog, I shouldn't have to.
Well, someone did
-
@Watson said in WTF is happening with Windows 11? And nothing else:
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
@Watson said in WTF is happening with Windows 11? And nothing else:
Casting it
As a user prompted with a user-facing dialog, I shouldn't have to.
Well, someone did
And this is the part where folks start a flamewar about "should" and "did" and "heaven" and "hell".
-
@Tsaukpaetra Is should ever relevant when Microsoft is involved?
-
@HardwareGeek said in WTF is happening with Windows 11? And nothing else:
Yes, but it's your laptop
: This is my laptop. There are many like it, but this one is mine...
-
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
As a user prompted with a user-facing dialog, I shouldn't have to.
Well yes, duh, but that's not the world we live in.
You also shouldn't be getting an access violation in that program.
-
@dkf said in WTF is happening with Windows 11? And nothing else:
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
As a user prompted with a user-facing dialog, I shouldn't have to.
Well yes, duh, but that's not the world we live in.
You also shouldn't be getting an access violation in that program.I've wondered if MS developers were forced to run their machines over network protocols were it let them improve shit like this.
-
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
I've wondered if MS developers were forced to run their machines over network protocols were it let them improve shit like this.
[Applies statistical reasoning to decode statement...]
Doubt it. They need to be forced to sit with random grandparents putting up with these error dialogs... with no ability to do anything other than put up with a frustrated old person. It shouldn't show the error code; it should decode it and say "access violation". (Saying more than that requires the right tools and debugging symbols, but anything is better than a cryptic code you can't even search for...)
-
@dkf said in WTF is happening with Windows 11? And nothing else:
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
I've wondered if MS developers were forced to run their machines over network protocols were it let them improve shit like this.
[Applies statistical reasoning to decode statement...]
Doubt it. They need to be forced to sit with random grandparents putting up with these error dialogs... with no ability to do anything other than put up with a frustrated old person. It shouldn't show the error code; it should decode it and say "access violation". (Saying more than that requires the right tools and debugging symbols, but anything is better than a cryptic code you can't even search for...)
Your remark about "access violation" vs "error code" is fine, as long as you can still get the error code if you want to. But "frustrated old person" is an insurmountable hurdle. The error message could literally say "The printer is out of paper. Insert paper into the paper tray to continue printing." and the "frustrated old person" would just say "it doesn't work" without even reading the message. (Notwithstanding that printers never work anyway, so they'd be correct. )
-
..
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
@dkf said in WTF is happening with Windows 11? And nothing else:
It shouldn't show the error code; it should decode it and say "access violation".
$10 say the reason is that @Tsaukpaetra's friend called a function returning numeric status code (a perfectly acceptable thing) and dumped it straight into message box as decimal integer instead of getting the error message string the correct way. But sure, Microsoft's fault.
Give me $10. There are no message box calls anywhere in the script.
-
..
-
Fine, have the full source if you don't believe me.
#This is the function that writes the main menu. function PrintMainMenu { clear if($update -eq 1){$newText = "There is a new version of QuickCommandsV2 on the share drive!"; Write-Host $newText -ForegroundColor Red} if($update -eq 2){$newText = "This is a Beta version of QuickCommandsV2. Use with caution!"; Write-Host $newText -ForegroundColor Red} if((Get-Job).Name -Match 'dontsleep'){Write-Host "'Dont Sleep' is on, the computer will never sleep."} else {Write-Host "'Dont Sleep' is off, the computer will sleep normally."} Write-Host "" (Get-NetIPAddress -suffixorigin DHCP | Select-Object -property IPaddress, InterfaceAlias -ErrorAction:SilentlyContinue| Out-string).Trim() Write-Host "" Write-Host "Computer Name :" $hostname Write-Host "Serial Number :" ($modelinfo).IdentifyingNumber Write-Host "Computer Vendor :" ($modelinfo).Vendor Write-Host "Computer Model :" ($modelinfo).Name Write-Host "Model Version :" ($modelinfo).Version Write-Host "OS Version :" $osversion write-host " Choose quick commands from below by typing the number or letter and pressing enter ------------------------------------------ [1] Group Policy Update [2] Display Windows Product Key [3] Display Drive Encryption Status [4] Disable Sleep in Power Settings [5] Enable RDP [6] Display Devices with problems [7] Unlock Bigfix [8] Extract/Import drivers to/from USB [9] Diagnostic tools [I] ITSC functions [D] Toggle 'Dont Sleep' [S] Shutdown [R] Restart [C] Next boot with QuickCommands [Q] Quit" } #Performs a gpupdate. First it will start a job so that you can see that it is doing something during the update. This Job will not work if the USB drive is removed so it will then do a regular gpupdate. function fgpupdate { write-host -NoNewLine "Performing Group Policy Update" start-job -name jgpupdate -Scriptblock{ gpupdate /force if ($LASTEXITCODE -ne 0 ){ throw ("Error " + $LASTEXITCODE) } } | Out-Null while ((get-job -name jgpupdate).State -eq "Running") { sleep 1 write-host -NoNewLine "." } write-host (get-job -name jgpupdate).State if ((get-job -name jgpupdate).State -ne "Completed") { write-host "Retrying..." gpupdate /force } if ((get-job -name jgpupdate).State -eq "Completed") { Receive-Job -name jgpupdate } Remove-job -name jgpupdate } #Disables all forms of automatic sleep, does not disable automatically locking but will allow remote connections function disablesleep { powercfg.exe -x disk-timeout-ac 0 powercfg.exe -x standby-timeout-ac 0 powercfg.exe -x disk-timeout-ac 0 powercfg.exe -x hibernate-timeout-ac 0 write-host "Disabled Sleep" } #Enables remote access function enablerdp { set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name fDenyTSConnections -Value 0 set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name SecurityLayer -value 0 write-host "Enabled RDP" } #Unlocks bigfix function unlockbigfix { Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\BigFix\EnterpriseClient\Settings\Client\__LockState" -Name value -Value "false" write-host "Unlocked Bigfix" } #This function is used to copy drivers off of a computer and put them on the root of a drive. The function will ask the user which drive to put the drivers onto and then create a folder with the name of the model of the computer. function extractdrivers { $driveletter = Read-Host "Please enter the drive letter of your USB drive " $driverfolder = $driveletter + ':\' + "$((Get-WmiObject -Class win32_computersystem).Model)" New-Item -Path $driverfolder -ItemType Directory | Out-Null clear Write-Host "This will take several minutes..." dism /online /export-driver /destination:$driverfolder } #This function is used to take drivers from a drive and install them onto a computer. It will ask the user to specify which drive the drivers are on and copy all the drivers in a folder that match the computer's model. function importdrivers { $driveletter = Read-Host "Please enter the drive letter of your USB drive " $driverFolder = $driveletter + ':\' + "$((Get-WmiObject -Class win32_computersystem).Model)" $infs = Get-ChildItem -Path $driverFolder -Filter "*.inf" -Recurse -File [int]$drivercount = ($infs | Measure-Object).Count [int]$driverscopied = 1 clear Write-Host "This will take several minutes..." foreach($inf in $infs){ pnputil.exe -i -a ""$inf.FullName"" | Out-Null Write-Host "Importing driver" ($driverscopied)"/"($drivercount) [int]$driverscopied = $driverscopied+1 } Write-Host "Successfully imported drivers." } #This function is just a menu allowing the user to navigate to the extract and import driver functions function drivers { clear write-host " This tool will allow you to extract or import drivers to and from a selected USB device. --------------------------------------------- [1] Extract drivers from the computer [2] Import drivers from the USB drive [3] Return to main menu" $response2 = Read-Host switch ($response2) { '1' {extractdrivers} '2' {importdrivers} '3' {return} } drivers } #This function creates a Job that runs in the background that will press the "F15" key every 60 seconds. Calling this function multiple times will turn it on/off. function dontsleep { if ((Get-Job).Name -Match 'dontsleep') { Stop-Job dontsleep Remove-Job dontsleep } else { Start-Job -name dontsleep -ScriptBlock { $WShell=new-object -ComObject "Wscript.Shell" While (1){ $WShell.SendKeys("{F15}"); sleep 60 } } | Out-Null } } #Diagnostics menu function diag { clear Write-Host "Select a tool below to perform diagnostics --------------------------------------------- [1] Test RAM [2] Attempt to fix VPN certificate [3] Attempt to fix 802.1x certificate [4] Performance Monitor [5] SFC Scan [C] Return to main menu" $response2 = Read-Host $response2 = "$response2".ToLower() switch ($response2) { '1' {C:\WINDOWS\system32\MdSched.exe} '2' {Start "C:\Program Files (x86)\REDACTED\AnyConnect Health Check\RACertificateFixerFileInstaller.exe"; Start "C:\Program Files (x86)\REDACTED\AnyConnect Health Check\RACertificateFixer\RA5Cert.exe"; Start "C:\Program Files (x86)\REDACTED\AnyConnect Health Check\RACertificateFixer\RACertificateFixer"} '3' {\\REDACTED\iss\REDACTED\Apps\29107\package\Client8021xAuthConfig.exe} '4' {perfmon /rel} '5' {sfcscan} 'c' {return} } diag } function sfcscan { New-item -Path "C:\temp" -Name "_temp.bat" -ItemType "file" -Value "@echo off sfc /scannow pause del %0" -Force | Out-Null Start-Process "cmd.exe " "/c C:\temp\_temp.bat" } #Software Installation menu; Connects to the REDACTED Software Market [WIP] function software { clear Write-Host "This menu is in Beta! Verify programs are installed" -ForegroundColor Red Write-Host "Select which software you would like to install --------------------------------------------------- [1] M365 for shared PCs [8] Silverlight [9] Workstream on public desktop [A] Teams Web shortcut on public desktop [C] Return to main menu" #[2] SAP for shared warehouse computers #[3] WOW - Warehouse Label Service #[4] WOW - A4 RS Client Print #[5] WOW - WIINGS Label Printing #[6] Adobe Acrobat Reader DC #[7] EXTRA! Xtreme $response2 = Read-Host $response2 = "$response2".ToLower() switch ($response2) { '1' {Start-Process "C:\Program Files (x86)\REDACTED\REDACTED\Client\REDACTEDSMClient.exe" -ArgumentList "/noui appid=60602"} '2' {Start-Process "C:\Program Files (x86)\REDACTED\REDACTED\Client\REDACTEDSMClient.exe" -ArgumentList "/noui appid=62542"} '3' {Start-Process "C:\Program Files (x86)\REDACTED\REDACTED\Client\REDACTEDSMClient.exe" -ArgumentList "/noui appid=27048"} '4' {Start-Process "C:\Program Files (x86)\REDACTED\REDACTED\Client\REDACTEDSMClient.exe" -ArgumentList "/noui appid=29642"} '5' {Start-Process "C:\Program Files (x86)\REDACTED\REDACTED\Client\REDACTEDSMClient.exe" -ArgumentList "/noui appid=44946"} '6' {Start-Process "C:\Program Files (x86)\REDACTED\REDACTED\Client\REDACTEDSMClient.exe" -ArgumentList "/noui appid=62911"; Read-Host "Wait until a command prompt opens and closes and press enter"} '7' {Start-Process "C:\Program Files (x86)\REDACTED\REDACTED\Client\REDACTEDSMClient.exe" -ArgumentList "/noui appid=23621"} '8' {\\REDACTED\REDACTED\Silverlight_x64.exe; Write-Host "Follow onscreen prompts"} '9' {copy \\REDACTED\REDACTED\OAPC\Workstream.edp C:\Users\Public\Desktop} 'a' {copy \\REDACTED\REDACTED\OAPC\Teams.url C:\Users\Public\Desktop} 'c' {return} } software } function checkupdate { [string]$sharefile = (Get-Command "\\REDACTED\REDACTED\Tools\Quick Commands V2\QuickCommandsv2.exe").FileVersionInfo.FileVersion $update = 0 if($sharefile -ne $version -And $sharefile -ne $Null) {$update = 1} if($version -like "B*") {$update = 2} Write-Output $update } function itsc { clear Write-Host "These functions are mostly meant for REDACTED --------------------------------------------- [1] Suspend Bitlocker (Only C Drive) [2] Clear TPM [3] Initialize TPM [4] RA Cert Fix [5] GP Update [6] Deploy [C] Return to main menu" $response2 = Read-Host $response2 = "$response2".ToLower() switch ($response2) { '1' {Suspend-BitLocker -MountPoint "C:" -RebootCount 0} '2' {Clear-Tpm} '3' {Initialize-Tpm} '4' {Start "C:\Program Files (x86)\REDACTED\AnyConnect Health Check\RACertificateFixer\RA5Cert.exe"; Start "C:\Program Files (x86)\REDACTED\AnyConnect Health Check\RACertificateFixer\RACertificateFixer"; Write-Host "Fixed RA Cert"} '6' {Start-Process iexplore.exe http://goto/deploy} 'c' {return} } itsc } function startup { Write-Host "QuickCommands must be located on the root of a flash drive" $response2 = Read-Host "Which drive letter is QuickCommands located on?" $temp = "cmd /c start ${response2}:\QuickCommandsv2.exe" New-item -Path "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp" -Name "_temp.bat" -ItemType "file" -Value "call $temp del %0" -Force | Out-Null } ######### #Update this version number for the update checker to work [string]$version = "2.4.0.3" ######### #Startup processes write-host "Performing Startup Processes..." #Change the size of the window so more information can be displayed. This will give an error in ISE. $newwindowheight = (get-host).ui.rawui.windowsize $newwindowheight.Height = 35 (get-host).ui.rawui.windowsize = $newwindowheight #This variable is used for the user selection in the menu. It is set to $Null just incase the variable is used somehow. [string]$response = $Null #Using variables as to not run the command multiple times $modelinfo = Get-CimInstance -ClassName Win32_ComputerSystemProduct $licensekey = Get-Ciminstance -class softwarelicensingservice | select-object -property OA3xOriginalProductKeyDescription, OA3xOriginalProductKey | Format-List | Out-string $osversion = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").DisplayVersion $hostname = Hostname #Starting 'Dont Sleep' dontsleep #The following line allows the script to work if it was ran on a removeable device and it is removed. set-location $env:SystemDrive #Checks for updates $update = checkupdate #Main loop while (1){ PrintMainMenu $response = Read-Host $response = "$response".ToLower() switch ($response) { '1' {fgpupdate} '2' {($licensekey).Trim()} '3' {manage-bde -status} '4' {disablesleep} '5' {enablerdp} '6' {(Get-ciminstance -Class Win32_PnpEntity -ComputerName localhost -Namespace Root\CIMV2 | Where-Object {$_.ConfigManagerErrorCode -ne 0 -and $_.Present} | select-object -property Name, DeviceID, Description,ConfigManagerErrorcode | Out-string).Trim()} '7' {unlockbigfix} '8' {drivers} '9' {diag} 'a' {software} 'i' {itsc} 'd' {dontsleep} 'r' {shutdown -r -t 0} 's' {shutdown -s -t 0} 'c' {startup} 'q' {if((Get-Job).Name -Match 'dontsleep'){Stop-Job dontsleep; Remove-Job dontsleep}; exit} } Read-Host "Press enter to continue" }
-
This post is deleted!
-
This post is deleted!
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
@Tsaukpaetra which function triggered error?
ConsoleWindowHost.exe?
@Gustav said in WTF is happening with Windows 11? And nothing else:
start-job -name jgpupdate -Scriptblock{ gpupdate /force if ($LASTEXITCODE -ne 0 ){ throw ("Error " + $LASTEXITCODE) } } | Out-Null
Holy fucking shit what a trash way to handle errors.
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
toy that was made by another cow orker that is no longer here.
I almost want to fix it up and make it a Real Program, but....
-
This post is deleted!
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
No, I mean which option in the menu was used.
Never got to the point where the menu was displayed at all.
@Gustav said in WTF is happening with Windows 11? And nothing else:
You were swearing by it not even an hour ago Yes, I know quick and dirty scripts are meant to be quick and dirty. But still, blaming Windows for your script being quick and dirty is... let's say unplus.
If the script never started, who farted in the tree?
-
This post is deleted!
-
@Tsaukpaetra okay, now I understand what you mean.
-
@Gustav said in WTF is happening with Windows 11? And nothing else:
@Tsaukpaetra so, either
dontsleep
orset-location
? I've never used it before, am I powershelling right?No idea. Since the console window never opened it's not like I got told anything.
By the way, all your "It's not Windows!!!!" is proven fallacious because
@Tsaukpaetra said in WTF is happening with Windows 11? And nothing else:
For a period of about ten minutes I also could not elevate any program (command prompt, Task Manager, consent.exe, etc), or launch certain apps (Snipping tool).
Once Bitlocker finally got off its ass, everything started working correctly again.Soon as the system started doing normal things again, the script ran fine with no issues, regardless of your opinion of the code quality.
-
@Tsaukpaetra okay, now I understand what you mean.
-
Status: The bottom line, if it quacks like a duck, it's a dock. If you're doing a server workload, it's a server.