Advanced Search
Search Results
192 total results found
Robocopy - Move files older than 60 days to archive folder
This line of code will move files from c:\temp to c:\temparchive that are older than 60 days. It makes a log file of what is moved in c:\temp\FileUnder60daysMoved.txt robocopy c:\temp c:\temparchive /mov /MINAGE:60 /copyall /s >c:\temp\FilesOver60daysMoved.tx...
Robocopy - Move only files under 60 days old
This line of code will move files from c:\temp to c:\temparchive that are less than 60 days old. It makes a log file of what is moved in c:\temp\FileUnder60daysMoved.txt robocopy c:\temp c:\temparchive /mov /MAXAGE:60 /copyall /s >c:\temp\FileUnder60daysMoved...
Inject Product Key to Server 2019 after install
To activate or inject a product key in Microsoft Windows Server 2019.Enter this code in an elevated command prompt . This will also work with Windows 10 and 11. c:\windows\system32\slmgr.vbs /ipk <productkey>
Switch Windows Terminal Services to Install Mode
To Switch Terminal Services to Install Mode When you want to add or remove programs, or change settings for all users on the Terminal Services server in Install mode. To do this: Click Start, and then click Run.In the Open box, type cmd, and then click OK.At...
Enable Remote Desktop From Command line in Windows
This guide will teach you the steps to use Command Prompt to enable or disable Remote Desktop and open the required firewall ports for a successful connection on Windows 10. Enable Remote Desktop using Command Prompt To enable the remote desktop protocol wit...
How to Determine Which Version of Microsoft .NET Framework Installed
To check what version of .Net installed on the machine, follow steps below: From the Command Line of the machine in question, execute the following command. reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full" /v version The res...
Change Windows Computer Name
Change Computer Name using PowerShell From an elevated PowerShell enter the following PowerShell’s command, substituting with your preferred name, and press the “Enter” to rename the computer: Rename-Computer -NewName "<NewHostname>" Change Computer Name us...
Local User Accounts
User Commands net user /add [*username] [password] net user /delete [username] {/domain} Note: Following the add command with a /Y will allow passwords longer than 14 characters without the additional qustion. Group Commands net localgroup administrat...
Rerun fstab to remount volumes
Execute the below command to reload the mounts contained within etc/fstabMay need to sudo the command. systemctl daemon-reload mount -a
Guacamole and SSH Ubuntu 22.04 connection
The following workaround to ssh into ubuntu 22.04 and above server with Guacamole comes from this pageSource Page When setting up Guacamole I had issues with connecting to the ubuntu machine via a ssh connection. The server simply said connection error. Kn...
Useful VirtualBox Commands
If you run VirtualBox, here are some useful commands to manage your VMs. Check state of VM VBoxManage showvminfo your-vm | grep State State should be running. If aborted, but stop and restart the VM (see below). Check NIC configuration of VM VBoxManage sh...
Start VirtualBox VM in Headless Mode
Note: The command VBoxManage is used to manage VirtualBox for the current user. Please ensure that you SU to the user where VirtualBox is configured. List virtual machines VBoxManage list vms # Output from above command "MyVM" {e4b0c92c-4301-4a7d-8af8-fe...
Stop VirtualBox Service Linux
Service must be stopped to apply Oracle Virtual Box Updates. systemctl stop vboxautostart-service.service systemctl stop vboxballoonctrl-service.service systemctl stop vboxdrv.service systemctl stop vboxweb-service.service Alternatively the service comman...
Why use apt-get upgrade instead of apt-get dist-upgrade?
If apt-get update && apt-get upgrade often get a message that one or more upgrades are held back. Then usually run dist-upgrade`` to run it through and it works fine. As far as I can tell ,dist-upgrade``` does all the same things and then some. So, my quest...
The following packages have been kept back: Why and how do I solve it?
Why and how do I solve it? Example of what it might look like; apt-get update && apt-get upgrade ... The following packages have been kept back: gimp gimp-data libgegl-0.0-0 libgimp2.0 Why this is happening If the dependencies have changed on one of t...
Copy SSH RSA key to a server
Once an SSH key has been created, the ssh-copy-id command can be used to install it as an authorized key on the server. Once the key has been authorized for SSH, it grants access to the server without a password. Use a command like the following to copy SSH k...
Creating an SSH Key Pair for User Authentication
ssh-keygen generates, manages and converts authentication keys for ssh. ssh-keygen can create RSA keys for use by SSH protocol version 1 and RSA or DSA keys for use by SSH protocol version 2. The type of key to be generated is specified with the -t option. If ...
Linux Users Commands
useradd Command The general syntax for the useradd command is as follows: useradd [OPTIONS] USERNAME Only root or users with sudo privileges can use the useradd command to create new user accounts. When invoked, useradd creates a new user account according...
Change Terminal Shell to the Bash Shell
Change Terminal Shell to the Bash Shell This is to change the current user (with sudo privileges) to the bash shell. sudo chsh -s /bin/bash $(whoami) Change a user (not current user) to use the bash shell. sudo chsh -s /bin/bash $(username) ...
How to Add User to Sudoers
usermod -aG sudo username