Skip to main content

Posts

Showing posts from March, 2017

Domain Computer takes a long time to login

Login process should be quick and fast, so every user will be happy and start the day smoothly. But not every day is a new year’s day and there are times that things will just go south and some issues will surface. Enabling verbose login in local group policy will definitely help to troubleshoot which part of the login process the system halts and takes a long time to process. Folder redirection for some reason will cause an issue that will take time to load the desktop or causes a login issue. There are quite a lot of reasons why a GPO takes time to process, and causes login issue. But if a computer or workstation has been working fine and all of a sudden gives a logon issue; no changes has been made on the server or GPO. Then an issue could occur at the workstation or client side. One solution that might work on this kind of scenario is to open an elevated command prompt and issue this command on the problematic user computer: Netsh winsock reset ...

PowerShell copy file, link or folder to users’ desktop

Deploying a shortcut link, file or folders can easily be done via group policy preferences. Or it can also be done using PowerShell as logon or start up script. A one liner code snippet to deploy a file, a shortcut links or a folder to user’s desktop. Copy a file: copy-item "\\shared_folder\files_2be_copied.txt" "c:\users\public\desktop" Copy a shortcut link to user desktop: copy-item "\\shared_folder\shortcut_file_2be_copied.lnk" "c:\users\public\desktop" If a link or shortcut which is a network path, just need to ensure that the permissions is set correctly or else the link will be deployed but still unable to access due to permission issue.   Copy a folder: copy-item "\\shared_folder\folder_2be_copied" "c:\users\public\desktop" -Container -Recurse Above command will copy the whole folder to the user's computer, if space is an issue then a shortcut to the folder would be desirable. ...