Recommended Posts

I am in the process of, and almost completed with, the creation of a utility that will allow you to punch in the UNC path, the target EXE name, specify any command line arguments to be used (ie /noeula, /unattend:t2, etc) and the credentials(domain or local) for autopatcher to be ran as.

This is in response to my problem of running Autopatcher from a network share with a higher level (administrator) of access than what the user that will be logged into the computer has. I was going to use batch file to accomplish this, but it ended up that I needed like 3 batch files to get the job done. That wouldn't have been that bad, I guess, but then you have to factor in that a batch file is basically a plain text document and if I'm going to be using this method my password would need to be piped in somehow, most likely in plain text. Some of you might come back with the argument to use CPAU because you can encode a file and then run that file..I just don't like that method, I want to keep everything simple and just have 1 EXE file that is involved with invoking Autopatcher. So after exhausting several different methods I decided to just write the EXE myself.

In case anyone wants to know how the EXE utility works here goes:

A gui will pop up asking you for the following information(defaults given in parenthesis):

UNC Path (blank)

Autopatcher EXE: (autopatcher.exe)

command line arguments: This is not an open edit box; instead there are checkboxes for /noeula and /noreboot, etc and then a drop down for unattend:t1/unattend:t2/unattend:t3. All command line arguments listed on this forum will be available.

Credentials:Username (username), Domain (blank=local computer), and Password.

After all that information is supplied then there is a 'create EXE' button, which after pressing will give you a prompt of where to save the resulting EXE . Pressing the create button does the following:

Takes all your data and creates a temp file (located in same dir as utility) and then compiles that as an EXE in the place you have chosen, then deletes the temp file.

The actual process of "running" the autopatcher.exe (or whatever target EXE you input) will be done with the following lines (which will be created from your created EXE file)

pushd UNCPATH

autopatcher.exe /noeula /unattend:t2 (or whatever command line options you choose)

popd

All of that will be run under the credentials you specify.

One thing concerning the compiled EXE: The end result compiled exe (which you create by hitting 'create EXE' is not heavily encoded and could be compromised if someone had the capability to de-compile the exe and grab it out. Of course it is still MUCH more secure than a plain text batch file. In my company this is not a problem, I actually probably would have been safe with a batch file since most users are not very Knowledgeable of programming and the like.

I will make this utility available here when finished if anyone is interested in it. If you have any other questions or ideas let me know by making a reply post. I hope more than myself will find this utility useful.

  • 1 month later...
  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...

Thanks to +M2Ys4U for pointing this out

bit of code to easily map then un-map a UNC path

Can't seem to refined the thread to give author credit ... will look again later

Autopatcher will only run from a mapped drive from a network share. I used pushd and popd to temporarily map a drive and run autopatcher in between. Threw it into a batch file, and with CMDOW the cmd window calling the batch can even be hidden.

My batch is as follows:

----------------------------

@copy /y \\servername\autopatcher\cmdow.exe %systemroot%\system32\cmdow.exe

@cmdow @ /hid

pushd \\servername\autopatcher

autopatcher.exe /noeula /unattend:t2

popd \\servername\autopatcher

----------------------------

Of course, the /noeula prevents having to accept the eula, and the unattend:t2 completes the unattended aspect with just a small notification window. You could also use t3 to make it completely invisible.

  • 3 months later...

^ thanks +M2Ys4U 2nd time for finding that tread fro me ... I needed that!

It seems that dirtymafia went to some trouble to create the utility he was working but has never come back

Since rtk found a different work around I'm happy!

Yeah got really busy with some other stuff and completly pushed this off. Now I have no idea where the code went..If I ever find it again I will finish this out.

Mine was a bit more robust than the fix that's out there..and hopefully I can find the code again..

Yeah got really busy with some other stuff and completly pushed this off. Now I have no idea where the code went..If I ever find it again I will finish this out.

Mine was a bit more robust than the fix that's out there..and hopefully I can find the code again..

Alright, found the code...Have started to finish it.

I plan on having a version out by the end of the week. I would love if some of you would be willing to work with it and let me know about any bugs.

I will create a new thread on here when it is completed.

Alright, found the code...Have started to finish it.

I plan on having a version out by the end of the week. I would love if some of you would be willing to work with it and let me know about any bugs.

I will create a new thread on here when it is completed.

I'm using the workaround I posted way back when, daily on 300+ machines. I'd be happy to help test and whatnot, but I'm no coder.

I'm using the workaround I posted way back when, daily on 300+ machines. I'd be happy to help test and whatnot, but I'm no coder.

Alright, cool, got one tester on board. I don't need coding or anything I just need to know of bugs / things that would make it better. So far since yesterday I have added the ability to save defaults (loaded when program starts) and to also save settings to a file and load them back from the file.

This way if you have to make more than 1 exe runner, or whatever, you can just load up what you had before, or just use the 'defaults' if that's what you use everytime.

I'm making a little help file to be included with it right now. I'm looking at thursday/friday to post it on here.

  • 3 months later...

nice very nice.. any ETA on finish? placing it on a network share would be awesome! :), if we have a pc that is out dated just run the tool form the network and voila, its rdy to go after updates...(and it saves harddisk space since only 1 place needs to have it...)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I do not remember anything happening to Apple and Google for bribing people not to make Apps for Windows Phone. Edge barley has a foot print to matter. If the other browser companies want more of the Pie, they need to do better. I use Brave on all my personal device. However in industry, Edge of default, as we can manage it easier with MS tools.
    • On the one hand, it shouldn't be difficult. You buy a computer, you decide what OS you want, which browser etc. Simple enough. But that's the techie side of things. My sister, my mother, wouldn't bother with such a thought. And I'm pretty sure that if you presented a window asking them what to pick they would say, "I don't care! I just want to access my Email!"
    • CPU-Z 2.20.2 by Razvan Serea CPU-Z is a freeware utility that gathers information on some of the main devices of your system. CPU-Z does not need to be installed, just unzip the files in a directory and run the .exe. In order to remove the program, just delete the files. The program does not copy any file in any Windows directory, nor write to the registry. CPU Name and number. Core stepping and process. Package. Core voltage. Internal and external clocks, clock multiplier. Supported instructions sets. All cache levels (location, size, speed, technology). Mainboard Vendor, model and revision. BIOS model and date. Chipset (northbridge and southbridge) and sensor. Graphic interface. Memory Frequency and timings. Module(s) specification using SPD (Serial Presence Detect) : vendor, serial number, timings table. System Windows and DirectX version. CPU-Z 2.20.2 changelog: Intel Arc G3 and G3 Extreme (Panther Lake)(2.20.2). AMD Ryzen 7 7700X3D (Raphael) (2.20.1). AMD Ryzen AI Max+ 495, 492, 488 (Gorgon Halo). AMD Ryzen AI Max 490, 485 (Gorgon Halo). AMD Ryzen AI Max PRO 495, 490, 485, 480 (Gorgon Halo). AMD Ryzen 9 9950X3D2 (Granite Ridge). AMD Ryzen 9 PRO 9965X3D, PRO 9945 (Granite Ridge). AMD Ryzen 7 PRO 9755, PRO 9745 (Granite Ridge). AMD Ryzen 5 PRO 9645 (Granite Ridge). AMD Ryzen AI 7/PRO 450G/GE (Gorgon Point 2). AMD Ryzen AI 5/PRO 440G/GE (Gorgon Point 2). AMD Ryzen AI 5/PRO 435G/GE (Gorgon Point 3). AMD Ryzen AI Max+ 392 (Strix Halo). Intel Core Ultra 5 250KF Plus (Arrow Lake Refresh). Intel Core 7 360 and 350 (Wildcat Lake). Intel Core 5 330, 320 and 315 (Wildcat Lake). Intel Core 3 304 (Wildcat Lake). Intel Core 9 273PQE, 273PTE, 273PE (Bartlett Lake). Intel Core 7 253PQE, 253PTE, 253PE, 251TE, 251E (Bartlett Lake). Intel Core 5 223PQE, 223PTE, 223PE, 221TE, 221E, 213PTE, 213PE, 211TE, 211E (Bartlett Lake). Intel Core 3 201TE, 201E (Bartlett Lake). Intel Arc Pro B70 and B65 (BMG-G31). Intel Arc Pro B60 and B50 (BMG-G21). Support of HUDIMM and HSODIMM memory modules. Download: CPU-Z 2.20.2 | Portable ~5.0 MB (Freeware) View: CPU-Z Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Anyone who expects MS to play fair is a complete idiot.
  • Recent Achievements

    • Conversation Starter
      mobandz earned a badge
      Conversation Starter
    • Apprentice
      fernan99 went up a rank
      Apprentice
    • One Month Later
      nothanks earned a badge
      One Month Later
    • One Month Later
      B2Proxy earned a badge
      One Month Later
    • One Year In
      MadMung0 earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      469
    2. 2
      PsYcHoKiLLa
      246
    3. 3
      Skyfrog
      79
    4. 4
      FloatingFatMan
      75
    5. 5
      Michael Scrip
      60
  • Tell a friend

    Love Neowin? Tell a friend!