Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

192 total results found

Robocopy - Move files older than 60 days to archive folder

Windows Command Line

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...

Windows Command Line
Robocopy

Robocopy - Move only files under 60 days old

Windows Command Line

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...

Windows Command Line
Robocopy

Inject Product Key to Server 2019 after install

Windows Command Line

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>

Windows Command Line
Licensing

Switch Windows Terminal Services to Install Mode

Windows Command Line

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...

Windows Command Line
MSRDS

Enable Remote Desktop From Command line in Windows

Windows Command Line

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...

Windows Command Line
MSRDS

How to Determine Which Version of Microsoft .NET Framework Installed

Windows Command Line

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...

Windows Command Line

Change Windows Computer Name

Windows Command Line

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...

Windows Command Line
PowerShell

Local User Accounts

Windows Command Line

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...

Windows Command Line

Rerun fstab to remount volumes

Linux

Execute the below command to reload the mounts contained within etc/fstabMay need to sudo the command.   systemctl daemon-reload mount -a

Linux
Bash

Guacamole and SSH Ubuntu 22.04 connection

Linux

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...

Linux
SSH
Ubuntu

Useful VirtualBox Commands

VirtualBox

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...

Linux
VirtualBox

Start VirtualBox VM in Headless Mode

VirtualBox

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...

Linux
VirtualBox

Stop VirtualBox Service Linux

VirtualBox

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...

Linux
VirtualBox

Why use apt-get upgrade instead of apt-get dist-upgrade?

Linux Updates

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...

Linux
Bash

The following packages have been kept back: Why and how do I solve it?

Linux Updates

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...

Linux
Updates

Copy SSH RSA key to a server

Linux SSH

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...

Linux
Security

Creating an SSH Key Pair for User Authentication

Linux SSH

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
Security

Linux Users Commands

Linux General

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...

Linux

Change Terminal Shell to the Bash Shell

Linux Bash

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) ...

Linux

How to Add User to Sudoers

Linux Security

usermod -aG sudo username

Linux