Windows 7/10 + Terminal + SmartCard Redirection with XenDesktop

Hi everyone

In some instance you might have to use a smartcard inside a windows session, using the smartcard in Internet Explorer, not to login to the VM, it’s a simple scenario, but in some occasion it can be a headache.

Imagine you have some terminal;

That will force you to do a redirection of the USB device;

That way with a Wyse;

Device=vusb ForceRedirect=0x08E6,0x0000,0x00,0x00,0x00 (You have to replace the ID with the Smart Card ID you have)

Now if you connect to a Windows’s OS hosted with XenDesktop you will have another problem, the VDA’s agent badly handle the said smartcard, thus you have to remove that CtxHook

You simply erase the folder Smart Card Hook

3-20-2018 9-33-56 AM

You reboot the Windows session, and voila, the next time you will have to use your smartcard in Internet Explorer the prompt will display and work as expected !

Win8PIN

 

 

Advertisement

Windows 7/10, vSphere 5.5+, Citrix Desktop Studio Power State Unknown

Hi everyone

In your vSphere do you happen to have Windows 7 or 10 streamed VM that got in a reported as in an Unknown Power State ? if yes please follow my tip.

From that screen you remove that VM from your DDC inventory.

3-22-2018 2-54-02 PM

On the vSphere you remove it too from the inventory, don’t delete from disk

3-22-2018 2-54-29 PM

You click to browse your datastore

3-22-2018 2-55-05 PM

On your VM .vmx you right click to

3-22-2018 2-55-27 PM

You follow that wizard

3-22-2018 2-55-36 PM

Now you return in the DDC, you need to re-add that machine

3-22-2018 2-58-31 PM

In your desktop group your re-add it too;

3-22-2018 2-58-51 PM

 

Now both system will be syncro !

 

 

Logon Failure: The target account name is incorrect

Hi everyone

Today I stumbled into a bug;

From a DC to another DC when I try to naviguate to the server fileshare I got that error;

Logon Failure: The target account name is incorrect

I checked the DNS’s console, and from the faulty DC the console don’t open too.

After checking all around, the DFS is dead, the server is no more responding to anything and oh well, it’s tombstone.

tombstone

At that point first thing I did is;

net stop kdc

After that a netdom;

netdom reset passwd /Server:DC2 /UserD:domain\administrator /PasswordD:*

netdom reset passwd /Server:DC2 /UserD:domain\administrator /PasswordD:*

Type the password associated with the domain user:
The machine account password for the local machine has been successfully reset.
The command completed successfully.

I did a restart, now the DNS’s console open, but I still got a account error, thus I run the netdom against the other DC as well, another restart and voila! It work as expected !

 

A good article related to mine is there; Domain controller is not functioning correctly

 

 

 

DNS Server Service – Error 1717: The interface is unknown

Hi everyone

Yesterday I stomped into a new bug, I wanted to share it with you guys.

After some Windows Update on a Server 2008 R2, I got that wonderful message from the service manager for the DNS server service:

Windows could not start the DNS Server service on Local Computer. 
Error 1717: The interface is unknown.

image_thumb_85

After some research I found this blog post and some Microsoft KB that talk about the EventLog that can have bad permission, thus I resetted those permission:

Per the MS KB, it’s those I need to set: (KB there: Error message when attempting to start the Windows Event Log Service: “Access denied”)

Restore the default permissions on %SystemRoot%\System32\winevt\logs.

Authenticated user – List folder/read data, Read attributes, Read Extended attributes, Read permissions
Administrators – Full control 
SYSTEM – Full control 
EventLog – Full control

After that, the service still give me an Access Denied 5 error, now I simply moved all EventLog file from that folder to a backup folder, and I tried to restart the eventlog service, and now it was working ok !

64102

After that change the DNS Server Service was able to start with the eventlog ! 🙂

 

 

Image took from there and there

 

Migrating files from an Active Directory Domain to another, unblocking the files ?

Hi everyone

Today I will discuss a small tip used when you migrate a file server to another domain.

The goal is to prevent all user to see the warning that file can be dangerous, as the client OS detect and treat that old domain as a internet domain, not an internal’s domain when the migration is finished.

An easy way is with Unblock-File commandlet from powershell.

Naviguate into your server, and issue that powershell command:

Get-ChildItem c:\path -recurse | Unblock-File

unlockfiles

That will prevent that dialog from all the files:

1425.FilePropertiesUnblock

 

Enjoy the small tip

 

 

Active Directory: Reset the clock on an expired password for an account

Hi everyone

Ever wondered how to re-activate an old Active Directory account and prevent a password change directly ? Like on a return paternity / maternity leave.

It’s really easy to do or script that way 🙂

pwdLastSet attribute is used to calculate the password age.

The value is protected, and the only value you can set there is 0 or -1.

The value you look for is -1, the system will put the pwdLastSet to the current date/time. Thus the 90 days, or any defined time period, will start again from the start.

0 would do the opposite, it would expire the password right now.

You set it to 0, manually or with a script, you then set it to -1 and uncheck the Never Expire option after for the account.

An example when used:

Before

QRZy3

After

DooAx

It’s that simple 🙂

 

Thanks

 

 

OneDrive on Local Account ?

Hi everyone

Today I will share a marvelous tool to use OneDrive / SkyDrive if you use a local account, or an domain account.

The tool is named syncDriver.

3-6-2018 1-32-15 PM

A side note the login option no longer work in the application, but an alternative login work as it directly open onedrive’s website.

After that you can map a letter to the root folder you defined.

The official website is dead, as such I offer a link there to the wayback machine to download the tool.

wayback link

or home hosted