-
WMI: Access is denied. (Exception from HRESULT: 0×80070005)
Posted on February 19th, 2008 1 commentWe have one computer at work that I couldn’t send a Remote Assistance request to and whenever I try to query it using WMI and PowerShell I get the following error message:
Get-WmiObject : Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))
The problem turned out to be DCOM. For some reason it got disabled.
To change its settings, do the following:
- Go to Start -> Run, type in dcomcnfg.
- Go to Component Services -> Computers.
- Right-click on My Computer and select Properties.
- Go to the Default Properties tab.
- Make sure that Enable Distributed COM on this computer is checked.
- Compare the settings to a computer that is working properly and make the necessary changes. Compare the settings for the COM Security tab as well.
- Reboot the computer and try it again.
Credit goes to this website where I found this solution.
-
12 New Microsoft Security Updates This Tuesday
Posted on February 10th, 2008 No commentsIt’s that time of the month again, the second Tuesday of every month known as “Patch Tuesday,” the time when Microsoft releases its security updates.
According to Microsoft’s website, they will be releasing 12 new security updates this Tuesday, February 12. Seven considered “Critical”, five marked as “Important.”
Critical (7) – Software Affected:
- Windows
- Internet Explorer
- Office
- Visual Basic
- VBScript
- JSCript
Important (5) – Software Affected:
- Windows
- Active Directory
- ADAM
- IIS
- Office
- Works
- Works Suite
Happy Patch Tuesday fellow systems admins, let’s hope nothing breaks!
-
BDD 2007: Can’t connect to the deployment share
Posted on January 29th, 2008 4 commentsError message: “A connection to the deployment share (\\server\deployment_share) could not be made. The deployment will not proceed.”
I ran into this problem this morning when trying to load Windows XP on a new computer using Business Desktop Deployment and Windows Deployment Services. It turned out that the reason for this is because my WinPE boot image didn’t have the network drivers for the new computer (when you type in ipconfig /all in the command prompt in WinPE, you’ll notice that there’s no IP assigned).
I fixed this problem by doing the following:
- Download the network drivers for the computer having this issue.
- Open the Deployment Workbench.
- Add the network drivers to Distribution Share->Out-of-Box Drivers.
- Go to Deploy->Deployment Points, select your deployment point and click Update. This will update your WinPE boot image (LiteTouchPE_x86.wim) to include the new drivers.
- Open Windows Deployment Services and replace your boot image.
- Reboot the client machine and boot in WinPE again, it should now be able to connect to the deployment share.
-
PowerShell Cheat Sheet
Posted on January 3rd, 2008 No commentsI found this PowerShell Cheat Sheet a while back when I was looking for tips on PowerShell. It contains commands that you’ll be using a lot when working with PowerShell, and also examples on how to use them. Very helpful especially if you’re just starting to learn it. Also check out the PowerShell team blog where I got this document from.
-
Useful PowerShell Scripts
Posted on January 2nd, 2008 No commentsBelow are some simple PowerShell scripts that I find pretty useful in Windows administration:
Note: For the scripts that connect to a remote machine, you will need to run PowerShell as a user with Administrator privileges to that machine.
Aliases:
- Gwmi = Get-WmiObject
- fl = Format-List
- ft = Fomat-Table
- -Comp = -ComputerName
Get a list of installed applications for a specified machine (32-bit OS only).
Gwmi Win32_Product -Comp computer_name | Sort name | ft name, version, installdateGet the Service Tag (Dell computers) and BIOS version for a specified machine.
Gwmi Win32_BIOS -Comp computer_nameGet the computer information for a specified machine (Domain, Manufacturer, Model, Name, Owner, Memory).
Gwmi Win32_ComputerSystem -Comp computer_name | flGet storage drive information for a specified machine (Hard Drive, Floppy, CD/DVD-ROM).
Gwmi Win32_LogicalDisk -Comp computer_name | flGet the logged on user name for a specified machine.
Gwmi Win32_Computersystem -Comp computer_name | Select Name, UserNameGet the running processes for a specified machine.
Gwmi Win32_Process -ComputerName computer_name | Sort processname | ft processname, ws, executablepath


Recent Comments