September 27

Powershell Script to Grand user Home Folder permissions

$OU=”OU=kindergarten,OU=sales,OU=Students,OU=Users,OU=MonSchool,OU=Schools,OU=abcdUsers,DC=abcd,DC=ef,DC=com

$Group1=”CN=Students Ktest,OU=Groups,OU=abcUsers,DC=abcd,DC=ef,DC=com

Get-ADUser –SearchBase $OU –SearchScope 1 –LDAPFilter “(memberOf=$Group1)” | ForEach-Object { icacls “$(Join-Path ‘\\servera\sharedfolder\’ $_.SamAccountName)” /grant “$($_.SamAccountName):(OI)(CI)F” }

* Group1 is the group that the users belong to

NOTE: You can change the SearchScope to search the current path and all the children paths.
-SearchScope

Specifies the scope of an Active Directory search. The acceptable values for this parameter are:

  • Base or 0
  • OneLevel or 1
  • Subtree or 2

A Base query searches only the current path or object. A OneLevel query searches the immediate children of that path or object. A Subtree query searches the current path or object and all children of that path or object.

March 21

User Can’t Access Windows 2016 or 2012 Workgroup Shared Folders and Printer

Problem:

After creating share on Windows 2016 server (workgroup enviroment), the users can not access the shares. The permissions are correct.

It say “\\machinename is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.”

Solutions:

Go to “Change advanced sharing settings”

Check “turn off password protected sharing”

Category: Windows | LEAVE A COMMENT
March 5

Permanently Disable Windows 10 Update

Option 1  Do it manually. 

Step 1  Disable 4 Windows services as shown in the pictures. (create a fake user account abc, and delete it after.)

  • Delivery Optimization
  • Background Intelligent Transfer Service
  • Windows update
  • Update Orchestrator Service

 

This step is very important, make sure to type in an incorrect password. The idea is that the service can not start if the credential is wrong.

Windows 10 updates will be disabled if those services can not start.

 

Step 2 Open Task Schedule, and

  • delete scheduled Windows update items and Windows update folder.
  • delete UpdateOrchestrator items and UpdateOrchestrator folder

 

Step 3 run cmd as Administrator     sc triggerinfo wuauserv delete

Option 2 Using a software. 

Run the Windows update blocker program Win10UpdateStopper.

You can also download it from the original website

Category: Windows | LEAVE A COMMENT
October 14

Windows 7 Windows Explorer Stopped Working When Copy File From USB Drive

Problem: 

Windows 7:  Windows Explorer has Stopped Working When Copy File From a USB Drive.

Solutions: Uninstall MyWinLocker

Or you can download ShellExView from Nirsoft and find out which extension causes the problem by disabling it.

See the picture below.

Sort the extensions by clicking “Microsoft” and right click the none Microsoft extension to disable it, until find the one that causes the problem.

Image

Category: Windows | LEAVE A COMMENT
September 11

A Windows 7 PC Cannot Join Domain “the network path was not found”

Problem: A windows 7 computer cannot join domain. It says “the network path was not found”. All other computers can join the Domain with no problems.

Solutions:

I have searched online, none of the following suggestions works.

  • Check the DNS is pointed to domain controller.
  • Make sure  the TCP/IP NetBIOS Helper Service is running on the client computer
  • Disable firewall, or uninstall antivirus software.

It turns out that the client for Microsoft Networks has to be installed and checked.

 

 

August 3

Windows 10 Start Menu Not Working in One Account But Working on A New Created Account

Problem:  

One user can not use Start Menu and settings. So I created a test account, the test account has no problem use stat menu and settings

Solutions:

If a new created user account has no problem to use the start menu and settings, that tells me that the Windows system might be  OK. The “bad” user account might have a corrupted profile.

1: Log in as the new created user.

(You need to create a second Admin account to do this.) You need to enable “show hidden files….” and disable “Hide protected operating system files”

 

2: Go to c:\users\bad-user name\appdata\local\Microsoft\Windows find UsrClass.dat  rename it UsrClass-old.dat

3: Restart the computer

The problem should be resolved.

 

 

Category: Windows | LEAVE A COMMENT