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
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.
How To Find out Computer Startup And Shutdown History In Windows
Method 1
Check event log, and look for 6005 and 6006
Method 2
Go to Nrisoft and download TurnedOnTimesView v1.35
Ping can’t resolve a Name, but Nslookup can
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”
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
windows 10 update keyboard and mouse not working KB4074588
Please see this link
Outlook Can Open Exported PST Files, but Can Not View the Emails.
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.
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.