Posts

Admin Group Policy fails to apply

Problem:  Group Policy doesn't apply, but gpresult doesn't show any problem. Some Policies are working on the same computer The same policy is working on other computers The windows log has an error with something like this: The client-side extension could not remove computer policy settings for ' ' because it failed with error code '0x8007000d The data is invalid.' See trace file for more details. Solution: Delete all files in this path:  C:\ProgramData\ Microsoft\Group Policy\History In Windows XP: D:\Documents and Settings\All Users\Application Data\Microsoft\Group Policy\History In a command window run "gpupdate /force" I ran into a problem where our administrator group policy was not applying for some reason, while other policies were applying. I could not find any information in gpresult or in any group policy settings or information. The policy is the same that is on all the other machines in the domain, and was working, except f...

Export Domain Users to CSV with PowerShell

Image
If you would like to create a list of all domain users in excel with a powershell script you are in luck. Quest software has created some pretty awesome tools to manage Microsoft Active Directory. Here's how to do it: 1.   You'll need to install the Quest ActiveRoles management shell v. 1.4 or later, located here:  http://www.quest.com/powershell/activeroles-server.aspx 2. Create a PowerShell file with the following script. Basically, just copy this text into a text file and rename the extension to .ps1. #This script requires Quest ActiveRoles management shell v.1.4 or later and Powershell to be installed. http://www.quest.com/powershell/activeroles-server.aspx #The script may be run on any machine that is bound to the domain and actively connected. You do not have to be a domain administrator. #Two files will be created. One CSV with results and one TXT log file. $strTimestamp =  [string](Get-Date -format "yyyy-MM-dd_hh-mm") start-transcript DomainScript...

Export Domain Admins to CSV with Powershell

It would be nice to be able to run a PowerShell script to query certain domain groups in Microsoft Active Directory, and write them to .CSV files for easy review in excel. Here's one way to do it: 1. You'll need to install the Quest ActiveRoles management shell v. 1.4 or later, located here:  http://www.quest.com/powershell/activeroles-server.aspx 2. Create a text file with .ps1 extension, and the following text. You can review the comments in the script to see what each part does, or just google the commands you don't know. Quest has some documentation last time I checked. #the AD groups that will be queried. These are groups that are considered domain admins $aGroups = @("Administrators", "Domain Admins", "Server Operators", "Enterprise Admins", "Account Operators", "Backup Operators", "Group Policy Creator Owners", "Schema Admins",  "Domain Controllers") #where the resu...

Windows 7 Shared folder on All Users Desktop

Image
This is very similar to a previous post that I've done, but I thought it is worth mentioning since this is done differently than XP. I wanted to create a shortcut to a shared folder for all users that log in to a Windows 7 machine. In XP, you can just create a shared folder in shared documents, and create a shortcut to it in the all users desktop. In Windows 7 you can't do this, so you'll have to create a symbolic link. 1. Create the folder you want to link. I just created a folder named "Shared" in C:\Users\Public\Documents. Everyone already has access to this folder, but it's not super easy to find. 2. Open the command prompt as administrator. (find "cmd" and right-click then click run as admin, you'll see administrator in the window title) 3. Run this command to create the link:  "mklink /J C:\Users\Public\Desktop\Shared C:\Users\Public\Documents\Shared"

Change your blog URL to dot com

Image
I haven't had a ton of experience with blogs, so I wan't sure if I could purchase a domain name and still have my blog hosted by blogspot. I was thinking that I would have to purchase from godaddy.com and do some funny business like redirecting to my blog website, or move the content and possibly pay for server space. I've seen some solutions say that you need to move where your hosted content is if you want to get a .com, .net or something similar. Google has made it super easy to change the URL (if you purchase the domain from them). Domains from Google are $10/year which is reasonable. I don't know if WordPress or other blogging sites have options to purchase domains, but it only makes sense. The good news is that the old URL and new URL both work, so your countless hours of SEO won't be wasted. This website is available from both places: www.yanzzee.com yanzzee.blogspot.com Making the change was super easy, but was still new to me, so this is what I did: ...

Move Windows 7 Users folder to another drive

Image
If you've already installed your operating system and want to move the entire Users folder to another drive use these instructions. This will create a symbolic link which will leave the operating system using the same path to avoid breaking anything pointed to the Users through the C drive. You will still be able to get to this directory through the normal C:\Users path. This is an alternative to making changes with the unattend.xml file on installation. Moving the Users Folder 1. Copy C:\Users to your secondary drive, or wherever you want it to be located. This works best if you boot into a Linux disc or some other boot drive since windows will lock files while you are logged in. If you have a WinPE disc, you can make all these changes at once. 2. Rename, delete, or move the original folder after making sure that the files have copied. It is difficult to rename that folder while you are logged in to the operating system, so I would do this step while booted to another drive....

Remove Ads from most websites

Image
The web is a lot nicer without ads all over the place. There are a few tools out there that are designed to remove ads from your web experience, some more functional than others. I've tried a few, and by far, the best is Ad-block plus which is only on Firefox. There's an add-on in Chrome called ad-sweep, but I've tested, and there's still a lot of ads that come through. Too bad, since I really like Chrome otherwise. Ad-Block Plus is easy to install, so I'll just direct you to their website: http://adblockplus.org/en/ Alternatively, you can just click tools, add-ons, get add-ons, and search for "ad-block plus". You'll want to subscribe to the "EasyList" to get current lists of ad urls. You can temporarily disable it from the icon that it puts in your web browser. Typically I hate adding toolbars or anything to my web browser, but this isn't that big, and is a must since the only thing more annoying than toolbars is ads. Below is an e...