Hallo,
Im starting to work with powershell and try to port my old batch files.
Im encounter some problem you may help me with.
1)
I got this lines of Code, and I dont know who to convert them to power shell.
The goal is to uninstall a software using the string found in the registry.
2) In former times I used PsExe to remotly execute scripts on remote positions.
What would be the best practice for power shell.
3) Another question is if it is posible with power shell to tell the system (Win7 and/or Xp)
to do a Windows System Update and install all critical updates?
Im starting to work with powershell and try to port my old batch files.
Im encounter some problem you may help me with.
1)
I got this lines of Code, and I dont know who to convert them to power shell.
The goal is to uninstall a software using the string found in the registry.
Code:
echo Uninstall old Software now
for /F "tokens=1,*" %%i in ('reg query HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\ /s /f APPLICATIONNAME ^|find "Uninstall"') do set StringSearch=%%i
for /f "tokens=1,2,3,4,5,6,7 delims=\" %%a in ("%StringSearch%") do set ProdID=%%g
echo ...
MsiExec.exe /x%ProdID% /quiet
2) In former times I used PsExe to remotly execute scripts on remote positions.
What would be the best practice for power shell.
3) Another question is if it is posible with power shell to tell the system (Win7 and/or Xp)
to do a Windows System Update and install all critical updates?
My Computer
- OS
- Windows 7