This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: showMyTeamviewerSession.ps1 | |
# Date: 01.03.2013 | |
# Author: Robert Rajakone | |
# URL: http://tech.robie.ch | |
# Description: This script extract Teamviewer session connection information from logfile | |
write-host "Today's Teamviewer Sessions" | |
# Der Regex-Ausdruck für Extraktion der Daten | |
$RegexExp = "(\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}\.\d{3})\s*(\d+)\s*(\d+)\s*([\w\d!]*)\s*(.*$)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set file="%temp%\locale_de-CH.xml" | |
echo ^<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend"^> ^<!--User List--^> ^<gs:UserList^> ^<gs:User UserID="Current"/^> ^</gs:UserList^> ^<!--User Locale--^> ^<gs:UserLocale^> ^<gs:Locale Name="de-CH" SetAsCurrent="true"/^> ^</gs:UserLocale^>^</gs:GlobalizationServices^>>%file% | |
control intl.cpl,, /f:%file% | |
del %file% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Install SQL2008R2 Server | |
.DESCRIPTION | |
use Switches to install SQL Server Features easy and silently | |
.PARAMETER instanceName | |
Name of SQL Instance | |
.PARAMETER useGerman | |
Install German Version of SQL Server (Managementstudio) | |
.PARAMETER installOnly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$DDrive = GWMI -CL Win32_LogicalDisk | Where {$_.DeviceId -Eq "D:"} | |
if($DDrive){ | |
Echo "ERROR: Es existiert bereits ein D-Laufwerk. Vorgang wird abgebrochen." | |
Exit | |
} | |
$drive = GWMI -CL Win32_LogicalDisk | Where {$_.DeviceId -Eq "C:"} | |
$sizeGB=$drive.Size/1024/1024/1024 | |
$sizeGB | |
if([int]$sizeGB -gt 160){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start /wait setup.exe /config config.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' http://blogs.technet.com/b/rspitz/archive/2010/09/25/how-to-install-a-font-from-the-command-line-on-windows-7.aspx | |
strPathFonts = "\\share\fonts" | |
set Shell = WScript.CreateObject("WScript.Shell") | |
strWindir = Shell.ExpandEnvironmentStrings("%windir%") | |
set fso = CreateObject("Scripting.FileSystemObject") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
.DESCRIPTION | |
This script add WiFi Profile to (first) WLAN Adapter. Password in profile should be in plain text | |
.PARAMETER <Parameter_Name> | |
.INPUTS | |
Path to WiFi Profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear | |
$StartDatum = "01.01.13" | |
$EndDatum = "01.09.13" | |
$users = @{ "max müller" = @(); "peter pan" = @(); "mitz mausi" = @(); "fun farah" = @()} | |
$LookupCalender = "Calendar Name" | |
$usersKW = $users.Clone() | |
$outHash = $users.Clone() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gci C:\backup\folder | %{ | |
# Root Kundenordner | |
gci $_.fullname| %{ | |
#Client folder | |
gci $_.fullname | %{ | |
#$_.fullname | |
# Client/Application/Subfolder | |
if( $_.name.tolower().contains("sicherung")){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Chocolately | |
Run as Admin | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
Untested | |
choco install chrome | |
choco install keepass |
OlderNewer