Failed to run Task Sequence – error 0x80004005 in SCCM

During an ordinary OS Deployment, I unexpectedly faced the following error:

Failed to Run Task Sequence
An error occurred while retrieving policy for this computer (0x80004005). For more information, contact your system administrator or helpdesk operator.
80004005

Since the sysadmin was me, myself and I, I quickly realized I was the only one to fix this issue :)

The solution was simple. The error occurred on a VM. A very common problem is incorrect date and time. And also in this case, the date was incorrect.
Press F8 to open a command prompt. Type “date” and fill in the current date. Type time to verify the time is correct. Then restart your machine and try again.

Read More

Copy all users from one group to another

Just because I always have to search for this script, and Always need to test the script to verify integrity, here’s the script that WORKS.
You only have to replace the value of $sourcegroup and $targetgroup.

Cheers!

 

Read More

Resource x referenced in attribute displayName could not be found in RSOP

While troubleshooting some group policy issues, I encountered the following error during RSOP.msc (Resultant Set of Policies):

Resource ‘$(string.SUPPORTED_Vista_through_Win7)’ referenced in attribute displayName could not be found. File \*\sysvol\*\Policies\PreviousVersions.admx, line 11, column 111.

In Dutch:
Kan bron ‘$(string.SUPPORTED_Vista_through_Win7)’ waarnaar wordt verwezen in kenmerk displayName niet vinden. Bestand \*\sysvol\*\Policies\PreviousVersions.admx, regel 11, kolom 111

Read More

Granting access rigths to local servers by using AD groups

A small project just came along. Access to Windows servers had to be restricted by user groups. Two types of users should be served: those needing admin rights, and those needing RDP permission. Management should be done from a central location (= Active Directory).

I wrote a simple script that does the following:

Harvest all Windows servers, filtered by name For each server, check whether Active Directory groups for permissions (Admin and RDP) already exist If so, do nothing If not
  • create the Active Directory Groups in the right OU
  • add the AD Groups to the local groups of the specific server. In my case: local group “Administrators” and local group “Remote Desktop Users”

Read More