Friday, August 3, 2018

How to Configure Folder Redirection in Windows Server 2016



How to Configure Folder Redirection in Windows Server 2016
What is Folder Redirection? 
This article shows you how simply you can redirect folder in Windows Server with group policy. The folder redirection is the way to keep a profile folders to a network location or other location in the local computer. Typically user profiles and settings are stored in local profile. By redirecting folders, you can  access to data regardless of which computers you are logs in.
In addition to the immediate benefit of having that data on a file server that is much easier to keep backed up, the user also gets the benefit of being able to go to multiple computers in your organization and still have access to their data. Using the default Windows settings and the default share settings on your file server, these redirection will be even made available offline automatically for your users.
The Policy-Based QoS node
This quality of service (QoS) node, known as the Policy-Based QoS node, defines policies that manage network traffic. For example, you might want to ensure that users in the Finance department have priority to run a critical network application during the end-of-year financial reporting period. You can do that by using the Policy-Based QoS node.
In the User Configuration node only, the Windows Settings folder contains the additional Folder Redirection node. With folder redirection, you can redirect user data and settings folders such as AppData, Desktop, Documents, Pictures, Music, and Favorites from their default user profile location to an alternate location on the network, where you can manage them centrally.
Infrastructure Requirement :
·         1 DC SERVER (EXAMPLE-DC01) 
·         Client PC running Windows 10 (CLIENT-10)
Lets get started.
01 – Create a Shared Folder
1 – On EXAMPLE-DC01, on the taskbar, click the File Explorer icon, In the navigation pane, click This PC. 

2 – In the details pane, double-click Local Disk (C:), and then on the Home tab, click New folder.
3 – In the Name text box, type Redir, and then press Enter.
2.png
3.png
4 – Right-click the Redir folder, click Share with, and then click Specific people.
4.png
5 – In the File Sharing dialog box, click the drop-down arrow, select Everyone, and then click Add.
6.png
6 – For the Everyone group, click the Permission Level drop-down arrow, and then click Read/Write.
5.png
7 – Click Share, and then click Done.
7.pngClose the Local Disk (C:) window
02 – Create a GPO to redirect the Documents folder
1 –  In Server Manager, click Tools and then click Group Policy Management.

19
2 – In the navigation pane, right-click the Windows.ae domain, and then click Create a GPO in this domain and Link it here.
8.png
3 – In the New GPO dialog box, in the Name text box, type Folder Redirection, and then click OK.
9.png
4 – In the navigation pane, right-click Folder Redirection, and then click Edit.
10.png
5 – In the Group Policy Management Editor window, under User Configuration, expand Policies,expand Windows Settings, and then expand Folder Redirection.
11.png
6 – Right-click Documents, and then click Properties.
12.png
7 – In the Document Properties dialog box, on the Target tab, click the Setting drop-down arrow, and then select Basic-Redirect everyone’s folder to the same location.
13.png
8 – Ensure that the Target folder location box is set to Create a folder for each user under the root path.
14.png
9 – In the Root Path text box, type \\EXAMPLE-DC01\Redir, and then click OK.
15.png
10 – In the Warning dialog box, click Yes.
16.pngClose the Group Policy Management Editor
03 – Test Folder Redirection
1 –  Sign in to CLIENT-10 as Windows\Administrator with the password asd@123. 

32
2 – Right-click Start, and then click Command Prompt.
5
3 – In the Command Prompt window, type the following command, and then press Enter:
Gpupdate /force
17.png
4 – In the command prompt window, when prompted, type the following, and then press Enter:
Y
18.png
5 – Sign in to CLIENT-10 as Windows\Administrator with the password asd@123.
32
6 – On the taskbar, click the File Explorer icon. 

19.png
7 – In the navigation pane, in the Quick Access section, right-click Documents, and then click Properties.
20.png
8 – Verify that on the General tab, the Location field has a value of \\EXAMPLE-DC01\redir\Administrator.
21.pngIf this is not successful, repeat steps 2 through 7, and then check the redirection once again.
9 – Sign out of CLIENT-10.


Friday, July 13, 2018

USB thumb drive issue can be fix

Use following command in windows command prompt.

DISKPART> list

Microsoft DiskPart version 10.0.16299.15

DISK        - Display a list of disks. For example, LIST DISK.
PARTITION   - Display a list of partitions on the selected disk.
              For example, LIST PARTITION.
VOLUME      - Display a list of volumes. For example, LIST VOLUME.
VDISK       - Displays a list of virtual disks.

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          465 GB      0 B
  Disk 1    Online           30 GB    29 GB

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> format fs=fat32 quick

  100 percent completed

DiskPart successfully formatted the volume.

DISKPART>

Thursday, June 29, 2017

Factory default Cisco Device

CiscoSwitch#write erase
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
CiscoSwitch#del flash:/vlan.dat
Delete filename [vlan.dat]?
Delete flash:/vlan.dat? [confirm]
CiscoSwitch#reload


Would you like to enter the initial configuration dialog? [yes/no]:no

switch#wr

Friday, June 23, 2017

Delete Old version of IOS from the device

Switch#sh flash

Directory of flash:/

    2  -rwx        3096   Mar 1 1993 00:01:40 +00:00  multiple-fs
    3  -rwx        1934   Mar 1 1993 00:01:40 +00:00  private-config.text
    4  -rwx        1781   Mar 1 1993 00:01:40 +00:00  config.text
    5  -rwx    15072310   Mar 1 1993 00:24:49 +00:00  c3560-ipbasek9-mz.122-58.SE2.bin
    6  -rwx    11752155  Jun 28 2011 08:03:25 +00:00  c3560-ipbasek9-mz.122-55.SE1.bin

32514048 bytes total (5680128 bytes free)
S
our old version of IOS is c3560-ipbasek9-mz.122-55.SE1.bin

Login in to cisco device using console

in Enable mode, put following command to delete old IOS image file/directory

#delete /recursive /force flash:/c3560-ipbasek9-mz.122-55.SE1.bin

#wr
#reload

CISCO IOS Update

Establish IP communication with Cisco device to connected PC.
If cisco to pc not pinging but you have setup ip correctly then disable firewall in your windows pc.

download tftp server, run tftp server in your PC which is connected with the cisco device.

PC IP is 192.168.1.1
Net mask 255.255.255.0

copy new version of IOS to tftp server root folder, ex. C:\TFTP-Root\
as example we assume our new version of IOS is c3560-ipbasek9-mz.122-58.SE2.bin

Login in to cisco using console cable


>en
#copy tftp: flash:
Address or name of remote host []? 192.168.1.1
Source filename []? c3560-ipbasek9-mz.122-58.SE2.bin
Destination filename [c3560-ipbasek9-mz.122-58.SE2.bin]?
Accessing tftp://192.168.1.1/c3560-ipbasek9-mz.122-58.SE2.bin...
Loading c3560-ipbasek9-mz.122-58.SE2.bin from 192.168.1.1 (via GigabitEthernet0/1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 15072310 bytes]

15072310 bytes copied in 337.180 secs (44701 bytes/sec)

Switch#sh flash

Directory of flash:/

    2  -rwx        3096   Mar 1 1993 00:01:40 +00:00  multiple-fs
    3  -rwx        1934   Mar 1 1993 00:01:40 +00:00  private-config.text
    4  -rwx        1781   Mar 1 1993 00:01:40 +00:00  config.text
    5  -rwx    15072310   Mar 1 1993 00:24:49 +00:00  c3560-ipbasek9-mz.122-58.SE2.bin
    6  -rwx    11752155  Jun 28 2011 08:03:25 +00:00  c3560-ipbasek9-mz.122-55.SE1.bin


our old version of IOS is c3560-ipbasek9-mz.122-55.SE1.bin
our new version of IOS is c3560-ipbasek9-mz.122-58.SE2.bin

Now we need to boot our cisco device using new IOS.

(config)#boot system flash:/c3560-ipbasek9-mz.122-58.SE2.bin
(config)#^Z

#wr
#reload
now you can check current version after reload by using following command

#sh ver


#sh ver
Cisco IOS Software, C3560 Software (C3560-IPBASEK9-M), Version 12.2(58)SE2, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Thu 21-Jul-11 01:44 by prod_rel_team

ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE (fc1)

Switch uptime is 49 minutes
System returned to ROM by power-on
System image file is "flash:/c3560-ipbasek9-mz.122-58.SE2.bin"


CISCO IOS IP assign


#enable
#configure terminal
#interface vlan1
#ip address 192.168.1.11 255.255.255.0
#no shutdown
#exit

ctrl + z
wr