Profile cover photo
Profile photo
David Homer
18 followers
18 followers
About
Posts

Post has attachment
P/invoke CreateProcessWithLogonW causes Error 1058: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
If you're running the CreateProcessWithLogonW Win32 API command with P/invoke you may receive the following error Error 1058: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.   This can oc...
Add a comment...

Post has attachment
Can't copy and paste from a Barclays bank statement PDF (SECURED in the title bar)
You might find that when you try and copy and paste from a Barclays bank statement you're no longer allowed to do this. If you're trying to get a reference number out of the document this is infuriating as you end up having to try and copy a 16 digit number...
Add a comment...

Post has attachment
Get-Disk PowerShell cmdlet does not show dynamic disks.
We've been updating our Windows server documentation tool to use the newer Get-Disk cmdlets on Windows 2012 and above and found that when you configure a disk as dynamic The Get-Disk PowerShell cmdlet disappears the disk. It's interesting as the same thing ...
Add a comment...

Post has attachment
Get-LocalGroupMember PowerShell cmdlet issues - An unspecified error occurred: error code = 1789
We've recently been working on the new local account management PowerShell cmdlets and found an issue with the Get-LocalGroupMember cmdlet If a user group has a member that cannot be resolved normally most APIs will return just the SID of the account, and c...
Add a comment...

Post has attachment
How to relock a Bitlocker drive after you've unlocked it with PowerShell
If you're using Windows Server 2012 or above you can use PowerShell to relock a bitlocker drive that you have already unlocked Lock-BitLocker E: However if the drive is in use you may see this error Lock-BitLocker : Access is denied. (Exception from HRESULT...
Add a comment...

Post has attachment
Running start in a batch file or .cmd file displays a command prompt instead of running the application.
I've recently run into an issue whereby I'm trying to start several Visual Studio environments as another user with the runas command for remote testing. So I created a batch file with the runas command which then launches a second batch file that starts 4 ...
Add a comment...

Post has attachment
System.IO.File.ReadAllText method and Default encoding with Nano server
You may find that running the following command on Nano will fail [System.IO.File]::ReadAllText($path, [System.Text.Encoding]::Default) Exception calling "ReadAllText" with "2" argument(s): "Value cannot be null. This is because the Default encoding is not ...
Add a comment...

Post has attachment
**
We now have a review of XIA Configuration Server live on the 4SYSOPs web site https://4sysops.com/archives/xia-configuration-easy-network-inventory-and-documentation-solution/ 4sysops is an online community for IT professionals. Experienced IT pros cover th...
Add a comment...

Post has attachment
PowerShell Get-ItemProperty cmdlet returns garbled registry values with artifacts, regedit shows ellipses ("...") after the registry value.
We've recently stumbled upon a problem with reading registry entries using PowerShell where the Get-ItemProperty or Get-Item cmdlet returns garbled registry values with artifacts. You'll notice that Regedit shows ellipses ("...") after the registry value. F...
Add a comment...

Post has attachment
C#.NET Winforms PropertyGrid reports "Properties Window", "Index was outside the bounds of the array".
You may find when using the PropertyGrid in a C#.NET Winforms application that the PropertyGrid displays an alert with the title "Properties Window" and the message "Index was outside the bounds of the array" when you are editing a collection. This is a som...
Add a comment...
Wait while more posts are being loaded