Difference between revisions of "Command Line"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
===Remove:=== | ===Remove:=== | ||
− | runas /user:admin@DOMAIN cmd | + | * runas /user:admin@DOMAIN cmd |
− | + | * wmic | |
− | wmic | + | * /node:"%COMPUTERNAME%" product get name,version,vendor |
− | + | * /node:"%COMPUTERNAME%" product where name="Adobe Acrobat XI Pro" | |
− | /node:"%COMPUTERNAME%" product get name,version,vendor | + | * /node:'%COMPUTERNAME%' product where name="Adobe Acrobat XI Pro" call uninstall /nointeractive |
− | |||
− | /node:"%COMPUTERNAME%" product where name="Adobe Acrobat XI Pro" | ||
− | |||
− | /node:'%COMPUTERNAME%' product where name="Adobe Acrobat XI Pro" call uninstall /nointeractive | ||
==Install:== | ==Install:== |
Revision as of 18:00, 8 June 2016
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
View Remote Registry
- sc \\computername start remoteregistry start= auto
- copy and paste it into notepad
- save it as .bat