janikvonrotz / powershell-powerup Goto Github PK
View Code? Open in Web Editor NEWPowerShell PowerUp
Home Page: http://janikvonrotz.github.io/PowerShell-PowerUp
PowerShell PowerUp
Home Page: http://janikvonrotz.github.io/PowerShell-PowerUp
install pscx with chocolatey
f.e. searching for putty.exe wil throw error, because some use putty.bat on windows (installed by cinst)
Add Software Package for https://sourceforge.net/projects/uping/
Which creates a database on sql server and generates the uping script
Check config in install
Logic and message is in install, > xml config
Add install template
Same as TrueCrypt
add property
if xml.note.to.feature.propertynamedas"Status" -eq Enabled or -eq Disabled then
find alternative ways to install pscx and git
sps = start-ppscript
gps = get-ppscript
remove git support
modify git update
install git if not available
Add gitsource to config file
Upade updatefunctions
With bin
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
Add RDP Filepath to Remote.config
RDPDefaultPath="$home\default"
Check PS Install script
Documentation on Github
Add script folder _vendor
Add script manager
update remote functions
function Add-PPScriptAlias
autoinclude scripts
myscript.ps1
functionmyscript.ps1{
param()
& myscipt.ps1 -foreach param
}
Define a long term goal.
Update the wiki
Readme PowerShell Server Management Framework
Update-PowerShellProfile
\Microsoft.PowerShell_profile.install.ps1
Remove-EventLog -LogName "PowerShell Profile"
Update-PPEventLog
Update-PPEventLog
cd $PSProfile.Path
git remote set-url origin https://github.com/janikvonrotz/PowerShell-PowerUp.git
git config --get remote.origin.url
Update-PowerShellPowerUp
Update-ScheduledTask -All
Show if update is available for the repo, add function which Update-PowerShellProfile.ps1
$PSProfilePath
in the main script
Replace Add-Shelduled Taks with Update-SchTasks.ps1
this function looks for configuration files and checks the tasks
Key
Name
Favorite Drive Letter
Mount-TrueCryptContainer
Dismount-TrueCryptContainer
Get-TrueCypteContainer -Mounted
if(!(Get-Command "cinst" -ErrorAction SilentlyContinue)){
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
}
if(!(Get-Module -ListAvailable | where{$_.Name -eq "PsGet"})){
# install module with chocolatey
& C:\Chocolatey\bin\cinst.bat psget -force
# import module with static path
Import-Module "C:\Program Files\Common Files\Modules\PsGet\PsGet.psm1"
}else{
Import-Module PsGet
}
if(!(Get-Module -ListAvailable | where{$_.Name -eq "pscx"})){
# install module with PsGet
Install-Module pscx
}
Import-Module pscx
If feature enabled copy the config file form templates to the config folder and run Update-SchTasks.ps1
Alter Installer Syntax: Install-PPapp "User Ping#1.0.1"
if transcription is activated and f.e. a daily job is running, the log folder will be filled up sometimes.
Add a max number of files in the log folder. https://gist.github.com/5772306
Defines a user
ID
Name
Firstname
Surname
Credentials
Domain
Mail
Link to Server Config Type
in the main script
Copy app config file to config folder
Link exe in bin folder
Lib folder for dlls
Adding registry entry:
Set-ItemProperty : Das Argument kann nicht an den Parameter "Path" gebunden
werden, da es NULL ist.
In C:\Powershell-Profile\Microsoft.PowerShell_profile.install.ps1:84 Zeichen:29
Set-ItemProperty -Path $RegistryEntry.Path -Name $RegistryEntry.Name
~~~~~~~~~~~~~~~~~~~
force download as zip
then start install script
Script installs chocolatey
Chocolatey installs
cinst pscx
cinst psget
if git support
cinst git.install
update repository
and then install powershell profile
use it install script and app script >> git install
Download PowerShell-Profile
or clone with git
etc.
Create a diagrammof pp functionalitz
Install with chocolatey
Start-PPScript (spps)
Get-PPScript (gpps) -Shortcut
Add-PPScriptShortcut
Remove-PPScriptShortcut
Key
Name
Filename
Remove mail support in scripts and functions
Update-PPAppShortcuts
-Name > Create
Add Possibility to Add executable shortcut > check bin folder for template
Add Install-App.ps1 template to the template folder.
Every command link to the script file
Convert-Path : Der Pfad "C:\Powershell-Profile\Microsoft.PowerShell_profile.ps1" kann nicht gefunden werden, da er
nicht vorhanden ist.
In C:\Powershell-Profile\Microsoft.PowerShell_profile.config.ps1:47 Zeichen:9
Path = Convert-Path($PSProfilePath + "\Microsoft.PowerShell_profile.ps1")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Convert-Path : Der Pfad "C:\Powershell-Profile\Microsoft.PowerShell_profile.ps1" kann nicht gefunden werden, da er
nicht vorhanden ist.
In C:\Powershell-Profile\Microsoft.PowerShell_profile.config.ps1:52 Zeichen:9
Path = Convert-Path($PSProfilePath + "\Microsoft.PowerShell_profile.ps1")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Make multiuser ready
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.