This file contains hidden or 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
| function Export-ADS (){ | |
| [CmdletBinding()] | |
| param ( | |
| $Path | |
| ) | |
| process { | |
| Get-Item $Path -Stream * | | |
| Select-Object -Property Stream -Skip 1 | | |
| ForEach-Object { | |
| $item = Get-Item $Path |
This file contains hidden or 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
| # Windows settings | |
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess | |
| Set-TaskbarOptions -Size Large -UnLock -Dock Bottom -Combine Never -AlwaysShowIconsOn | |
| Enable-RemoteDesktop | |
| Install-WindowsUpdate | |
| # Chocolatey Packages | |
| # Libraries | |
| cinst dotnetfx | |
| cinst dotnetcore-sdk |
This file contains hidden or 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
| function New-RemoteScheduledTask { | |
| [CmdletBinding()] | |
| param ( | |
| # Hostname to create the task on | |
| [string] | |
| $Hostname, | |
| # Credentials for connecting to the host | |
| [System.Management.Automation.PSCredential] | |
| $Credential, |
This file contains hidden or 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
| # Windows settings | |
| # TODO: Add Win10 bloatware cleanup | |
| # Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess | |
| # Set-TaskbarOptions -Size Large -UnLock -Dock Bottom -Combine Never -AlwaysShowIconsOn | |
| # Enable-RemoteDesktop | |
| # Disable-GameBarTips | |
| # Disable-BingSearch | |
| # Install-WindowsUpdate | |
| # Chocolatey Packages |
This file contains hidden or 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 proxy settings if behind an enterprise proxy by using these in PS profile | |
| [system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy('http://proxy:port') | |
| [system.net.webrequest]::defaultwebproxy.credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials | |
| [system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true | |
| # Set proxy settings for git | |
| git config --global https.proxy http://username:password@proxy:port | |
| git config --global http.sslVerify false | |
| # Type the command to install Chocolatey |
NewerOlder