mirror of
https://github.com/PowerShell/PSDscResources
synced 2026-06-21 13:45:29 +00:00
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Expands the archive located at 'C:\ExampleArchivePath\Archive.zip' to the destination path
|
||||
'C:\ExampleDestinationPath\Destination'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Remove the expansion of the archive located at 'C:\ExampleArchivePath\Archive.zip' from the
|
||||
destination path 'C:\ExampleDestinationPath\Destination'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Removes the expansion of the archive located at 'C:\ExampleArchivePath\Archive.zip' from the
|
||||
destination path 'C:\ExampleDestinationPath\Destination'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Creates the environment variable 'TestEnvironmentVariable' and sets the value to 'TestValue'
|
||||
both on the machine and within the process.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Creates the environment variable 'TestPathEnvironmentVariable' and sets the value to 'TestValue'
|
||||
if it doesn't already exist or appends the value 'TestValue' to the existing path if it does
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Removes the environment variable 'TestEnvironmentVariable' from
|
||||
both the machine and the process.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
If the groups named GroupName1 and Administrators do not exist, creates the groups named
|
||||
GroupName1 and Administrators and adds the users with the usernames Username1 and Username2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
If the group named GroupName1 does not exist, creates a group named GroupName1.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
If the group named GroupName1 does not exist, creates a group named GroupName1 and adds the
|
||||
users with the usernames Username1 and Username2 to the group.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Starts the processes with the executables at the file paths C:\Windows\cmd.exe and
|
||||
C:\TestPath\TestProcess.exe with no arguments.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Stops the processes with the executables at the file paths C:\Windows\cmd.exe and
|
||||
C:\TestPath\TestProcess.exe with no arguments and logs any output to the path
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Create a new registry key called MyNewKey as a subkey under the key
|
||||
'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
If the registry key value MyValue under the key
|
||||
'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' does not exist,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Removes the registry key called MyNewKey under the parent key
|
||||
'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Removes the registry key value MyValue from the key
|
||||
'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Creates a file at the given file path with the specified content through the Script resource.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the Secure Socket Tunneling Protocol and DHCP Client services to run under the
|
||||
built-in account LocalService.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Ensures that the DHCP Client and Windows Firewall services are running.
|
||||
#>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Configuration UserExample
|
||||
Configuration UserExample
|
||||
{
|
||||
param (
|
||||
[System.Management.Automation.PSCredential]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
param
|
||||
param
|
||||
(
|
||||
[Parameter(Mandatory)]
|
||||
[System.String]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Creates a custom configuration for installing or uninstalling a Windows role or feature.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Installs the TelnetClient and RSAT-File-Services Windows features, including all their
|
||||
subfeatures. Logs the operation to the file at 'C:\LogPath\Log.log'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Uninstalls the TelnetClient and RSAT-File-Services Windows features, including all their
|
||||
subfeatures. Logs the operation to the file at 'C:\LogPath\Log.log'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Enables the Windows optional feature with the specified name and outputs a log to the specified path.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Disables the Windows optional features TelnetClient and LegacyComponents and removes all
|
||||
files associated with these features.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Enables the Windows optional features MicrosoftWindowsPowerShellV2 and
|
||||
Internet-Explorer-Optional-amd64 and outputs a log of the operations to a file at the path
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Installs a package from the cab file with the specified name from the specified source path
|
||||
and outputs a log to the specified log path.
|
||||
|
||||
Reference in New Issue
Block a user