Add / Remove members of "Remote Desktop Users" group to grant / revoke RDP access
DOS
net localgroup "Remote Desktop Users"
net localgroup "Remote Desktop Users" domain\username /delete
net localgroup "Remote Desktop Users" domain\username /add
net localgroup "Remote Desktop Users"
net localgroup "Remote Desktop Users" domain\username /delete
net localgroup "Remote Desktop Users" domain\username /add
!! Scheduled task might not run properly when Path contains a space !!
Start a programC:\Windows\System32\conhost.exe--headless cmd.exe /C "...your\full\command\path_here\your_command_here"...your\full\command\path_hereStart a programpowershell.exe-NoProfile -ExecutionPolicy Bypass -Command "Start-Process 'Drive:\Path\To\Script\YourScript.bat' -WindowStyle Hidden"Drive:\Path\To\ScriptSample Values and Versions Used:
pve1vm_ct3.23.2888srv-docker-01Get Alpine Docker ISO to Proxmox (assuming pve1 with ISO Images enabled on local)
pve1|local|ISO Images:Download from URL.https://dl-cdn.alpinelinux.org/alpine/v3.23/releases/x86_64/alpine-standard-3.23.2-x86_64.iso into URL box.Query URL.Download.pve1 and choose Create VM.Next.Next.Qemu AgentNext.Next.Next.Next.Next.Finish.root # Default login - no password
setup-alpine # Start setup
Options: - keyb : us - variant : us - hostname: srv-docker-01 - network : (eth0) - ip addr : (dhcp) - manual : (n) - new pass: * - retype : * - tz : (utc) - proxy : (none) - mirrors : 1 - setup u : (no) - ssh svr : (openssh) - rootssh : (yes) - sshkey : (none) - disks : sda - diskuse : sys - erase : y
reboot
ifconfig eth0 | grep -i "HWaddr" # Retrieve MAC as HWaddr
``` bash title="Upgrade available packages apk upgrade --available
#!/bin/sh
qemu-ga -d -p /dev/vport1p1 # port can be retrieved via 'ls /dev | grep vport'
apk add docker docker-cli-compose
rc-update add docker boot # Add docker service to start on boot
service docker start # Start docker service
id docker # show uid, gid, groups
getent group | grep docker # show docker group
cat /etc/passwd | grep docker # show docker user
su - docker # run as docker
cd # change to home folder
ssh-keygen -t ed25519 -C "docker@srv-docker-01" -f /home/docker/.ssh/id_ed25519 -N "" # gen key
syntax on
set background=dark
set number
colorscheme desert
set nocompatible
set showmode
export PS1="\[\033[0;33m\][\$(date +%Y-%m-%d)][\t]\[\033[0;36m\] [\u\[\033[0;37m\]@\[\033[0;36m\]\h]:\[\033[0;32m\]\w\[\033[0m\] \n$ "
alias ls='ls -la --color=auto'
#alias dps='docker ps --format "{{.ID}}\t{{.Names}} \t{{.Status}}\t\t{{.Ports}}"'
alias dps="docker ps -a --format 'table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}'"
alias dc='docker compose'
alias dcu='docker compose up -d'
alias dcl='docker compose logs -f'
alias dcd='docker compose down'
# dircolors --print-database
LS_COLORS=$LS_COLORS:'di=1;35:' ; export LS_COLORS
[alias]
st = status
lg = log --pretty=format:'%C(red bold)%h%C(reset) - [%C(green bold)%ci%C(reset) %C(magenta bold)%an%C(reset)] %C(yellow bold)%d%Creset %C(white bold)%s%C(reset)'
A new GPO is required to define the settings for network drive mapping. Here’s how to create it:
At this stage, you have created a new GPO, which will later contain the drive mapping settings.
To apply the policy, you need to link it to the relevant OU where the users or computers reside.
This step ensures that the settings defined in the GPO will apply only to the specified OU.
Before mapping the drive, the shared folder must be published in Active Directory.
Publishing the folder makes it discoverable by the Group Policy Management Console for mapping.
With the shared folder published, configure the GPO to map the drive.
Even with a properly configured Group Policy Drive Mapping, you may encounter issues that prevent mapped drives from appearing or functioning correctly. Use this troubleshooting guide to identify and resolve common problems.
Symptoms: The mapped drive does not appear on client machines.
Solution:
Additional Check:
Symptoms: The drive maps to the wrong location or with the wrong drive letter.
Solution:
Additional Check:
Symptoms: Users see an error message or cannot access the mapped drive.
Solution:
Symptoms: Changes to the GPO are not reflected on client machines.
Solution:
Additional Check:
Symptoms: The drive disappears after the user logs out or reboots.
Solution:
Symptoms: Mapped drives are not applied to specific users or groups.
Solution:
Additional Check:
Symptoms: Users experience slow login times when the drive mapping is applied.
Solution:
Symptoms: Drives fail to map when users log in from remote locations or unstable networks.
Solution: