Running batch and powershell scripts as administrator

WINDOWS – RUN BATCH AND PS AS ADMINISTRATORS. This works for Windows 7 and newer. I tested on Windows 7 and 10 64bit and 32bit. This is a faster vbs version of the below script: net sess>NUL 2>&1||(echo.CreateObject^(“Shell.Application”^).ShellExecute”%~0″,,,”RunAs”,1 >”%TEMP%\%~nx0.vbs”&WScript “%TEMP%\%~nx0.vbs”&del “%TEMP%\%~nx0.vbs”&exit) #RUNNING CMD/BAT files as administrator, place this at the top of script after @echo ...

creating batch file to kick off powershell script in different versions of windows with different commands

I needed the ability to have a powershell script execute specific ways for specific versions of windows, so after some googling, I hodge podged this. Essentially you will run this script first, as a cmd, or batch file: @echo off setlocal for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j REM Windows 10 ...

IE9, and IE10 popups to upgrade to IE11 on Windows

We had users complaining about needing to upgrade to IE11, they were running IE8,9, and 10. I tracked down the KB that was installed on patch tuesday to: KB3124275. We have users who have to use Internet Explorer 10 for specific applications, so we cannot ugprade. I removed it from SUS and users PC’s, hopefully ...

Disable Windows Startup Repair as Default Option

I was having issues where my older raid card would not get recognized on the first boot, causing windows to reboot, then BSOD. So 50% of the time I would reboot and would be stuck on the repair screen, so I wanted to disable it. Apparently you can through the bcdedit! bcdedit /set {default} recoveryenabled ...

creating large, empty files in windows

I ran this in Windows 7, but using fsutil you have a LOT of options. fsutil file createnew c:\testfile.txt 150000000 this created a 150mb empty file so I can use for testing. If you run fsutil you will see you have a lot more options: 8dot3name 8dot3name managment behavior Control file system behavior dirty Manage ...

setting up putty to be used as a socks5 proxy over ssh

This was taken from: http://www.ocf.berkeley.edu/~xuanluo/sshproxywin.html I am posting this for my own knowledge, just incase that site ever goes down. Run PuTTY. It starts in the “Session” screen; fill in the settings for your SSH connection. The fields “Host Name” and “Port” are pretty self-explanatory. You can enter the username too by filling the “Host ...

How To Install Windows 7 from a USB Key with ISO links!

I’ve been reading a few methods to install Windows 7 from an ISO to a jump drive, or DVD. The best method to do it from a Windows computer is to obtain Microsoft’s own software for the task : http://images2.store.microsoft.com/prod/clustera/framework/w7udt/1.0/en-us/Windows7-USB-DVD-tool.exe Install that, and point it to the jump drive you want to use (it will ...

Temporary profile creates in Windows 7

I had a user who logs in with a domain account and creates a temporary directory every time he logs in. This is what I did that fixed it : 1. Log on to the system by using an administrative user account other than the user account that is experiencing the problem. 2. Back up ...

Getting Panasonic CF-53 USB3.0 Drivers to load into WinPE/Landesk

This one was a headache! I got all drivers loaded properly for Panasonic CF-53 in Windows 7, except one unknown device, which was actually a USB 3.0 Hub driver. It would not load the traditional way, so what I ended up doing was taking the drivers, and putting them on the image itself under C:\windows\inf ...

Panasonic Toughbook CF-53 ACPI\MAT0021 driver 2

We are getting in some new CF-53 – Standard laptops. My task is to find some drivers that are missing. One was ACPI\MAT0021 The driver is for the Panasonic Misc. You can get it from Panasonic’s website, or you can pull it from here (this one is for windows 7 32bit sp1): http://www.uploadland.com/?d=4F43AEA31 If you ...