martedì 29 ottobre 2013

Scanner Manual Installation Windows 7

In Windows Explorer, access C:\Program Files\Windows Photo Viewer, where C: is your system drive, and then double-click ImagingDevices.exe or run it via a console with administrator privilegies

giovedì 29 agosto 2013

DNS Resolution

Happens on only some client that's the DNS name resolution fail.
On a first troubleshoointg the ping command pointing the server name fails, but nslookup not and do not fail also the ping with FQDN.

Both the nic configuration and os settings in the "workstation name" label window has the append dns suffix value.

After a long search I found this interesting articles:
http://technet.microsoft.com/en-us/library/cc755882%28v=ws.10%29.aspx

http://blogs.technet.com/b/networking/archive/2009/04/16/dns-client-name-resolution-behavior-in-windows-vista-vs-windows-xp.aspx 

The second one has something that should be the correct resolution:

Modify this registry key 

This registry entry works for both Windows XP and Windows Vista
HKLM\Software\Policies\Microsoft\Windows NT\DNSClient\AppendToMultiLabelName
Type = DWORD

Data:
  • 0 (Do not Append Suffix)
  • 1 (Append suffix)
Else a Group Policy should be used but only from Windows Vista:

Group Policy location (for Windows Vista only) - (run gpedit.msc):
Computer Configuration -> Administrative Templates -> Network -> DNS Client -> “Allow DNS Suffix Appending to Unqualified Multi-Label Name Queries”

mercoledì 21 agosto 2013

WSUS troubleshooting

This artilcle is in english to be useful to more people.

I've spent some time to setup wsus on my environment and other time to maintain that and to approve the updates but oftent I saw client that are not loggin on the wsus server. 
Here you can find some useful workaround:

Situation: - There's a group policy that sets WSUS on the clients (not mandatory, you can use also a script see: http://msmvps.com/blogs/athif/pages/Manually-Configure-WUA.aspx)
- My wsus have a DNS alias that points on the correct server (just for future upgrades, this avoid change group policy or settings on the clients)

To be sure that your client is receiving properly updates:
1. check if your client receive the correct policy, with group policy result wizard or directly on the client looking the content of this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
you should see this two values:

"WUServer"="http://YOUR-WSUS-SERVER"
"WUStatusServer"="
http://YOUR-WSUS-SERVER"


 2. Check if dns resolution works correctly:
nslookup YOUR-WSUS-SERVER<.name.local> 

3. Chek with internet explorer if you can access the wsus website with the address on the key in point 1


At this point all should work and if you use wuauclt /detectnow after some time you should see the client registered on wsus server and probably some updates needed.

If the client still not connect to the server use the WSUS client diagnostic tool: http://download.microsoft.com/download/9/7/6/976d1084-d2fd-45a1-8c27-a467c768d8ef/WSUS%20Client%20Diagnostic%20Tool.EXE
(see other tools here: http://technet.microsoft.com/en-us/windowsserver/bb466192.aspx)

Run the client in a command window and see if all the test are: PASSED
If not look at the Winhttp proxy setting section and see if there's a proxy defined here.

In my case was as: (you can read) "proxy:" and then "avoid proxy for 192.168.1.25"

This lines was the ones that avoid access to WSUS, the local system account is using the string as a proxy and the server is not in the "avoid proxy list".

use the command proxycfg  to see which is the configuration and eventually use: proxycfg -d to go diretct or proxycfg -p to set parameters correctly.

This worked for me like a charm.


martedì 16 luglio 2013

VMWare patch install

Last patch for VMWare 5.1 is 
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2051208
 
and the command line to install it is: 
 esxcli software vib install --depot="/vmfs/volumes/ds-r1-l0/esx51patch/ESXi510-201305001.zip"

VMWare disk cloning via command line

The free version of VMWare as strange could appears is a very good version also in production environments, it lacks obviously of various function, one of them is the ability to create template or copy virtual machines, which are very useful.

The solution is to create a vm as a template, with a name like tmpl.w2k8r2 to distinguish from production one, then create a new virtual machine with the desired hw resources but without disks.
Then clone the disk with this simple command, it is also possible to create a mini script:

vmkfstools --clonevirtualdisk tmpl.w2k8R2/tmpl.w2k8R2.vmdk [vmfolder]/[newvmdisk].vmdk


lunedì 1 luglio 2013

Simple Bulk User Creation in AD Using powershell

After some testing I found the easiest way to bulk create users in AD using: powershell new cmdlet and some DSQUERY & DSMOD commands.

First of all create an excel file with this header columns: 
Name,Display Name,Description,sAMAccountName,given Name,Surname,Title,physicalDeliveryOfficeName,
OfficePhone,givenName,displayName,Company,
department,userPrincipalName,Path,
EmailAddress,City,State,Enabled,Country

Fill the excel file with your users detail. 

Notes:
userPrincipalname: usually I put name.surname@domain.local
State: is the "state/province" field in AD Gui
Country: is the combo box Country/Region, this field must be in form "US" for usa or "IT"for Italy.
Path: is the Distinguisced Name of the Organizational Unit inside your forest so must be in form "OU=my users, DC=test,DC=local"



The colums are not all mandatory but this list fill almost all the useful fileds for users.


Then export the file as CSV, if your operating system is not english you should remember to change the field separator to a comma. In my italian version of excel the field separator is: ";" or use the -delimiter ";" switch on the command line.
When you export from excel correct the " sign in the csv should be in the form: 
"""

Done that connect to your w2008 DC and  execute the "Active Directory Module for Windows PowerShell" from Administrative tools or a normal power shell console but remember to import module ActiveDirectory

Then if your CSV file was done correctly run: 
Import-Module ActiveDirectory
import-CSV | New-ADUser 

You should see after a refresh the new created users in the path you selected. I suggest to use a temporary OU set adhoc for that (see below)

Unfortunately the field AccountPassword do not set corrctly the password so the easiest way to change is to run: 
DSQUERY user "OU=MyNewUsers,OU=MyCompanyAccount,DC=mydomain,DC=local" | DSMOD user -pwd

That's IT!

martedì 4 giugno 2013

Windows XP missing Device List

Oggi mi è capitata una cosa strana, pensavo di non uscirne e di dover reinstallare il sistema operativo-

Ho aggiunto una scheda video ad un pc, niente di tale in se'. Se non fosse stato per il fatto che il pc in questione non ne voleva sapere e che il triver falliva l'installazione.


Dopo poco scopro che l'elenco dei device nell'hw manager è vuoto!

Nessun messaggio negli eventi, nessun segnale di malfunzionamento.... La causa ? nel registro di configurazione mancavano i permessi alla chiave 
HKLM\System\CurrentControlSet\Enum
Occorre assegnare a System "Full Control" e a Everyone "Read Only"


lunedì 6 maggio 2013

Configurazione IIS 7 come proxy

Prima occorre installare l'application Request Routing:
http://www.iis.net/learn/extensions/installing-application-request-routing-%28arr%29/install-application-request-routing

Poi seguire gli step qui: 
http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing

giovedì 11 aprile 2013

Utili strumenti per la gestione delle ACL in ambiente NTFS

Fino a Windows Vista e 7 lo strumento canonico era CACLS ora esiste ICACLS che offre delle funzionalità di verifica e esportazione utili per la migrazione di filesystem ma probabilmente ancor più utili per il mantenimento delle permission in ambienti dove ci sono più amministratori.

Per la migrazione preferisco sempre Robocoy con il parametro /SEC per la copia delle security NTFS.

mercoledì 3 aprile 2013

SMTP Aperto Alice Business

Sulle linee Telecom Alice business "Impresa Semplice" è possibile utilizzare l'smtp aperto: out.alice.it per inviare mail con altri provider.
Altri Smtp:
out.aliceposta.it
mail.tin.it

giovedì 28 marzo 2013

Citrix Do not display apps in Seamless window with resolution 1920x1080


With new display and network card the resolution sometime go over 1280x1024 this with standard memory assigned to citrix session should cause this message on the event viewer and the appearence of the application non in seameless window, to increase the memory change the parameter below to 8192

With new display and network card the resolution sometime go over 1280x1024 this with standard memory assigned to citrix session should cause this message on the event viewer and the appearence of the application non in seameless window, to increase the memory change the parameter below to 8192



Profile Issues


lunedì 18 marzo 2013

Linux Centos 6.4 P2V

Sto per affrontare un progetto di virtualizzazione da un cliente che ha un server Linux centos su un HP ML110 con un solo disco .... 

Prima di partire ho deciso di fare qualche test su un pezzo di ferro che ho trovato, in particolare è un vecchio DELL con dischi IDE.
Ho scaricato Centos 6.4 net install e l'ho installato su questo box, poi con il VMConverter l'ho convertito in una VM lasciando i settaggi di default.

Non mi aspettavo non funzionasse però alla fine del processo ho avviato la VM, ed ecco un bel errore:

centos kernel panic- not syncing attempted to kill init

dopo aver letto:
http://bitpushr.wordpress.com/2010/08/16/how-to-p2v-a-linux-host-in-vsphere-4-0/
http://darktraining.com/CentOS/86/
http://communities.vmware.com/message/1816296#1816296


Alla fine ho risolto modificando la controller da Bus Logic a LSI Logic Parallel


.

venerdì 8 marzo 2013

Clone di partizioni GPT su dischi UEFI

http://support.microsoft.com/kb/814070

Sony Vaio accesso al bios

Tasti funzione per accedere al bios dei Sony vaio: 
BIOS: tenere premuto F2 prima di riaccendere il notebook 
Boot da Device esterno: Premere ripetutamente F11 (non testato suggerisco di premerlo prima di riavviare) 
Network Boot: F12

giovedì 7 marzo 2013

Symantec Endpoint & Citrix

SEP in ambiente Citrix genera la visualizzazione dei messaggi agli utenti nonchè errori nella sessione perchè la try icon non permette la chiusura dei processi, questa è la soluzione: Upgrade to Symantec Endpoint Protection 11.0 Maintenance Release 3 or newer. In addition to upgrading, SmcGui must be disabled (to avoid multiple instances of that process and the SEP tray icon) by setting the following DWORD registry value on the Terminal Server: HKLM\SOFTWARE\Symantec\Symantec Endpoint Protection\SMC\LaunchSmcGui = 0 Note: Duplicate SEP system tray icons in the local system tray of a Terminal Server client may be the result of a Citrix feature called Seamless Desktop Integration, where server resources are made to appear as if they are running on the client. See Symantec Endpoint Protection: Duplicate system tray icons appear on Terminal Server Client for each connection to a Citrix Server

giovedì 28 febbraio 2013

Modifica del layout disco durante l'installazione Windows 7

Questa mattina durante l'installazione di Windows 7 su un Notebook mi sono reso conto di non aver creato la partizione dati che generalmente creo per i dati utente. 
Purtroppo era troppo tardi perchè l'installazione era iniziata e proprio per questo ho deciso di interromperla per eliminare tutte le partizioni e rifarle, mio malgrado ho scoperto che la partizione dove windows aveva iniziato l'installazione non era eliminabile. Utilizzando la combinazione shift+F10 ho aperto una console e utilizzando il comando diskpart ho dapprima ridotto il volume che era stato creato e all'interno ho creato una nuova partizione.

domenica 17 febbraio 2013

Disattivazione Java update su Win7 64 bit

A differenza dei sistemi operativi a 32 bit nei quali le operazioni in esecuzione automatica si trovano nella chiave HKLM\software\microsft\windows\currentversion\run nella versione a 64 bit le applicazioni a 32 bit vengono eseguite attraverso l'utilizzo di wowexec pertanto la chiave dove andare ad eliminare la schedulazione dell'update java è : HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run Se questo post ti è stato utile per favore lascia un commento.

lunedì 28 gennaio 2013

Creazione di un sommario in Office 2003

Qui di seguito pubblico un filmato per la creazione dei sommari in Office 2003: Link al filmato

venerdì 25 gennaio 2013

IMG00094-20130125-2052.jpg


Sent From Blackberry

mercoledì 23 gennaio 2013

VM Migration via powercli

# Script for Vm Datastore Migration
# Author.: Michele Pavan
# Date...: 23/01/2013
# License: Version 2 of the GPL. Do not change the author. You must specify the original author.

$hostVCenter = "myVcenter"
$datastore = "Iomega"
$vm = "Srv1"

add-pssnapin VMware.VimAutomation.Core
 
#Connection to Vcenter

Connect-VIServer $hostVCenter

#changing mail details
#Get Date and time start
$date = Get-Date -Format "dd/MM/yyyy"
$time = (Get-Date -f "HH:mm")

$subject = "VM migration ",$vm
$body = "VM Migration start: ",$vm," - ",$date," ",$time
C:\Scripts\powercli\sendmail.ps1

#Migration
Move-Vm -Datastore $dataStore -VM $vm



#changing mail details
#Get Date and time end
$date = Get-Date -Format "dd/MM/yyyy"
$time = (Get-Date -f "HH:mm")
$body = "VM Migration end: ",$vm," - ",$date," ",$time
C:\Scripts\powercli\sendmail.ps1


-------------------------------------



If you will use this code please, leave a message.

Transform DNS dynamic record in static

dnscmd fqdn.servername  /recordadd zonename servername A ipaddress servername

IIS 6 e Windows 2008 UPN authentication

Oggi, mio malgrado ho scoperto che l'autenticazione UPN cioè nella forma nomeutente@nomedominio non funziona su II6 (windows 2003) con domain controller windows 2008 R2.

Per risolvere è necessario installare questo aggiornamento:http://support.microsoft.com/kb/956114