Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Convert Bat to PS Script

$
0
0

Hi All,

I have a GPO to uninstall/install application. Uninstall is PS script and set in GPO to run first.

Then following bat file to install the app. but I want to convert this to PS Script with install status write to log file? then make both in PS.

My Bat file
=================
@echo off
if exist "\\me02\softwareshare\%computername%.log" goto end
msiexec /i "\\me02\softwareshare\UserApps_64bit.msi" /update "\\me02\softwareshare\UserApps_64bit_SU6.msp" /l*vx "\\me02\softwareshare\%computername%.log" ICSERVERNAME=ic4 /qn
:end
====================================

As


Viewing all articles
Browse latest Browse all 6937

Trending Articles