ERROR: Gimp is not able to open a PSD file in CMYK mode

When I try, gimp gives me the error:
Error loading PSD file: Unsupported color mode: CMYK

Opening this file is only possible with a conversion to rgb.
Use ImageMagick with the -colorspace switch ie.

convert myfile.psd -colorspace rgb myfile.xcf

ImageMagick is available also for windows and in portable release

Posted in Computers and Internet | Tagged | Leave a comment

How to PSEXEC a POWESHELL script/cmdlets

Sometime Enter-PSSession connecting to a remote computer is not working or simply not configured (check how to configure powershell for remote session).

Is possible to use PSEXEC (from sysinternals) launching POWERSHELL but the parameter “noninteractive” is required to run it without problem:

PsExec.exe \\RemotePC cmd /c "powershell -noninteractive -command c:\myscript.ps1"

Press enter to get back to command prompt after running it.

Posted in Computers and Internet | Tagged , , | Leave a comment

ERROR: a Powershell scheduled script with a Boolean argument do not run

The error you receive running the script with “powershell -file” is:

Cannot process argument transformation on parameter ‘Interactive’. Cannot convert value “System.String” to type “System.Boolean”, parameters of this type only accept booleans or numbers, use $true, $false, 1 or 0 instead.

It appears that powershell.exe does not fully evaluate script arguments when the -File parameter is used. In particular, the $false argument is being treated as a string value.

Instead of using -File you could try -Command, which will evaluate the call as script:

powershell.exe -NoProfile -Command .\Script.ps1 -Site Test -Interactive $false
Posted in Computers and Internet | Tagged | Leave a comment

Problem: AD group members attribute is not populated with the user Primary Group

Checking our “Domain Admins” group with powershell I discover a strange  behavior; running these 2 command I received 2 different results… some users are missing on first:

get-adgroup "domain admins" -property members | select -expandproperty members
Get-ADGroupMember "Domain Admins"

Investigating I discover that AD group members attribute is not populated with the user Primary Group. ADUC and Get-ADGroupMember are aware of that and show also Primary Group but LDAP query to members attribute not.

Check this: http://support.microsoft.com/en-us/kb/275523

Posted in Computers and Internet | Tagged , , | Leave a comment

How to Check Exchange connections from Outlook

A quick way to check which servers Outlook is communicating with is to use the Microsoft Exchange Connection Status dialog box.

Hold CTRL and right-click on Outlook icon on Notification area (near the clock) and click on “Connections status”

Posted in Computers and Internet | Tagged | Leave a comment

Windows Scheduler and IDLE Conditions

There is a nice doc from Microsoft regarding Idle Conditions: https://msdn.microsoft.com/en-us/library/windows/desktop/aa383561(v=vs.85).aspx

Useful to understand why you schedule is not running!

Creating a Task, on Conditions Tab you will find these options:

“Start the task only if the computer is idle for”: This means that the “Idle Condition” should me true for the time specified.

“Wait for Idle for”: If the idle timer (first option) is not met when the task is first triggered, the task will wait for the time specified before aborting the attempt.

Task_IdleCondition

On example this means the task will not start if the computer is not idle for at least one minute within an hour of the scheduled trigger.

Posted in Computers and Internet | Tagged | Leave a comment

How to configure Windows Time Service

First short description of AD time source hierarchy:

All members of an Active Directory domain are capable of synchronizing their clock to a domain controller -> Domain controller synchronize their clocks with the domain controller which holds the PDCe role in their domain -> PDCe’s in child domain synchronize their clock with the PDCe of the root domain of the forest.

Windows Time service is responsible for keeping a computer’s clock synchronized and can be controlled/configured by w32tm command line tool.

To force a computer to synchronize:

w32tm.exe /resync /rediscover /no_wait

To check if a computer is synchronizing:

w32tm /monitor

To check where the computer is getting its time:

w32tm /query /source
  • “Local CMOS Clock”: The computer is using the hardware clock on the computer as its time source. If you are using VMware, this means that the virtual machine is synchronizing to the VMware host.
  • “Free Running System Clock”: The computer is not using any external source, but depending on the time tick generated by the System Idle Process running on the computer.
  • “A hostname of a domain controller in the AD forest”: The computer is using a domain controller as either an NTP server or as the time source via Active Directory. To determine which, see “/query /configuration”, discussed later.
  • “A hostname of a computer running a NTP server”: The computer is using a non-Active Directory server running an NTP server as its time source.
  • “VM IC Time Synchronization Provider”: In this case, the computer is using Hyper-V virtualization services as its time source. Best practices from Microsoft recommend that you never use virtualization services (regardless of your hypervisor provider) as a time source for domain-joined computer; instead, you should depend on typical Active Directory synchronization methods.

To check the time source:

w32tm /query /configuration
  • “NTP”: the external time source is the NTP server specified by the NtpServer key
  • “NT5DS”: the external time source is the domain hierarchy
  • “NoSync”: there is no external time source
  • “AllSync”: the computer should use both the domain hierarchy and the manually specified NTP server as external time sources

The appropriate PDCe configuration is setting external peers:

w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:manual
w32tm /config /update
net stop w32time
net start w32time
w32tm /resync /rediscover

For an alternate NTP configuration you can modify this key : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer

adding some special flags to NTP source:

  • 0x01 SpecialInterval
  • 0x02 UseAsFallbackOnly
  • 0x04 SymmatricActive
  • 0x08 Client

Example:

time.windows.com,0x9 pool.ntp.org,0xa

The primary NTP server (flag 0x9) is Client (0x08) + SpecialInterval (0x01)
The second NTP server (flag 0xa) is Client (0x08) + UseAsFallbackOnly (0x02)

The PDCe has now to sources; the second one with flag “UseAsFallbackOnly” will be queried only if all other time server is not working.

If you use “SpecialInterval” you can overwrite the W32Time poll specifying a static interval using this key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval

For all domain-joined computer, the appropriate configuration is:

w32tm /config /syncfromflags:domhier
w32tm /config /update
net stop w32time
net start w32time
W32tm /resync /rediscover

VIA: https://support.microsoft.com/en-us/kb/816042, https://technet.microsoft.com/en-us/library/cc778879(v=ws.10).aspx, https://technet.microsoft.com/en-us/library/cc773263(v=ws.10).aspx

Posted in Computers and Internet | Tagged , | Leave a comment