I was just wondering that how to reset the IE personal settings through command line as I am much more interested over the cli functions, just got this command to reset the settings of the IE to the default one. rundll32 inetcpl.cpl ResetIEtoDefaults Run the above code by pressing the (windows key + R), Just type the above command and you will get the below prompt. just select the checkbox and click reset button all is done.
Get-esxcli will help us to run the CLI commands over the host directly but to extend it we cannot run certain commands directly over the host, In such case, we can use the below script to run directly on the host and achieve our goals. One shot with the script to achieve multiple targets My target was given to check the status of smartd services in each host and disable it, So I have put the commands on the variable $cmd and $cmd2 and executing it in all the machines, which has been feed in the variable $machines , command get executed in all the hosts fed in the variable $machines . Script : $user = '' $pswd = '' $cmd = 'etc/init.d/smartd status' $cmd2 = 'chkconfig smartd off' $machines = Get-Content "" foreach ( $MACHINE in $machines ) { Get-VMHost -Name $MACHINE | % { $ssh = Get-VMHostService -VMHost $_ | where { $_ . Key -eq 'TSM-SSH' } if ( ! $ssh . Running)...
There are three methods to rejoin the computer to domain without restart Method 1: Test-ComputerSecureChannel -Repair -Credential (Get-Credential) When the above command is executed it will prompt for username and password and enter the domain credentials and result should show as true then the machine is re-added to domain. Method 2: netdom resetpwd /Server:DC /UserD:DomainAdmin /PasswordD:Password The above command should be executed in the command prompt under administrator prompt. Method 3: Reset-ComputerMachinePassword -Credential (Get-Credential) When the above command is executed it will prompt for username and password and enter the domain credentials and result should show as true then the machine is re-added to domain. Stay Tuned and connect with me @ Click to connect