giovedì 29 ottobre 2015

Installazione DesktopDogane per l'agenzia delle dogane italiane

Dal 15 Dicembre 2015 il software dell'agenzia dogane italiana dovrà essere sostituito dal nuovo software DesktopDogane.
Lascio qui alcuni tips utili per chi fa assistenza ad aziende che usano tali prodotti

Per prima cosa segnalo che non è necessario essere in possesso di un account all'agenzia dogane per scaricare il software. Al momento della scrittura il software è disponibile su un ftp pubblico dell'agenzia:

ftp://ftp.finanze.it/pub/dogane/DesktopDogane1.1.0.exe

Il link è quello presente sulla pagina di download dove però non è presente un elenco di prerequisiti.

La prima installazione provata è stata su una VM con Windows 7 64bit dove l'installazione si è bloccata nella prima fase per la mancanza della JVM, pertanto ho installato la vm disponibile al momento la versione 8.65 prima a 32 bit ma comunque l'installazione non si è conclusa con il messaggio: "errore di windows 2 durante il caricamento di java vm"
Pertanto ho installato anche la versione a 64 bit, ancora l'installazione fallisce. 
Il problema è evidentemente un problema di ricerca della versione corretta di java quindi ho installato una versione vecchia la 1.7.20 ma comunque l'installazione non parte.

Aiutandomi con il problema già presente su Firma Verifica ho pensato alla presenza di un file di configurazione che contiene il percorso di java ma essendo il file di installazione monolitico non ho trovato il file desiderato.

Googolando un po' ho trovato questa soluzione:
- aprire console con diritti amministrativi, 
- portarsi nella cartella dov'è scaricato DesktopDogane 
- lanciare l'installazione con questo comando:  
 DesktopDogane1.1.0.exe LAX_VM "C:\Program Files (x86)\Java\Jre1.8.0_65\bin\java.exe"

 A questo punto l'installazione dovrebbe partire e presentare questa finestra:
 
Interessante notare come il secondo punto sia "java non installata" peccato che abbia già fatto un controllo allo start e che senza parametro LAX_VM l'installazione comunque non parta... 
Seconda videata
 
Interessante notare come l'installazione tenti di scaricarsi in C:\dogane, c'è da chiedersi che succede se l'installazione non è stata lanciata con diritti amministrativi visto che non è possibile scrivere per un utente base scrivere sulla radice del disco C.
Riepilogo dell'installazione:
 

Al termine dell'installazione parte l'applicazione con la richiesta di creare un nuovo utente.
Il resto del test nel prossimo post.


Se vi questo post vi è stato utile lasciatemi un commento, Grazie !
 

giovedì 10 settembre 2015

Interesting article for IT Budgeting

This is an interesting article about the budgeting of the IT department:
http://www.zdnet.com/article/simplify-it-budgeting-year-round-with-our-template-and-tips/

I found the most interesting part when talk about: present the expenses in "English" to your Boss, in order to let them understand and "be sure to expose the ROI".

Some IT pepole have to think about let understand the listene.

lunedì 7 settembre 2015

Simpliest Script to share folders

Hi everybody,
for me this is the simpliest script to share folders with poweshell 4, works well in w2012:

#Username
$User = ""Write-Host $User
$DomainUser = "pacorini\"+$User


#User home folder base path
$BasePath = 'E:\HomeFolders\'




#Select the name of the share$ShareName=$User
#Combine sharebase folder and user to construct the full path
$ShareFolder = $BasePath+$User



#Create new share - this work only with windows 2012

New-SmbShare -Name $Sharename -Path $ShareFolder -FullAccess $User


#Alternatively you could use this (on previous version):
#$Shares=[WMICLASS]'WIN32_Share'
#$Shares.Create($ShareFolder,$ShareName,0)



#Set NTFS Permission

$Acl = Get-Acl $ShareFolder

$Ar = New-Object system.security.accesscontrol.filesystemaccessrule($DomainUser,'FullControl','ContainerInherit, ObjectInherit', 'None', 'Allow')

$Acl.AddAccessRule($Ar)

Set-Acl $ShareFolder $Acl



#Set Smb share permission.
Revoke-SmbShareAccess -Name $ShareName -AccountName "Everyone" -Force
Grant-SmbShareAccess -Name $ShareName -AccountName $DomainUser -AccessRight Full -Force




If you like this post, please leave a comment.

venerdì 21 agosto 2015

Windows Print server Migration, how to migrate without user action.

Often is needed to migrate printer services from one server to another, nowadays server changes from x86 to 64 bit version so the use of prtinter migration tools could not be applied everytime, least but not las I prefer to do it manually to have full control of migration steps and to avoid user implication.
So this is the steps that i usually use.

First of all take a list of the printers that have to be migrated, sometimes happens that old queues are not deleted.
Control the printer ip port, sharename and driver type name and version used.

Create the new server and be sure to install printer add ons.


Create TCP/IP printer ports via script on new server:
Then open a terminal console with administrative rights and go to the folder: 
windows 2003: c:\windows\system32
windows 2008/2012C:\Windows\System32\Printing_Admin_Scripts\en-US

cscript prnport.vbs -a -r IP_ -h -o raw -n 9100

I suggest to create a little batch file or just use notepad++ to create as mutch rows as needed and then paste in console window.


Then create the new printers with printmanament.msc using administrator rights. Be sure to use the same sharename as old server. 
This operation should be also automated in various way, but this will be another story.

Then you have just to change on clients the registry key:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Port

For example I have this local port:

\\spoolsrv\hp4014

In the registry I have a REG_SZ key with that name, it is enough to change it and restart spooler service.


If this post was youseful to you please leve a message.
Mik

giovedì 11 giugno 2015

OAB Generation troubleshooting

Very good article on OAB generation troubleshooting.
http://unified.swiatelski.com/2011/02/exchange-2010-cannot-download-offline.html