Friday, 20 October 2017

Automatically Document Windows Server Roles and Features

Use XIA Configuration to automatically document all roles and features on all your servers running Windows Server 2008 and above.


The following information is documented for each role or feature:
  • Name
  • Numeric Identifier
  • Install State
  • Parent Numeric Identifier
  • Parent Unique Name
  • Unique Name

Use the reporting feature to query the install state of all the roles and features across your entire environment at once.


Find out more about documenting Windows servers >

Request a free trial >

Thursday, 19 October 2017

Fix 'File Access Denied - You'll need to provide administrator permission to move this file'

After performing some testing on one of my virtual machines, I somehow lost the ability to drag and drop files from my host machine to the vm, even though I was logged on as the Administrator.

Further investigation revealed that I could not drag and drop files from the root of my local drive to my desktop without the following User Account Control prompt appearing:

File Access Denied
You'll need to provide administrator permission to move this file


A similar prompt also appeared for folders:

Destination Folder Access Denied
You'll need to provide administrator permission to move to this folder



At first, I thought it might be a permissions issue but this checked out ok.

I then checked the policy settings and noticed the following policy was enabled

User Account Control: Admin Approval Mode for the Built-in Administrator account

This is located in Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options


After disabling this policy, I was able to drag and drop files freely between my host and vm.

Audit and Document your Windows Machine Devices

If auditing your environment is important to your organization and you need to check the status of the devices on your Windows servers and workstations, take a look at the network documentation tool XIA Configuration.

It scans all the Windows machines on your network then makes the configuration data of the devices on those machines available in either the web interface or PDF export.


XIA Configuration also includes over 200 reports so you can audit all the machines in your environment at once.  Reports can be exported to CSV for further analysis.

The following data can be audited for Windows machine devices:

Device Settings


  • Class
  • Class GUID
  • Device Status
  • PNP Device Identifier
  • Manufacturer
  • Device Class
  • Location

Driver Details


  • Driver Date
  • Driver Provider
  • Signed By
  • Driver Version
  • Inf Name

Find out more about XIA Configuration >


Wednesday, 18 October 2017

Fix 'A constraint violation occurred. (exception from hresult: 0x8007202f)'

When calling the System.DirectoryServices.DirectoryEntry.CommitChanges method, the following error can occur if one of the property values is too long or of the wrong type: A constraint violation occurred. (exception from hresult: 0x8007202f)

This can occur for example if you try to create a user account in Active Directory with a first name which is too long.

If you are using the user provisioning software XIA Automation and you enter an invalid value during the user creation process, this error will display.  You can also see the full exception in the trace log.

XIA Automation screenshot showing error 'A constraint violation occurred'

Solution


Ensure that the values you are using to create the user account are valid according to the Microsoft documentation for Active Directory i.e. the correct type and within the length constraints.

Monday, 16 October 2017

Automatically Document Remote Desktop and Remote Assistance Settings

If you have a business requirement to audit and document the remote desktop and remote assistance settings on the Windows PCs and servers on your network, use XIA Configuration to perform this task automatically.

Each Windows PC and server is automatically discovered and scanned.  The data can then be viewed in the web interface where you can also perform audits and run reports.


Or you can generate professional documentation with your own look and feel.



The following settings are documented:

Remote Assistance Settings


  • Allow Remote Control
  • Create invitations for Windows Vista or later
  • Enabled
  • Maximum Ticket Expiry


Remote Desktop Settings


  • Allow Connections
  • Connection Mode
  • Is Session Host
  • Licensing Mode
  • Security Group Name
  • Remote Desktop Users


Learn more about documenting Remote Desktop and Remote Assistance settings >

Request a Free Trial >

Friday, 13 October 2017

Stop Windows Modules Installer Worker Permanently

In an earlier post, I described how to stop the Windows Modules Installer Worker process when it is started by Windows Maintenance.

In this post, I describe how to stop Windows Modules Installer Worker from ever being started by Windows Maintenance.  As with my previous post, I would not do this on a live machine, however, it can be a pain on a test machine, particularly one that is only on from time to time as it seems to kick in as soon as you turn the machine back on.

Stop Windows Modules Installer Worker

Stop Windows Maintenance Modules Installer Worker from ever being started by Windows Maintenance tasks by downloading PSTools and running the following commands:


Server 2012 R2


psexec \\%computername% -s schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Maintenance Configurator" /disable

psexec \\%computername% -s schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Regular Maintenance" /disable

psexec \\%computername% -s schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Idle Maintenance" /disable


Server 2016 and Windows 10


psexec \\%computername% -s schtasks /change /tn "\Microsoft\Windows\DiskCleanup\SilentCleanup" /disable

psexec \\%computername% -s schtasks /change /tn "\Microsoft\Windows\Servicing\StartComponentCleanup" /disable

psexec \\%computername% -s schtasks /change /tn "\Microsoft\Windows\ApplicationData\DsSvcCleanup" /disable

psexec \\%computername% -s schtasks /change /tn "\Microsoft\Windows\WindowsUpdate\Automatic App Update" /disable


If you discover any other scheduled tasks that cause Windows Modules Installer Worker to start running, please do let me know in the comments.

Wednesday, 11 October 2017

List Installed Programs on Windows

Did you know you can use XIA Configuration to automatically get a list of the installed programs on all your Windows servers and workstations?  Read this article to find out how.

How to get a list of Installed Programs on Windows


1. Create a Windows Machine Scan Task


Create a Windows Machine scan task in the XIA Configuration Client.  In agent settings, ensure Installed Programs is set to Scan.


2. Scan the Windows Machines


Either start a scan manually or schedule a scan.  Once complete, check it was successful.

3. List Installed Programs


In the XIA Configuration Server, open a Windows machine item, navigate to Software > Installed Software to see a list of installed programs:


4. Run the Software Installation Report


You can also run the Software Installation Report under Windows Machine Reports in the Browse Reports section of XIA Configuration Server.


Installed Programs data

The Installed Programs data listed by XIA Configuration includes:
  • Name
  • Publisher
  • Install Date
  • Install Location
  • Install Source
  • Size
  • Version
  • Platform Type

Generate PDF

You can also export the list of installed programs as a PDF.


Find out more about XIA Configuration >