Using Ansible, deploy salt-minion running in Python3 Virtual Environment on windows servers
Having trouble with Copy/Paste or Drag n Drop between Windows host and VMWare Workstation VMs?
Checkout this blog to fix it!
Even though the title looks simple, I had to spend close to 2 hours trying to change my account password in windows 2012 R2 server. I’m not admin so I can’t use the ‘net user’ command from CMD. Ctrl+Alt+End works for level 1 RDP but does not work for nested RDP sessions.
Thanks to Roy Malik who shared below steps to change password in nested RDP sessions.
1. Click Start
2. Type osk
3. Hit enter
4. Once the On screen Keyboard is open, hold ctrl+Alt on your physical keyboard, then click on the del key in the on screen keyboard.
5. Minimize the on screen Keyboard
6. Click Change a password.
7. Close osk
Note: I tried pressing Ctrl+Alt+Del from osk but didn’t work.
We need to adhere by the password change policy in any IT org. But one of the side effects of such policies is your scheduled tasks running with your account credentials.
Here is solution to run a scheduled task as “System” Account.
Open cmd with “Run As” administrator account.
SCHTASKS /CHANGE /RU “NT Authority\System” /TN “my_job0”
SCHTASKS – Native Windows 2003+ command
/Change – Changes the existing task
/RU – Run as User [system account does not have password]
/TN – Task Name
If you are running a webserver in VM within windows and want to host it by masking its real IP. Then the solution would be to do port forwarding.
Below command works on Windows XP and later.
netsh interface portproxy add v4tov4 listenport=80 listenaddress=192.168.2.10 connectport=80 connectaddress=192.168.2.20
Windows Host: 192.168.2.10
Guest VM: 192.168.2.20
forwarding port 80 [http] requests from windows host to guest VM. similarly we can do this with other ports as well.