Windows 10

Create batch file to run with elevated permissions to activate windows 10

I had a task of automating Windows 10 upgrades from Windows 7, and one key thing I needed to do was allow for UAC to exist, AND be able to run batch scripts, or powershell scripts as Administrator. Also known as elevated permissions.

I created a bat file with these contents:

set mydir=%~dp0
Powershell -Command “& { Start-Process \”%mydir%2.bat\” -verb RunAs}”

I then created a second bat file with 2.bat, and placed it in the same directory with this:

cscript C:\Windows\System32\slmgr.vbs -ipk xxxx-xxxx-xxxx-xxxx-xxxx
cscript C:\Windows\System32\slmgr.vbs /ato

This only brings up ONE prompt for the user, the UAC prompt to hit yes. No password required, and not VBS pop ups showing status, thanks to cscript.


Having issues upgrading APC firmware?

I was upgrading my firmware found on apc’s website, it seemed to fail via the sh file you get from the exe downloaded from apc’s website. It was throwing: APC PDU Error: The application was not able to load.

I could still telnet, and look around. I tried rebooting the management interface, it still showed the error. So what I did was do the FTP upload to reflash, and that resolved it. NO need to do a total reset of everything on it, that most seem to recommend.

*Here is the FTP login/upgrade instructions: (Taken from this [kbase article|])*

For AP9617/18/19 cards that have AOS 1.2.0 firmware and below, you will need to first upgrade to AOS 2.0.2 before upgrading to the latest firmware. AOS 2.0.2 should be included as part of the firmware executable located on the firmware download page.

Items are in bold are the commands.

1. To perform an upgrade with this method the Management Card must have been previously configured with a System IP, Subnet Mask, and Default Gateway and attached to the network. In addition, FTP Server must be enabled.

2. Open an MS-DOS command prompt window on a PC which is connected to the network. Change to the directory which contains the firmware upgrade files.

3. Open an FTP client session.
C:\apc> ftp ( being the IP address of the web card)

4. Log in using the Administrator User Name and Password. Your passwords may be different than the defaults, “apc” and “apc”. Typically, the password will appear on the screen as ***.
Connected to
220- APC FTP server ready.
User ( :(none)):*apc*
331 User name okay, need password.
230 User logged in, proceed.

5. Upgrade the aos first. The aos module is the file with the aos prefix.
ftp> bin
200 Command okay.
ftp> put aosXXX.bin (XXX being the version number downloaded)
200 Command okay.
150 Opening data connection for aos301.bin
250 Requested file action okay, completed. Management Card
327680 bytes sent in 5.99 seconds (54.70 Kbytes/sec)

6. Close the FTP client session.

7. Wait about 20 – 30 seconds.

8. Repeat Steps 3 – 8 again for the application module (sumx for Smart Ups/Matrix, sy for Symmetra, etc). In Step 6, substitute the sumx module file name, in place of the aos module file name. Or the sy prefix for the Symmetra.

Windows 10

Windows 10 – issues with installed programs not showing up in search

For whatever reason, windows 10 search stopped searching my all apps. I found out re initializing cortona fixes it, which you can do by running an elevated powershell and pasting this into it:

Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

Once I did that, everything popped up, no reboot was required.


Intel NUC NUC5i5RYH – disable speed step

I am running some homelab stuff with NUC5i5RYH running ESXi. I wanted to know why everything showed up as 1.6ghz and not the 2.7ghz it should burst to. I got a reply from INTEL stating:

The Intel® Core™ i5-5250U Processor is an Ultra-Low power processor (because of the U at the end of the model).

Any U processor cannot disable speedstep which would have allowed me to run full speed, just an FYI to those wanting to do it! You will only get the downclocked speed.


Apply ESXi 5.5 Update 2 via cli

With Mike’s excellent post, I was able to update my esxi install from Update 1 to Update 2 via the command line.


esxcli network firewall ruleset set -e true -r httpClient
esxcli software profile update -d -p ESXi-5.5.0-20140902001-standard
esxcli network firewall ruleset set -e false -r httpClient

To get the list of updates:

esxcli software sources profile list -d

Internet Explorer Windows 10 Windows 7 Windows 8

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 this’ll save someone some time.

You can see the MS KB here:

And note part of the way down it says the GR KB is here:

KB3123303 The new “End of Life” upgrade notification for Internet Explorer

Logitech Software

Logitech Gaming Software and G930 cutting out every 900 seconds

1- Close the LGS (Right click the icon on task bar and select exit)
2- Go to my computer – Windows – Program Files – Logitech Gaming Software – Resources – G930 – Manifest
3- Right click “Device_Manifest” and select edit
4- Look for battery turnOffInterval=”900″ and change the value to “0”
5- Save the file to desktop
6- Copy the file from desktop to My computer – Windows – Program Files – Logitech Gaming Software – Resources – G930 – Manifest
7- Make sure you replace the file
8- Restart the computer
9- The issue should be solved.



NOTE: This is not endorsed by Anandtech, they have no legal obligations in this if I decide to screw you all over or something.

BUY IN = $10

In the past some have put in more money, but let it be known, if we win, we will still all get an equal share. But we will all thank you greatly for the extra contribution, and I will let it be known who was nice enough to bump it up (if you so wish, or I can keep it anonymous).

DEADLINE: Today Wed Jan 13, 2016
10AM Pacific
11AM Mountain
12PM Central
1PM Eastern


We win $250,000, 50 people bought in, we split $250,000 – tax cut / 50. We will be doing a lump payout, and we will use some of the funds to have a lawyer do the divvy process, to try and levvy as much tax saving as we can. I am thinking I take the tax cut (Minnesota), and say we’re an anonymous group of friends who won. I will then divide it up how you like … I can mail a check, cash, MO, etc, will let the lawyer make the decision for us. We have options, but like I said, let’s not worry about it until we win 🙂

or split it pretax and you collect yourself and pay your taxes. If I recall someone said that was an option.

STEP 1 :

send $10 via venmo (preferred), google wallet, or Amazon Gift card, IF YOU SEND AS CC, ADD 3%:

Venmo address: done
Google wallet: done
Amazon GC: I already got a lot of GC, would rather have more cash to pull out come Wed, unless someone can really only send Amazon GC then you can use done

If you have heatware, I could also do a MO/cash/check, but email me first for my address.

STEP 2 :
Fill this quick form out :

This way I can keep track of everyone two fold, and then send a quick email once I get the actual tickets and we can split up the data entry work as we did last time. I will also update this blog post.

UPDATE : 1-11-2016 2P CST
We are at about $300, or 30 people so far. I was also told the post will probably get removed, so spread the word via email, or PM…if anyone wants to hit me up via email, or PM they can.

UPDATE: 1-11-2016 3:06P CST
33 Users, or $330
My favorite comment so far:
“When we win and we are on vacation somewhere, I will rub some sun block on your back.”

update 1-12-2016 8A CST
We are at 57 users so far!

update 1-12-2016 11:55A
65 peeps so far.
quality jokes: “When we win I’ll finally get to do my LOTR remake with an all guinea pig cast.”

update 1-13-2016 8:47A
We are at 81 people, I will probably have to stop accepting around noon CST so I can go to the bank at lunch and find time this evening to grab all the tickets!

update 1-13-2016 12P
Final tally – 87, or $870 worth of tickets.
Closed up! I am going to grab the tickets shortly, will scan and post later tonight so we can start data entering.
I will also send a follow up email to everyone now, if you do not receive it by 1230P – 1P shoot me an email/pm so I can make sure I have your email.
This will be the PB entry form link + area to chat:

update 1-13-2016 12:15P
SnipeMasterJ13 snuck in at the last second, 88. I feel better with an even amount of people!

update 1-13-2016 1:15P
a little tease before I get home to scan them all

update 1-13-2016 6:45P
I uploaded pictures. I got a new camera, which seemed to take high enough quality it all showed up in 4 pictures:

This should make it MUCH easier. In the top left of the ticket is a number, just go to the left of this document:

And enter them in the 10 corresponding lines! I’ll dump it in my excel document that will calculate what we win so it does the math. The google Doc removes the math.

If anyone else wants to see, here’s the template I was given back in 2012 when we started courtesy of Ryan P.

update 1-13-2016 10:22P
We got $44! So far looks like a winner was in Cali.

drivers Printers Server 2008 server 2012

Adding HP Printer gets error 0x0000007e

If a Windows 7 machine cannot add a printer because of a 0x0000007e error: Delete BIDI registry key (on server) from
Sometimes the print spooler needs to be restarted.


Running a powershell command via batch or command that is restricted

I had to run a powershell module that I found remotely to remove some pinned applications in Windows 7. I also wanted it to run remotely, and not have to log on to each PC to do so. To kick off a powershell script, I had to add this to a command file:

xcopy "\\\software\Non-Licensed\scripts\kiosk\Set-PinnedApplications.psm1" C:\temp\
powershell "Set-ExecutionPolicy Unrestricted"
powershell \\\software\Non-Licensed\scripts\kiosk\Remove_Taskbar_Shortcuts.ps1

The .ps1 file leads to this:

Import-Module C:\temp\Set-PinnedApplications.psm1
Set-PinnedApplication -Action UnPinFromTaskBar -FilePath "C:\Users\kiosk\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Internet Explorer.lnk"
Set-PinnedApplication -Action UnPinFromTaskBar -FilePath "C:\Users\kiosk\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Windows Explorer.lnk"
Set-PinnedApplication -Action UnPinFromTaskBar -FilePath "C:\Users\kiosk\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Windows Media Player.lnk"

So it allows me to remove the pinned applications. If you want to view the module (Set-PinnedApplications.psm1) I used off technet it is here:
You would just copy that content into: Set-PinnedApplications.psm1