PowerShell support for scheduled shift
- Last UpdatedOct 04, 2024
- 1 minute read
To get the current settings for your scheduled shift in Powershell, use the cmdlet Get-PIArchiveSetSettings.
In the example below, 420_cp1 is the collective name. You can use either the target server name or collective name (name in KST.)
PS C:\WINDOWS\system32> Get-PIDataArchiveConnectionConfiguration 420_cp1 |
Connect-PIDataArchive | Get-PIArchiveSetSettings
Sample output:
To set the shift schedule, use the command Set-PIArchiveSetSettings.
PS C:\WINDOWS\system32> Get-PIDataArchiveConnectionConfiguration 420_cp1 |
Connect-PIDataArchive | Set-PIArchiveSetSettings -Name 0_Historical -ShiftFrequency
Monthly