Troubleshooting GPO Drive Maps Preferences – Error Code 0x80070035

Hi guys, Some time ago I got an error while configuring GPO Preferences to map a network drive using item level targeting. The error was "0x80070035" the network location can not be found. The resolution of this issue was to remove the last slash " / " of the UNC share and voila! The GPO...

Read More →

Powershell – How to Remove user from all groups except domain users

First step – get groups that domain user is in… Get-ADPrincipalGroupMembership -Identity  user | Format-Table -Property name Second step – remove member from all groups accept domain users $ADgroups = Get-ADPrincipalGroupMembership -Identity  user | where {$_.Name -ne "Domain Users"} Remove-ADPrincipalGroupMembership -Identity  user -MemberOf $ADgroups -Confirm:$false

Read More →