How Do I Use The Act5 Command Line Parameter For Mac
There are several ways to shut down a Mac from the command line, we’ll cover two of the most simple methods using easy syntax. The Mac Terminal offers many commands for handling various tasks and system functions, and so naturally the command line also offers a method to shutdown a Mac computer from the Terminal as well.
We can find mac address (physical address) of a computer using the command ‘getmac‘. This can be used to get mac address for remote computers also. Below are few examples on how to use this command. It works on XP, Vista, Windows 7, Server 2003 and Server 2008 operating systems.
Get mac addresses from CMD
Just run the command getmac to get the mac addresses. Find an example below.
This command does not show mac addresses for the network connections which are disabled. You can run ncpa.cpl and check which NICs are disabled. Further, I have received comments that this command does not help identify the mac address for a specific device. For example, if I need to get the mac address for my WiFi card, output of getmac command is not helpful. We can use ipconfig command to deal with this.
Get mac address of a remote computer
We can retrieve the mac addressses for a remote computer using nbtstat command.
Example:
Alternatively, We can run the below command to retrieve the mac addresses of a remote computer.
remote_computer : Full name of the remote computer or IP address
username and password are of the account on the remote computer.
Example:
If you do not want to specify the password, you can skip /p parameter. You will be prompted to enter the password and the command execution will take place after that.
Errors:
Using getmac command we can retrieve the mac addresses of the machines running windows OS only. If you try this for a Linux machine you would get the error “The RPC server is unavailable.”
If you provide incorrect password, the command would fail with the error message “Logon failure: unknown user name or bad password.”
Also Read:
Windows CMD commands reference
You can use command-line parameters to change CCleaner's installation behavior, or to change how CCleaner runs.
Command-line parameters for CCleaner installs
There are three parameters you can use when installing CCleaner, as follows. You can use them in batch files to automate CCleaner installations.
Parameter | Explanation | Example |
ccsetup.exe /S | This performs a silent install of CCleaner with default options. | ccsetup.exe /S |
ccsetup.exe /D=<pathname> | This installs CCleaner into a different folder than the default. | ccsetup.exe /D=C:Directory (In this example, CCleaner would be installed in the C:Directory folder.) |
ccsetup.exe /L=<locale> | This installs CCleaner with a language file identified by the locale ID. For a list of locale IDs, see http://support.microsoft.com/kb/221435. For a list of CCleaner's supported languages, see this topic. | ccsetup.exe /L=1036 (In this example, CCleaner would be installed in French.) |
Note: You can use multiple parameters by including them on the same line. For example,
would install CCleaner silently in German to the C:CCleaner folder.
Command-line parameters for CCleaner operation
There are three parameters you can use when running CCleaner, as follows. You can use them in batch files, scripting, shortcuts, or the Task Scheduler to automate CCleaner operation. For example, you could set CCleaner to run automatically every day at 3:00am.
Parameter | Explanation |
CCleaner.exe /AUTO | CCleaner runs silently and automatically, using the current set of saved options to clean the PC. CCleaner then exits. |
CCleaner.exe /AUTO /SHUTDOWN | CCleaner runs silently and automatically, using the current set of saved options to clean the PC. Windows then shuts down automatically. Note: You cannot run /SHUTDOWN by itself. It must be preceded by /AUTO. |
CCleaner.exe /EXPORT | CCleaner exports the cleaning rules to the INI files. Three INI files will be created in the CCleaner's installation folder - winapp.ini, winreg.ini and winsys.ini. They contain cleaning rules for the Application section, Registry Cleaner and the Windows section respectively. |
CCleaner.exe /DELETE 'path_to_file(s)' /METHOD '0-3' | Pantalla de inicio windows. CCleaner silently performs secure deletion for folders/files specified. You can specify multiple files/folders separating them with the ' ' character. Example: CCleaner.exe /delete 'D:TempSDelete*.* D:TempSDelete*.log D:TempSDelete*.txt D:TempSDeletetest.bmp' The Method parameter defines the secure deletion type: 0 - 1 Pass Note: You cannot use /METHOD by itself. It must be preceded by /DELETE. |
Note: When you run CCleaner.exe using the /AUTO parameter, CCleaner does not run the Registry cleaner. You cannot currently run the Registry cleaner through a command-line parameter
Command-line parameters for CCleaner operation pane focus
CCleaner has four 'panes': Cleaner, Registry, Tools, and Options. When the program is open, you can access each pane by clicking the associated icon/button at left.
If you are launching CCleaner from a command line, you can now have it open on a particular pane by specifying one of the following command-line switches:
- /CLEANER
- /REGISTRY
- /TOOLS
- /OPTIONS
If CCleaner is already open, it will display the appropriate pane. If you have more than one instance of CCleaner running, the command-line switch will only affect the topmost (if open) or left-most (if minimized) instance.
Note: CCleaner will only recognize the first pane-related command-line switch.
Command-line parameters for CCleaner Business and Technician Edition
CCleaner Business Edition and Technician Edition allow the user to perform several additional command line operations. You can use them in batch files, scripting, shortcuts, or the Task Scheduler to automate CCleaner operation.
Parameter | Explanation | Example |
analyze ['log_filename.txt'] | Analyses using the rules defined in ccleaner.ini and puts the results in log_filename.txt | ccleaner.exe /analyze 'log.txt' |
clean ['log_filename.txt'] | Cleans using the rules defined in ccleaner.ini and puts the results in log_filename.txt | ccleaner.exe /clean 'log.txt' |
update | Performs an immediate silent update. | ccleaner.exe /update |
Note: If you are using a 64 bit system, simply substitute ccleaner.exe with ccleaner64.exe for the above commands.