Thursday, March 26, 2015

Install Powershell windows 2012 Core server

CMD: install powershell 

dism.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShellRoot
dism.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell /all
 
/reboot

Powershell: add windows feature
 
Add-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra
Shutdown r -t 0

Friday, March 20, 2015

DSQUERY/DSMOD change password next logon

1. set password never expire off

dsquery user OU=TEST,OU=Office,DC=wnet,DC=local | dsmod user –pwdneverexpires no

2. set default password and set Must change password next Logon 

dsquery user OU=TEST,OU=Office,DC=wnet,DC=local | –pwd A1b2C3d4 -mustchpwd yes

Friday, March 6, 2015

relocate redolog oracle



CONNECT / as SYSDBA
STARTUP MOUNT

mv /diska/logs/log1a.rdo /diskc/logs/log1c.rdo
mv /diska/logs/log2a.rdo /diskc/logs/log2c.rdo

ALTER DATABASE 
  RENAME FILE '/diska/logs/log1a.rdo', '/diska/logs/log2a.rdo' 
           TO '/diskc/logs/log1c.rdo', '/diskc/logs/log2c.rdo';

ALTER DATABASE OPEN; 

relocate undo tablespaces oracle

#undo tablespace

SQL>create undo tablespace undotbs2 datafile '/new_location/newundo02.dbf' size 2000m;

#Set new tablespace as undo tablespace
SQL> alter system set undo_tablespace= undotbs2 ;

#Drop old undotbs tablespace
SQL> drop tablespace undotbs including contents;

relocate tempfile oracle

EXAMPLE:

sql>alter database tempfile 'D:\APP\PRAMOTE.L\ORADATA\DW\TEMP01.DBF' offline;

copy tempfile to new location

sql>alter database rename file 'D:\APP\PRAMOTE.L\ORADATA\DW\TEMP01.DBF' to 'E:\oradata\dw\temp01.dbf';

sql>alter database tempfile 'E:\oradata\dw\temp01.dbf' online;

Thursday, March 5, 2015

Remove GlobalProtect

Error msg

"An instance of GlobalProtect is already present on the system. Uninstall the current version before attempting to install the new version of GlobalProtect"

- Remove the registry items within the following registry path (Windows OS):
      HKEY_LOCAL_MACHINE\Software\Palo Alto Networks\GlobalProtect\PanGPS

- Run the following command as an administrator from the windows cmd line:
       sc delete PanGPS

- Reboot the machine

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout