Jul 06

Remotely change local Administrator password on all domain computers

Even computer is joined with domain controller, Sysadmins are used to keep local Administrator account as a backup login account to log into the computer when domain controller is not available. However it is really important to change local Administrator password periodically to comply with company security standards.

Manually changing the local Admin password is very hard process, you can use GPOs but server 2012 and on wards this option is not available as passwords are stored on clear text without encrypting it, so in GPOs password field should be grey out if you are already checked that . If you are  using domain controller prior to server 2012 you can try GPO option methods read this for more details .However there are  lots of third party tools are available to make this process automate. Even Microsoft also introduce tool called  local administrator password solution (laps) which can be integrated with Group policies, but need to modify domain schema, however it will not discuss here, if you are interest about LAPS please follow this article of official Microsoft resource.

 

Here I’m going to shows you how to remotely change local Administrator password on all domain computers automatically without installing additional software or making no modification to domain controller. below is the our lab environment.

Domain controller :- WIndows server 2012 R2
Domain computers :- Windows 7,8,and 8.1

 

01) Get domain PCs

i) log into domain controller and open Powershell.

ii) type following command to get all client PCs managed by domain controller.

Copy output into notepad and save it as txt ex:- domainpc.txt

02) Download PSTools

Download latest tool set from here and extract it. Don’t forget to copy domainpc.txt into extract folder of PSTools.

03) Change Local Administrator password on computers

i) Open command prompt and go to extract PSTools folder.

ii) Type following command

[YOURDOMAIN] :- Active Directory domain Name
[REMOTE ADMIN ACCOUNT] :- this most probably ‘Administrator’ if you need to change other local account, specify it here
[NEW PASSWORD] :- New password for the account

ex:-

Once you enter the command it will ask Domain Administrator password, type the password and press enter if you need to get output into file, you need to append following to above command

ex:-

 

 

Jul 02

Limit YouTube traffic with Sophos UTM QoS

Sophos UTM has the capability of providing Quality Of Service (QoS) for the traffic that passes through it. So you can limit bandwidth allocation for  non productive YouTube streaming for your employees while allocating more bandwidth for other productive browsing for them. Let’s look at how to limit YouTube traffic with Sophos UTM QoS feature. To make this tutorial simple, I have divided it into 3 steps.

 

1) Enable QoS on interface

log into Sophos UTM web interface with admin credentials.
goto “Interface & Routing” then select “Quality of Service (QoS)
then enable QoS on both LAN and WAN (internet) interface from toggle switch.

Enable qos on interface

2) Create YouTube traffic selectors.

click on “Traffic Selectors” tab and open “Edit Traffic Selector” window.
Fill or select following values.

YouTube traffic selector.

Name :- YouTube application selector
Selector type :- choose  “Application selector” from drop down
Source :-Any

Destination :- Any
Control by :- choose “Applications” from drop down

then add “Youtube” as Control These Application section.
finally click “save“.

3) Set Download Throttling.

Goto “Download Throttling” tab
select your internal interface (this example “internal“) from drop down at “Bound to Interface” section. then Click on “New Download Throttling Rule” to add new rule.

Fill the following values.

Name :- Youtube Limit.
Interface :- it’s gray out with interface called “internal” (it’s already before adding new rule)
Position :- which you preferred. here put it to top (1)

Limit (kbit/s) :- limit bandwidth
Limit :- select limit type
you can set Throttling limit speed and type . here use “shared” which means 100 kbits/s is shared with all users on the LAN.

Traffic selector :- make sure to select correct “Traffic Selector” which was created on step 2.
this example it is “YouTube application selector

Add YouTube throttling rule

 

That’s it . I would like to here about  thoughts and comment about this tut. see you next time 🙂

Jun 19

Block Facebook Streaming Media using Sophos UTM

Blocking non productive sites such as social media sites , video streaming sites on office environment is crucial nowadays.
Sophos UTM is very flexible and easy to configure such rules as per the company policies. Some company needs ro restrict only Facebook videos and while employees able to browse Facebook without any restriction. Today I’m going to demonstrate how to block Facebook Streaming Media using Sophos UTM. If you don’t have it you can obtain free copy of it from here .

~~~Environment~~~
Version :- UTM 9 Home Edition
Operation mode :- Transparent mode

Sophos UTM operation mode is much important, because it has built in feature to block Facebook videos but it doesn’t work Transparent mode. As per the resources I found on the internet. It may work on Full Transparent mode only. However this alternative method was worked like charm.

1) Open “Default content filter action”

Goto “Web Protection” –> “Web Filter Profiles
then select “Filter Actions” from the tab and click edit on “Default content filter action

Sophos UTM default filter

2) Add Facebook Streaming URLs

On the “Edit Filter Action” sub window.
select “Websites” tab, inside that click plus button which is next to “Block These Websites” and add following
entry
fbcdn-video-a.akamaihd.net“,

Facebook videos are served from akamai CDN on many ISPs including mine , if this doesn’t work you need to put original Facebook video
URL or regular expression like below
^https?://video([A-Za-z0-9.-]*\.)fbcdn\.(net|com)/

Other useful regular expression can be found at here

 

block fb streaming

3) Save it and try Facebook video

If it works, you will see message similar to following. 🙂

 

Facebook video blocked

Older posts «

» Newer posts

Fetch more items