ten mit X Forwarding mit Putty ===
**Problem:**
<code>
lib: connection to "localhost:11.0" refused by s... r out
Error: Can't open display: localhost:11.0
</code>
**Lösung:**\\
Uhrzeit zwischen dem Server und d... f dem Server setzen mit date auf akutellen Wert:
<code>
date +%T -s "16:46:30"
</code>
----
=====robocopy =====
[[http://technet.microsoft.com/en-us/library
rshell Session starten!
==Zeitdienst stoppen==
<code cmd>
net stop w32time
</code>
==NTP Server hinterlegen==
<code cmd>
w32tm /config /syncfromflags:manual /manualpeerlist:ntp1.lrz.de,0x08
</code>
Die Flags hinter dem NTP Server Namen bedeuten
en Powerschell Session und Aufruf der Software:
<code powershell>
cd D:\tools\nssm-2.24\win64
.\nssm.exe install
</code>
Über diese Oberfläche die Parameter des Servic... ion}}
Test ob der Service eingerichtet ist:
<code powershell>
C:\Windows\System32\sc.exe query "ORACLE_MOUNT"
</code>
Den Oracle Service auf "Manuel" setzen, der Or
en
\\
===Dateien in einen Verzeichnis zählen===
<code powershell>
(gci).count
</code>
\\
===Registry durchsuchen===
<code powershell>
gci registry::hklm\SOFTWARE
# alternativ die Registr... ci -recurse | where {$_.name -like '*oracle*'}
</code>
\\
===Umgebungsvariablen anzeigen===
<code power
et werden.
\\
\\
Beispiel für Linux Bash Skript:
<code bash>
#check Version of Database
# Workaround for... ${DAY_OF_WEEK}.ora' FROM spfile;
exit;
EOScipt
</code>
\\
Ähnlich kann dies auch in der PowerShell erfolgen:
\\
<code powershell>
$isenterprise=@'
set pagesize 0
set... EE and 0 for SE - Result is ::" $isenterprise
</code>
Der Trick liegt in den **@' '@** String Konstru
ufruf mit GET um die Version der API abzufragen:
<code powershell>
Invoke-WebRequest -Uri http://127.0.0... shtml.HTMLDocumentClass
RawContentLength : 15
</code>
===Invoke-RestMethod===
In der Powershell ste... ufruf mit GET um die Version der API abzufragen:
<code powershell>
Invoke-RestMethod -Uri http:\\localhost:9090
version
-------
1
</code>
==== REST Service abfragen ====
Beim Abfragen
m erzeugen ====
Auf dem Linux System anmelden:
<code bash>
ssh-keygen -t dsa
Generating public/priva...
ssh-keygen -t rsa -N '' -q -f ~/.ssh/id_rsa
</code>
Zwei Dateien werden erzeugt /home/oracle/.ssh/... lic key gleich der "authorized_keys" hinzufügen:
<code bash>
cat id_dsa.pub >> authorized_keys
</code>
==== Windows Key auf dem Linux System hinterlegen ===
Beispiel über die Command Shell erzielt werden:
<code cmd>
shutdown /s /f
</code>
Ist diese Verhalten nicht gewünscht kann über "Control Panel\Hardware and ... askmanager}}
=== Uptime über "systeminfo"===
<code powershell>
systeminfo
..
System Boot Time: 05.09.2015, 12:59:02
..
</code>
=== Uptime über "net statistics workstation" o
en ======
Datei $profile erstellen und anpassen
<code powershell>
# Wo liegt das Profil
$profile
C:\Use... hildItem cert:\CurrentUser\My -codesigning)[0]
</code>
Beispiel: Microsoft.PowerShell_profile.ps1
<code powershell >
# prüfen ob eine administrative Sess... "Welcome the the Power Shell started :: " + $d
</code>
Profile in Abhängigkeit von Anwender/User
* $P
er Script immer als Default Drucker einrichten.
<code winbash>
rundll32 printui.dll,PrintUIEntry /y /n "HP LaserJet 5000 Series PS"
</code>
Fehlermeldung von Oracle Forms Reportbuilder zur Info (aus Eventlog):
<code>
Event Type: Information
Event Source: Applicatio... 5 at offse
0048: 74 20 30 30 30 37 38 62 t 00078b
0050: 32 35 25
</code>