full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/BuiltinSteps/PSCIEntityFrameworkMigratePackage.ps1
PSCIEntityFrameworkMigratePackage.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/BuiltinSteps/PSCIIISConfig.ps1
PSCIIISConfig.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/BuiltinSteps/PSCIWindowsFeature.ps1
PSCIWindowsFeature.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/BuiltinSteps/PSCIFileSystemItem.ps1
PSCIFileSystemItem.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/BuiltinSteps/PSCISqlServerAgentPackage.ps1
PSCISqlServerAgentPackage.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSRS/New-SSRSDataSet.ps1
New-SSRSDataSet.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSRS/New-SSRSFolder.ps1
New-SSRSFolder.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSRS/New-SSRSDataSource.ps1
New-SSRSDataSource.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSRS/New-SSRSDataSourceDefinition.ps1
New-SSRSDataSourceDefinition.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSRS/Get-SSRSProjectConfiguration.ps1
Get-SSRSProjectConfiguration.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSRS/New-SSRSResource.ps1
New-SSRSResource.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSRS/Set-SSRSItemSecurity.ps1
Set-SSRSItemSecurity.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSRS/New-SSRSWebServiceProxy.ps1
New-SSRSWebServiceProxy.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/ConfigFiles/Update-ConfigFile.ps1
Update-ConfigFile.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/ConfigFiles/Protect-WebConfig.ps1
Protect-WebConfig.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/ConfigFiles/Update-TokensInZipFile.ps1
Update-TokensInZipFile.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/ConfigFiles/New-EventLogSource.ps1
New-EventLogSource.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/ConfigFiles/Update-TokensInAllFiles.ps1
Update-TokensInAllFiles.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesFromRemoteServer/Copy-FilesFromRemoteServer.ps1
Copy-FilesFromRemoteServer.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesFromRemoteServer/Get-RemoteFileUsingStream.ps1
Get-RemoteFileUsingStream.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesFromRemoteServer/Get-ReadBytesScriptBlock.ps1
Get-ReadBytesScriptBlock.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesFromRemoteServer/Get-PreCopyFromScriptBlock.ps1
Get-PreCopyFromScriptBlock.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesFromRemoteServer/Get-PostCopyFromScriptBlock.ps1
Get-PostCopyFromScriptBlock.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Azure/New-AzureSASKey.ps1
New-AzureSASKey.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/WindowsService/Set-NssmService.ps1
Set-NssmService.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/DscHelpers/Install-DscResources.ps1
Install-DscResources.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/DscHelpers/Write-DscErrorsFromEventLog.ps1
Write-DscErrorsFromEventLog.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/DscHelpers/Clear-DscCache.ps1
Clear-DscCache.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/IIS/Start-IISWebsite.ps1
Start-IISWebsite.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/IIS/Publish-IISWebSiteBindings.ps1
Publish-IISWebSiteBindings.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/IIS/Publish-IISAuthenticationMethods.ps1
Publish-IISAuthenticationMethods.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/IIS/Publish-WebApplication.ps1
Publish-WebApplication.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/IIS/Publish-IISWebSite.ps1
Publish-IISWebSite.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/IIS/Publish-IISApplicationPool.ps1
Publish-IISApplicationPool.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/IIS/Publish-VirtualDirectory.ps1
Publish-VirtualDirectory.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSAS/Remove-SSASDatabse.ps1
Remove-SSASDatabse.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSAS/New-XMLA.ps1
New-XMLA.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/SSAS/Deploy-Cube.ps1
Deploy-Cube.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Configuration/Get-Outputs.ps1
Get-Outputs.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Configuration/Update-Outputs.ps1
Update-Outputs.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/MsDeploy/Sync-MsDeployDirectory.ps1
Sync-MsDeployDirectory.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/MsDeploy/Start-MsDeploy.ps1
Start-MsDeploy.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesToRemoteServer/Get-PreCopyToScriptBlock.ps1
Get-PreCopyToScriptBlock.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesToRemoteServer/Copy-FilesToRemoteServer.ps1
Copy-FilesToRemoteServer.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesToRemoteServer/Get-WriteBytesScriptBlock.ps1
Get-WriteBytesScriptBlock.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesToRemoteServer/Get-PostCopyToScriptBlock.ps1
Get-PostCopyToScriptBlock.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesToRemoteServer/Send-FileStream.ps1
Send-FileStream.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Copy-FilesToRemoteServer/New-CopySessions.ps1
New-CopySessions.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Sql/Update-SqlLogin.ps1
Update-SqlLogin.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Sql/Update-SqlUser.ps1
Update-SqlUser.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Sql/Restore-SqlDatabase.ps1
Restore-SqlDatabase.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Sql/Backup-SqlDatabase.ps1
Backup-SqlDatabase.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/Public/deploy/Helpers/Database/Publish-EntityFrameworkMigrate.ps1
Publish-EntityFrameworkMigrate.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/Xml/Convert-XmlFile.ps1
Convert-XmlFile.ps1
# Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/bin/Set-DotNetAppSetting.ps1
Set-DotNetAppSetting.ps1
<# .SYNOPSIS *Internal*. Use `Set-DotNetAppSetting` function instead. .LINK Set-DotNetAppSetting #> # Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/bin/Set-DotNetConnectionString.ps1
Set-DotNetConnectionString.ps1
<# .SYNOPSIS Internal. Use `Set-DotNetConnectionString` function instead. #> # Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.ap...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/bin/Protect-String.ps1
Protect-String.ps1
<# .SYNOPSIS **INTERNAL. DO NOT USE** #> # Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/Path/Resolve-PathCase.ps1
Resolve-PathCase.ps1
# Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/Path/Get-PathProvider.ps1
Get-PathProvider.ps1
# Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/Path/Test-UncPath.ps1
Test-UncPath.ps1
# Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/Path/Resolve-FullPath.ps1
Resolve-FullPath.ps1
# Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/externalLibs/Carbon/Carbon/Path/Resolve-RelativePath.ps1
Resolve-RelativePath.ps1
# Copyright 2012 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/dsc/install_all.ps1
install_all.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/dsc/ext/PsOrg/rchaganti/DSCResources/HostsFile/HostsFileExample.ps1
HostsFileExample.ps1
Configuration HostsFileExample { Node "SRV2-WS2012R2" { HostsFile HostsFileDemo { hostName = "testhost100" ipAddress = "10.10.10.100" Ensure = "Present" } } Node "SRV3-WS2012R2" { HostsFile HostsFileDemo { hostName = "testho...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/dsc/ext/PsGallery/xWebAdministration.1.17.0.0/DSCResources/MSFT_xIisModule/xIisModuleDesigner.ps1
xIisModuleDesigner.ps1
$diff = join-Path ${env:ProgramFiles(x86)} "Beyond compare 2\bc2.exe" $friendlyName = "xIisModule" $resourceName = "MSFT_$friendlyName" $classVersion = "1.0.0" $scriptRoot = Split-Path $MyInvocation.MyCommand.Path $originalModuleRoot = join-Path $scriptroot "..\.." $originalModuleRootPath = Resolve-Path $origin...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/dsc/ext/PsGallery/xRobocopy.2.0.0.0/Resources/xDscResourceDesigner_CreateScript.ps1
xDscResourceDesigner_CreateScript.ps1
$modules = 'C:\Program Files\WindowsPowerShell\Modules\' $modulename = 'xRobocopy' $Description = 'This module is used to facilitate large file copies with complex requirements such as multithreading, restarts, and exclusions when recursing content.' if (!(test-path (join-path $modules $modulename))) { $mod...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/dsc/ext/PsGallery/xPSDesiredStateConfiguration.6.4.0.0/DSCPullServerSetup/PullServerDeploymentVerificationTest/PullServerSetupTests.ps1
PullServerSetupTests.ps1
<# * * Once you setup your pull server with registration, run the following set of tests on the pull server machine * to verify if the pullserver is setup properly and ready to go. #> <# * Prerequisites: * You need Pester module to run this test. * With PowerShell 5, use Install-Module Pester to instal...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/dsc/ext/PsGallery/xPSDesiredStateConfiguration.6.4.0.0/ResourceDesignerScripts/New-PSSessionConfigurationResource.ps1
New-PSSessionConfigurationResource.ps1
Import-Module -Name 'xDSCResourceDesigner' $resProperties = @{ Name = New-xDscResourceProperty -Description 'Name of the PS Remoting Endpoint' ` -Name Name -Type String -Attribute Key RunAsCred = New-xDscResourceProperty -Description 'Credential fo...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/dsc/ext/PsGallery/xPSDesiredStateConfiguration.6.4.0.0/ResourceDesignerScripts/GenerateXRemoteFileSchema.ps1
GenerateXRemoteFileSchema.ps1
$DestinationPath = New-xDscResourceProperty -Name DestinationPath -Type String -Attribute Key -Description 'Path under which downloaded or copied file should be accessible after operation.' $Uri = New-xDscResourceProperty -Name Uri -Type String -Attribute Required -Description 'Uri of a file which should be copied or ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/bat/PSRemoting/Enable-Remoting.ps1
Enable-Remoting.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/bat/PSRemoting/Enable-HttpsRemoting.ps1
Enable-HttpsRemoting.ps1
<# The MIT License (MIT) Copyright (c) 2017 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/bat/PSRemoting/Test-PSRemoting.ps1
Test-PSRemoting.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/bat/PSRemoting/Test-LocalDSC.ps1
Test-LocalDSC.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/bat/MSDeploy/Test-MSDeployRemoting.ps1
Test-MSDeployRemoting.ps1
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Private/Invoke-SqlSqlCmd.ps1
Invoke-SqlSqlCmd.ps1
function Invoke-SqlSqlcmd { <# .SYNOPSIS Runs a T-SQL script using sqlcmd.exe. .DESCRIPTION Runs sql command or sql script file. Gives proper error handling as opposed to Invoke-Sqlcmd. See https://connect.microsoft.com/SQLServer/feedback/details/779320/invoke-sqlcmd-does-not-return-t-s...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Private/Get-CurrentSqlCmdPath.ps1
Get-CurrentSqlCmdPath.ps1
function Get-CurrentSqlCmdPath { <# .SYNOPSIS Returns sqlcmd.exe folder path .DESCRIPTION Search for sqlcmd bin path in system registry. First found version will be returned. .EXAMPLE Get-CurrentSqlCmdPath #> [CmdletBinding()] [OutputType([string])] param() $sqlS...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Private/Invoke-SqlDotNet.ps1
Invoke-SqlDotNet.ps1
function Invoke-SqlDotNet { <# .SYNOPSIS Runs a T-SQL script using .NET SqlCommand. .DESCRIPTION Useful especially when neither SMO nor sqlcmd are available. .EXAMPLE Invoke-SqlDotNet -ConnectionString $connectionString -Sql $Query -SqlCmdVariables $param #> [CmdletBi...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/New-SqlDatabase.ps1
New-SqlDatabase.ps1
function New-SqlDatabase { <# .SYNOPSIS Creates a new SQL Server database with default settings and simple recovery mode. .DESCRIPTION Creates database using New-SqlDatabase.sql script with default settings. .EXAMPLE New-SqlDatabase -DatabaseName "MyDb" -ConnectionString "Da...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/Start-RestoreSqlDatabase.ps1
Start-RestoreSqlDatabase.ps1
function Start-RestoreSqlDatabase { <# .SYNOPSIS Restores database on MSSQL Server. .DESCRIPTION Uses Start-RestoreSqlDatabase.sql sql script to restore database. .EXAMPLE Start-RestoreSqlDatabase -DatabaseName "DbName" -ConnectionString "data source=localhost;integrated...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/Set-SqlServerFilestream.ps1
Set-SqlServerFilestream.ps1
function Set-SqlServerFilestream { <# .SYNOPSIS Sets SQL Server Filestream to given level. .DESCRIPTION It does the following: 1. Check filestream is at given level globally on SQL Server instance level, and if not set it using Cim/WMI. 2. If level has been changed restart SQL Server servi...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/Start-SqlServerAgentJob.ps1
Start-SqlServerAgentJob.ps1
function Start-SqlServerAgentJob { <# .SYNOPSIS Starts a SQL Server Agent job, synchronously or asynchronously. .EXAMPLE Start-SqlServerAgentJob -JobName 'MyJob' -ConnectionString $Tokens.DatabaseConfig.DatabaseDeploymentConnectionString #> [CmdletBinding()] [OutputType([void])]...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/Start-BackupSqlDatabase.ps1
Start-BackupSqlDatabase.ps1
function Start-BackupSqlDatabase { <# .SYNOPSIS Creates SQL database backup. .DESCRIPTION Uses Invoke-Sql cmdlet to run Start-BackupSqlDatabase SQL script to backup database. .EXAMPLE Start-BackupSqlDatabase -DatabaseName "DbName" -ConnectionString "Data Source=localhost;Int...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/New-SqlUser.ps1
New-SqlUser.ps1
function New-SqlUser { <# .SYNOPSIS Creates or updates user on given database. It also remaps user to the login. .EXAMPLE New-SqlUser -ConnectionString $connectionString -DatabaseName "database" -Username "username" -DbRole "db_owner|db_datareader" #> [CmdletBinding()] [...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/Invoke-Sql.ps1
Invoke-Sql.ps1
function Invoke-Sql { <# .SYNOPSIS Runs a T-SQL script using .NET classes (default, no prerequisites needed) or sqlcmd.exe. .DESCRIPTION Runs sql command or sql script file . .OUTPUTS String if Mode = sqlcmd. System.Data.DataSet if Mode = .net. .EXAMPLE ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/New-SqlLogin.ps1
New-SqlLogin.ps1
function New-SqlLogin { <# .SYNOPSIS Creates or updates database login on MSSQL Server. .EXAMPLE New-SqlLogin -ConnectionString "data source=localhost;integrated security=True" -Credentials (Get-Credential) #> [CmdletBinding()] [OutputType([void])] param( [Parame...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShSqlTools/1.0.2/Public/Remove-SqlDatabase.ps1
Remove-SqlDatabase.ps1
function Remove-SqlDatabase { <# .SYNOPSIS Remove database from MSSQL Server. .DESCRIPTION Drops database using Remove-SqlDatabase.sql script. Does nothing when database does not exists. .EXAMPLE Remove-SqlDatabase -DatabaseName "MyDb" -ConnectionString "data source=localhos...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Help/Escape-Markdown.ps1
Escape-Markdown.ps1
function Escape-Markdown { <# .SYNOPSIS Escapes special characters for markdown. .PARAMETER String String to escape. .EXAMPLE Escape-Markdown -String '<test>' #> [CmdletBinding()] [OutputType([void])] param( [Parameter(Mandatory=$true)] [string] $St...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Help/Generate-MarkdownForFunction.ps1
Generate-MarkdownForFunction.ps1
function Generate-MarkdownForFunction { <# .SYNOPSIS Generates markdown for specified function. .PARAMETER FunctionInfo FunctionInfo object as created by Get-AllFunctionsFrom* function. .PARAMETER OutputIndexString String builder for index markdown. .PARAMETER ModuleName Name of t...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Help/Get-HelpAllFunctionsFromDirectory.ps1
Get-HelpAllFunctionsFromDirectory.ps1
function Get-HelpAllFunctionsFromDirectory { <# .SYNOPSIS Gets all functions from given directory. .PARAMETER Path Path to directory. .EXAMPLE $functionsToDocument = Get-HelpAllFunctionsFromDirectory -Path 'c:\MyModule' #> [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoid...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Help/Get-HelpAllFunctionsFromModule.ps1
Get-HelpAllFunctionsFromModule.ps1
function Get-HelpAllFunctionsFromModule { <# .SYNOPSIS Gets all public functions from given module. .PARAMETER ModulePath Module path. .PARAMETER ModuleName Module name. .EXAMPLE $functionsToDocument = Get-HelpAllFunctionsFromModule -ModulePath $ModulePath -ModuleName $ModuleName ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Log/Write-LogToStdOut.ps1
Write-LogToStdOut.ps1
function Write-LogToStdOut() { <# .SYNOPSIS Outputs the Message to stdout using colors. .EXAMPLE Write-LogToStdOut -Header "Header" -Message "Message" -Severity $Severity #> [CmdletBinding()] [OutputType([void])] [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAv...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Log/Write-LogToPSOutput.ps1
Write-LogToPSOutput.ps1
function Write-LogToPSOutput() { <# .SYNOPSIS Outputs the Message using Write-Output function. Helper function. .EXAMPLE Write-LogToPSOutput -Header "Header" -Message "Message" #> [CmdletBinding()] [OutputType([void])] param( [string] $Header, ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Log/Write-LogToFile.ps1
Write-LogToFile.ps1
function Write-LogToFile() { <# .SYNOPSIS Outputs the Message to file. Helper function. .EXAMPLE Write-LogToFile -Header "Header" -Message "Message" -Severity $Severity #> [CmdletBinding()] [OutputType([void])] param( [Parameter(Mandatory=$false)] [string] ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Log/Write-LogToEventLog.ps1
Write-LogToEventLog.ps1
function Write-LogToEventLog() { <# .SYNOPSIS Outputs the Message to event log. .DESCRIPTION Creates new event log source if not exists. #> [CmdletBinding()] [OutputType([string])] [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '')] par...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Log/Test-LogSeverity.ps1
Test-LogSeverity.ps1
function Test-LogSeverity() { <# .SYNOPSIS Checks if message severity is greater on equal to config severity. .EXAMPLE Test-LogSeverity -MessageSeverity #> [CmdletBinding()] [OutputType([bool])] param( [Parameter(Mandatory=$true)] [int] $M...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Private/Utils/Write-EventsToLog.ps1
Write-EventsToLog.ps1
function Write-EventsToLog { <# .SYNOPSIS Get logs from event. .DESCRIPTION Catches output from event for OutputDataSourceIdentifier (stdout) and ErrorDataSourceIdentifier (error) and writes proper logs. .OUTPUTS If event was generated for ErrorDataSourceIdentier then "StandardError" ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Public/Help/New-MarkdownDoc.ps1
New-MarkdownDoc.ps1
function New-MarkdownDoc { <# .SYNOPSIS Generates markdown documentation for each public function from given module. .PARAMETER ModulePath Module to scan. .PARAMETER OutputPath Base output path. .PARAMETER GitBaseUrl Base Git url to generate links to source files. .EXAMPLE ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Public/Log/Write-Log.ps1
Write-Log.ps1
Function Write-Log { <# .SYNOPSIS Writes a nicely formatted Message to stdout/file/event log. .DESCRIPTION It uses optional $LogConfiguration object which describes logging configuration (see LogConfiguration.ps1). It can be set using Set-LogConfiguration function. .INPUTS ...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Public/Log/Set-LogConfiguration.ps1
Set-LogConfiguration.ps1
Function Set-LogConfiguration { <# .SYNOPSIS Sets global logging configuation (used by Write-Log). .DESCRIPTION It sets $LogConfiguration object which describes logging configuration (see LogConfiguration.ps1). .EXAMPLE Set-LogConfiguration -LogLevel 'Warn' -LogFile "$PSScriptR...
PowerShellCorpus/PowerShellGallery/PSCI/1.1.7/baseModules/PPoShTools/1.0.2/Public/Log/Write-ErrorRecord.ps1
Write-ErrorRecord.ps1
function Write-ErrorRecord { <# .SYNOPSIS Logs ErrorRecord message, including script StackTrace and exception StackTrace. .EXAMPLE $Global:ErrorActionPreference = 'Stop' try { ... } catch { Write-ErrorRecord ...