Páginas

jueves, 5 de septiembre de 2013

Administrar Windows Update en Windows 2012

Para comprobar la configuración actual de Windows Update, en un símbolo del sistema, ejecuta el siguiente comando:

Cscript scregedit.wsf /AU /v


Para habilitar las actualizaciones automáticas, ejecuta los siguientes comandos:

Net stop wsuaserv
cscript scregedit.wst /AU 4
net start wsuaserv


Para deshabilitar las actualizaciones automáticas, ejecuta los siguientes comandos:

Net stop wsuaserv
cscript scregedit.wsf /AU 1
net start wsuaserv


Si el servidor es miembro de un dominio, también puedes configurar Windows Update mediante directivas de grupo.


Para obligar a Windows Update a detectar e instalar inmediatamente cualquier actualización disponible, ejecute el siguiente comando:

wuauclt /detectnow


En función de las actualizaciones que estén instaladas, es posible que deba reiniciar el equipo, aunque el sistema no se lo notificará. Para determinar si el proceso de instalación se ha completado, use el Administrador de tareas para comprobar que los procesos Wuauclt o Trusted Installer no se están ejecutando de forma activa. También puede usar los métodos incluidos en la sección "Ver actualizaciones instaladas" para comprobar la lista de actualizaciones instaladas.

Extraído de  -> http://technet.microsoft.com/es-es/library/jj574100.aspx


Cambios de interfaz en Windows 2012 Core to Gui

Una de las opciones interesantes que ofrece la versión de windows 2012, es la posibilidad de cambiar el tipo de interfaz del servidor. Antiguamente esto solo era posible mediante la re instalación del sistema.

Para realizar las conversiones podemos mirara la siguiente tabla:

Para alcanzar el estado de instalación en cada columna... Opción de instalación Server Core Interfaz de servidor básica Opción de instalación Servidor con una GUI Característica experiencia de escritorio instalada
Seleccione estas características en Administrador del servidor: ninguna Infraestructura y herramientas de administración de gráficos Infraestructura y herramientas de administración de gráficos, Shell gráfico de servidor Infraestructura y herramientas de administración de gráficos, Shell gráfico de servidor, experiencia de escritorio
O ejecute los comandos install/uninstall de Windows PowerShell con estos valores para el parámetro Name: ninguno Server-Gui-Mgmt-Infra Server-Gui-Mgmt-Infra, Server-Gui-Shell Server-Gui-Mgmt-Infra, Server-Gui-Shell, Desktop-Experience

Para usar Windows PowerShell para convertir una instalación Server Core en una instalación Servidor con una GUI, use este cmdlet de Windows PowerShell:

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart

Para convertir a una instalación Server Core con Windows PowerShell: ejecute el siguiente cmdlet:

Uninstall-WindowsFeature Server-Gui-Mgmt-Infra -Restart

miércoles, 4 de septiembre de 2013

Script útil para actualizar la descripción de las maquinas del dominio

Script útil para actualizar la descripción de las maquinas del dominio, creamos un fichero vbs y lo ubicamos en el SYSVOL, de esta manera los lanzamos en la politica de dominio al logarse al sistema.

Nos mantendra en la descripcion del equipo de active directory el User, Serial Number & Computer Model

'-----------------------------------------------------------------------
' Created 3/29/2011
' When used as login script it will populate the Computer Description
' in Active Directory with User Description, Serial Number & CompModel
'----------------------------------------------------------------------
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colcomputersystem = objWMIService.ExecQuery _
    ("Select * from Win32_computersystem")
Set colBIOS = objWMIService.ExecQuery _
    ("Select * from Win32_BIOS")
For each objcomputersystem in colcomputersystem
    Getcomputersystem = objcomputersystem.Model
Next
    For each objBIOS in colBIOS
GetSerialNumber = objBIOS.SerialNumber
    Next      
Set objSysInfo = CreateObject("ADSystemInfo")
Set objUser = GetObject("LDAP://" & objSysInfo.UserName)
Set objComputer = GetObject("LDAP://" & objSysInfo.ComputerName)
strMessage = objUser.DisplayName & " / " & Getcomputersystem & " / " & GetSerialNumber
objComputer.Description = strMessage
objComputer.SetInfo

martes, 3 de septiembre de 2013

Creación de Dispositivo Spool Print to Mail en SAP

Esta solución es muy útil para enviar los jobs programados a salidas por correo electrónico. O la ejecución de listados.

mas info Aquí


Defining Output Devices for Printing Using E-Mail  

Use

To print using e-mail, you must specify an output device in the print window that has been specially set up for this print method. You can create the output device through the device definition.
This definition creates an output device that sends the print data as an attachment to an e-mail. You can then open and print the print data with the appropriate program.

Prerequisites

·        You require the appropriate authorization to create output devices.
·        The access method M must be available in the device definition (transaction SPAD Output Devices Change Output device Create/Create Using Template HostSpoolAccMethod Host Spool Access Method).
If the access method M is not available, you must first run report RSPO0075 in transaction SE38, to activate the access method. It will then be available to you in transaction SPAD.
To do this, enter the name of the report in the Program field in transaction SE38, and choose Execute. Select the option Add Access Method, and choose the access method M as the access method to be added.
·        In principle, you can use any device type that can be used in the device definition. However, you must ensure that a suitable printer or display program is available on the target system.

For e-mail printing with device type pdf1, there must be a PDF display program available, such as Adobe Acrobat Reader, so that you can open and print the attached PDF file as required.

Procedure

If you want to create a device definition for printing using e-mail, follow the procedure below:
...
       1.      Call transaction SPAD, and choose Output Devices.
       2.      If you are not in change mode, switch to this mode by choosing Change.
       3.      You can now do the following:
¡        You can create a new device definition by choosing Output Device Create.
¡        You can use an existing device definition as a template.
To do this, click the entry for the output device that is to be used as a template, and choose Output Device Create Using Template.
       4.      Specify the name of the output device and fill out the mandatory fields of the individual tab pages as follows:

Tab Page
Field
Entry
Additional Information
Device Attributes
Device Type
(recommended) pdf1
You can use any device type as long as an appropriate printer or viewer is available on the target host.

Spool server
depends on system
Select a spool server (application server with a spool work process) from the list.

Device Class
standard printer

Host Spool
Access Method
Host Spool Access Method (operating system spooler)
M (for mail)


E-Mail Address
E-Mail Address
(optional)
The recipient of the e-mail is determined in three steps.
If no suitable e-mail address is found in the first two steps; that is, in the print window or in the device definition of the printer, the mail is sent to the address entered in the user master data of the sender.

       5.      Save your entries.

Result

You can use the output device defined for access method M to print using e-mail. If you choose a print function such as , you can specify this output device in the following print window.
The document is sent as an appendix to a mail and the recipient can display and print the document. For information about determining the recipient, see the Printing Using E-Mail section.