Warning: sem_get() [function.sem-get]: failed for key 0x152b: Permission denied in /home3/adminsky/public_html/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 98
AdminSky.org » CMD – Windows

Our Sponsors

Using WMIC install and uninstall software remotely

Using WMIC install and uninstall software remotely

1. Login CMD with domain admin account.

 Runas /user:DomainAdminAccount@DOMAIN cmd

input password when it prompted.

2. Open a WMIC shell with appropriate permissions by running “WMIC” command.

3. Install MSI software remotely

 > /node:COMPUTERNAME product call install true,”" , “c:\Active Directory Janitor 2.0.msi”

4.  Query installed software first and then uninstall selected software

>/node:COMPUTERNAME product get name,version,vendor

>/node:COMPUTERNAME product where name=”Active Directory Janitor 2.0″ call uninstall

5. Install and uninstall software remotel on multiple computers at one time

>/node:@”c:\computers.txt” product where name=”Active Directory Janitor 2.0.msi” call uninstall

> /node:@”c:\computers.txt” product call install true,”" , “c:\Active Directory Janitor 2.0.msi”

CMD – Recovery Console – SYSTEMROOT

The systemroot command sets the current working folder to the %SystemRoot% folder of the Windows installation that you are currently logged on to.

CMD – Recovery Console – Logon

The logon command lists all detected installations of Windows and then requests the local administrator password for the copy of Windows that you want to log on to. If your first three tries to log on fail, the console closes, and your computer restarts.

CMD – Recovery Console – FORMAT

format drive: /Q /FS:file-system
Use this command to format the specified drive to the specified file system. In the command syntax, /Q performs a quick format of the drive, drive is the drive letter of the partition to format, and /FS:file-system specifies the type of file system to use such as FAT, FAT32, or NTFS. If you do not specify a file system, the existing file system format is used if it is available.

CMD – Recovery Console – DISKPART

diskpart /add/deletedevice_name drive_name partition_name size

Use this command to manage the partitions on your hard disk volumes. You can use the following options:

/add Creates a new partition.
/delete Deletes an existing partition.
device_name The name of the device that is used to create a new partition.
drive_name A drive-letter-based name, for example D:.
partition_name The partition-based name for deleting an existing partition.
size The size of the new partition in megabytes.

You can determine the device name from the output of the MAP command, for example, \Device\HardDisk0. You can use the partition name instead of the drive name argument, for example, \Device\HardDisk0\Partition1. If you use no arguments, a user interface for managing your partitions appears.

Warning If you use this command on a disk that has a dynamic disk configuration, you may damage the partition table. Do not modify the structure of dynamic disks unless you are using the Disk Management tool


Warning: sem_acquire(): supplied argument is not a valid SysV semaphore resource in /home3/adminsky/public_html/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 107

Warning: sem_release(): supplied argument is not a valid SysV semaphore resource in /home3/adminsky/public_html/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 116