BATCH file - CMD help

Permabanned
Joined
21 Sep 2013
Posts
1,336
It's Friday and having total brain fart.

I need to apply this fix to allow a write filter to be enabled on some Windows 7E systems.

I open CMD via right click and run as Admin, the txt I enter in CMD is

Code:
ewfcfg /install-configuration

The system then says requesting reboot of which I reboot. I then re do CMD run as admin via right and to check it's worked

Code:
ewfmgr c:

How do I make a file/batch to run the below as admin?

Code:
ewfcfg /install-configuration

It'll save me typing it and remembering it as a lot of this will be out in the wide world.

Thanks
 
Use Powershell instead. It's worth the time to learn - PowerGUI will help a lot and it also compiles Powershell scripts as .exe files
 
Back
Top Bottom