Difference between revisions of "Command Line"

From Max's Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
__FORCETOC__
 
__FORCETOC__
  
=='''Uninstalling Programs/Applications Remotely'''==
+
==Uninstalling Programs/Applications Remotely==
  
 
==='''Java (Nobody Likes Java):'''===
 
==='''Java (Nobody Likes Java):'''===
Line 9: Line 9:
 
psexec \\computer msiexec /qn /X{26A24AE4-039D-4CA4-87B4-2F86418071F0} /norestart
 
psexec \\computer msiexec /qn /X{26A24AE4-039D-4CA4-87B4-2F86418071F0} /norestart
  
==='''Install Java (Why would you do this?):'''===
+
===Install Java (Why would you do this?):===
  
 
/i "\\LOCATIONANDPATHOFEXE\jre-8u71-windows-i586.exe" INSTALL_SILENT=1 REBOOT=0
 
/i "\\LOCATIONANDPATHOFEXE\jre-8u71-windows-i586.exe" INSTALL_SILENT=1 REBOOT=0
  
  
=='''Uninstall an Application or Program Remotely'''==
+
==Uninstall an Application or Program Remotely==
  
==='''Remove:'''===
+
===Remove:===
  
 
runas /user:admin@DOMAIN cmd
 
runas /user:admin@DOMAIN cmd
Line 28: Line 28:
 
/node:'%COMPUTERNAME%' product where name="Adobe Acrobat XI Pro" call uninstall /nointeractive
 
/node:'%COMPUTERNAME%' product where name="Adobe Acrobat XI Pro" call uninstall /nointeractive
  
=='''Install:'''==
+
==Install:==
  
 
copy %COMPUTERNAME% "\\servername\software\AdbeRdr11000_mui_Std" "C:\IT-DATA"
 
copy %COMPUTERNAME% "\\servername\software\AdbeRdr11000_mui_Std" "C:\IT-DATA"
Line 38: Line 38:
 
==Install MSI Remotely==
 
==Install MSI Remotely==
 
psexec -s \\COMPUTERNAME msiexec /i \\PATHTOMSI.msi /qn
 
psexec -s \\COMPUTERNAME msiexec /i \\PATHTOMSI.msi /qn
 +
 +
==View Security Identifier (SID)==
 +
wmic useraccount get name,sid

Revision as of 22:35, 3 June 2016


Uninstalling Programs/Applications Remotely

Java (Nobody Likes Java):

Uninstall Java 64Bit

psexec \\computer msiexec /qn /X{26A24AE4-039D-4CA4-87B4-2F86418071F0} /norestart

Install Java (Why would you do this?):

/i "\\LOCATIONANDPATHOFEXE\jre-8u71-windows-i586.exe" INSTALL_SILENT=1 REBOOT=0


Uninstall an Application or Program Remotely

Remove:

runas /user:admin@DOMAIN cmd

wmic

/node:"%COMPUTERNAME%" product get name,version,vendor

/node:"%COMPUTERNAME%" product where name="Adobe Acrobat XI Pro"

/node:'%COMPUTERNAME%' product where name="Adobe Acrobat XI Pro" call uninstall /nointeractive

Install:

copy %COMPUTERNAME% "\\servername\software\AdbeRdr11000_mui_Std" "C:\IT-DATA"

psexec %COMPUTERNAME% msiexec /i "C:\IT-DATA\AdbeRdr11000_mui_Std\AcroRead.msi" EULA_ACCEPT=YES REMOVE_PREVIOUS=YES /quiet /norestart

http://community.spiceworks.com/how_to/179-using-a-command-line-to-uninstall-software-on-remote-pcs

Install MSI Remotely

psexec -s \\COMPUTERNAME msiexec /i \\PATHTOMSI.msi /qn

View Security Identifier (SID)

wmic useraccount get name,sid