BookmarkSubscribeRSS Feed
atul_desh
Quartz | Level 8

$file1 = Get-Content L:\servers.txt
$file2 = Get-Content L:\HofixID.txt

$objects = foreach($f1 in $file1)
{
foreach($f2 in $file2)
{
New-Object psobject -Property @{
Server = $f1
HotfixID = $f2
}
}
}

$objects |Export-Csv -Path "L:\output.csv" -NoTypeInformation

$CSV = import-csv “L:\output.csv” | select Server,HotfixID,@{n=’CommanName’;e={$_.Server + ” ” + $_.HotfixID}}

$CSV |Export-Csv "L:\outputfinal.csv" -NoTypeInformation

$PCSV =import-csv “L:\patch_ouput.csv” | select Server,HotfixID,@{n=’CommanName’;e={$_.Server + ” ” + $_.HotfixID}}

$PCSV |Export-Csv "L:\patch_outputfinal.csv" -NoTypeInformation

 

1 REPLY 1
ChrisHemedinger
Community Manager

Hi @atul_desh - do you have a question?  Looks like you're using PowerShell to assemble a list of hotfix info.  What do you need from the community?

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Discussion stats
  • 1 reply
  • 558 views
  • 0 likes
  • 2 in conversation