Archive for the ‘Windows OS’ category

DSFR – Restart DSFR after reboot of systems

July 12th, 2016

To restart DSFR on systems once a server(s) have been restarted if they are having issues, you need to run the following command from an elevated PS shell on a windows server.

wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid="XXX1DEXX-50A9-XXXX-93F9-806E6FXXXXXX" call ResumeReplication

You can find the volumeGuid with the command: mountvol

if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Windows 7 – RDP remote reboot command line

October 2nd, 2012

Here is the command to reboot a windows 7 machine via the command line (make sure it’s running as administrator)

shutdown -t 0 -r -f
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Change the RDP port for windows

September 11th, 2010

How to change the RDP listening port for Windows.

1.    Click the Start button, and in Vista type regedit
 into the  search box and hit Enter, or in XP click Run, 
enter regedit, and hit  Enter.

2.    On the left side of the Registry Editor,
 browse to the following folder:

HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Control ->
TerminalServer -> WinStations ->RDP-Tcp

3.    On the right side, find and double-click the PortNumber key,
 as shown in Figure 1 (below).

4.    On the editing dialog box, choose the Decimal option.

5.    Type in the allocated port number, click OK, and 
then close the Registry Editor.
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Adding Range of ports to Windows Firewall

February 15th, 2010

To add a range of ports to Windows Firewall run the following script from the command line. Replace 5001 and 5201 with the range you are using and “Passive FTP” with the name of the service you are opening the port for.

FOR /L %I IN (5001,1,5201) DO netsh firewall add portopening TCP %I "Passive FTP"%I

This will loop threw adding each port to the firewall. In this case its for passive FTP

if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Block XP, Vista or Windows 7 from going to a website

February 10th, 2010

If you want to block someone from going to a website on a computer here are the required steps to prevent it. The steps should be the same for XP, Vista, Windows 7.
In Windows XP, the hosts file is found here:

C:\Windows\System32\Drivers\etc\hosts

Once you have found the hosts file, right click it and select Properties. Uncheck the “Read-Only” attribute (if checked). Click OK.

Double click the ‘Hosts’ file and select “Notepad” from the list of programs to open it with.

Once you have the hosts file open in Notepad, you will see an entry such as:

127.0.0.1 localhost

To block a certain web page from loading, add the following:

127.0.0.1 www.webpage.com

Your Hosts file will now look like this:

127.0.0.1 localhost
127.0.0.1 www.webpage.com

Add as many web addresses as you like in the same fashion.

Once you are finished, go up to ‘File’ and click ‘Save’.

The web pages listed in your ‘Hosts’ file should be blocked from access. It may be necessary for you to reboot your computer for these changes to take effect.

if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz