diff --git a/floppy/cygwin.bat b/floppy/cygwin.bat index 1f925e0c..00b42400 100644 --- a/floppy/cygwin.bat +++ b/floppy/cygwin.bat @@ -9,7 +9,7 @@ if not defined CYGWIN_ARCH ( set CYGWIN_ARCH=x86 :: Force CYGWIN_ARCH to 64-bit - 32-bit seems to crash a lot on Windows 2008 and 2012 - systeminfo 2>nul | findstr /b /c:"OS Name" | findstr "2008 2012" >nul + wmic os get Caption | findstr "2008 2012" >nul if not errorlevel 1 set CYGWIN_ARCH=x86_64 ) diff --git a/floppy/install-winrm.cmd b/floppy/install-winrm.cmd index 0068c092..13b8a7e9 100644 --- a/floppy/install-winrm.cmd +++ b/floppy/install-winrm.cmd @@ -21,7 +21,7 @@ if exist %SystemRoot%\SysWOW64\cmd.exe ( @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: powershell -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force" nul | findstr /b /c:"OS Name" | findstr /c:"Windows 7" /c:"Windows 10" >nul +wmic os get Caption | findstr /c:"Windows 7" /c:"Windows 10" >nul if errorlevel 1 goto skip_fixnetwork if not exist a:\fixnetwork.ps1 echo ==^> ERROR: File not found: a:\fixnetwork.ps1