Importing modules fails for C#.NET application - file cannot be loaded...
When you're tying to import a PowerShell script into a C#.NET application you may see an error like this File C:\Program Files\WindowsPowerShell\Modules\AzureRM\4.4.0\AzureRM.psm1 cannot be loaded...
View ArticleDocument Azure tenants with Microsoft Live accounts or multi-factor...
Our network and cloud documentation tool XIA Configuration is getting a new update.As our product runs as a Windows service customers have previously had issues when trying to scan an Azure environment...
View ArticleAn error has occurred for task 'name'. Error message: The following error was...
When you create a scheduled task in Windows you notice that the Send an e-mail and Display a message tasks are marked as "deprecated".You can no longer create these task types and the following error...
View ArticleProblems and bugs with the Windows Task Scheduler
So having worked with the Task Scheduler Library in Windows over the last few weeks it's a real problem area of WindowsI've already mentioned the issue that deprecated features still appear in the user...
View ArticleNot all scheduled tasks show up when running Get-ScheduledTask, certain tasks...
When you run the Get-ScheduledTask command you notice that some of the tasks are missing, however you can see these tasks in the Task Scheduler Library.This can be caused if you have UAC enabled or are...
View ArticleWindows Task Scheduler - Value does not fall within the expected range.
When you create a scheduled task trigger using the Windows Task Scheduler you may see the error "Value does not fall within the expected range".Whilst this looks like a serious error. The issue appears...
View ArticleGet-WebBinding PowerShell cmdlet gives "Value does not fall within the...
When using the Get-WebBinding PowerShell you may see the error "Value does not fall within the expected range" error if any of the bindings use the central certificate store (CCS).Value does not fall...
View ArticleRead a REG_EXPAND_SZ value from the registry using PowerShell
The Get-Item PowerShell cmdlet is nice and easy to use to get a registry key or value. Here's how we get a key.$key = Get-Item -Path "Registry::HKEY_LOCAL_MACHINE\Software\TestKey"But if you want to...
View ArticleThe program can’t start because MSVCR120.dll is missing from your computer....
The program can’t start because MSVCR120.dll is missing from your computer. Try reinstalling the program to fix the problem.If you see this problem you need the Visual C++ Redistributable Packages for...
View ArticleThe WINS settings of the Win32_NetworkAdapterConfiguration class do not...
It seems there is a bug in Windows 10 that if you change the WINS primary or secondary IP addresses in the user interface these are not updated immediately in the Win32_NetworkAdapterConfiguration WMI...
View ArticleC#.NET Winforms PropertyGrid reports "Properties Window", "Index was outside...
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...
View ArticlePowerShell Get-ItemProperty cmdlet returns garbled registry values with...
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...
View ArticleXIA Configuration Server reviewed on the 4SYSOPs web site
We now have a review of XIA Configuration Server live on the 4SYSOPs web sitehttps://4sysops.com/archives/xia-configuration-easy-network-inventory-and-documentation-solution/4sysops is an online...
View ArticleSystem.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...
View ArticleRunning start in a batch file or .cmd file displays a command prompt instead...
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...
View ArticleHow 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 unlockedLock-BitLocker E:However if the drive is in use you may see this...
View ArticleGet-LocalGroupMember PowerShell cmdlet issues - An unspecified error...
We've recently been working on the new local account management PowerShell cmdlets and found an issue with the Get-LocalGroupMember cmdletIf a user group has a member that cannot be resolved normally...
View ArticleGet-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 dynamicThe Get-Disk PowerShell cmdlet...
View ArticleCan't copy and paste from a Barclays bank statement PDF (SECURED in the title...
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...
View ArticleP/invoke CreateProcessWithLogonW causes Error 1058: The service cannot be...
If you're running the CreateProcessWithLogonW Win32 API command with P/invoke you may receive the following errorError 1058: The service cannot be started, either because it is disabled or because it...
View Article